feat(structures): add entitlement structure (#11377)

* feat(structures): add entitlement structure

* feat(structures): create and update barrel exports

* chore: reword comment for entitlment deleted getter to be clearer

* feat(structures): add symbols to optimise ends_at, starts_at fields

* feat(structures): optimise starts_at and ends_at fields

* feat(structures): manage Date and Discord ISOs appropriately

* chore: remove accidental whitespace

* chore: correct name styles on symbols (remove 'at')

* chore: correct name styles on AtTimestamp fields (remove 'at')

* chore: call super.toJSON on toJSON override

* chore: run prettier to clear linting/formatter errors

* chore: correct usage of optimizeData

* chore: update DataTemplate override for Entitlement

* chore: update class default type param, update DataTemplate doc

* Apply suggestions from code review

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

---------

Co-authored-by: Almeida <github@almeidx.dev>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
Asad
2026-01-15 23:43:39 +00:00
committed by GitHub
parent 69432a1bca
commit 3d74122215
4 changed files with 181 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
export * from './bitfields/index.js';
export * from './channels/index.js';
export * from './emojis/index.js';
export * from './entitlements/index.js';
export * from './interactions/index.js';
export * from './invites/index.js';
export * from './messages/index.js';