mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
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:
@@ -7,6 +7,9 @@ export const kCreatedTimestamp = Symbol.for('djs.structures.createdTimestamp');
|
||||
export const kEditedTimestamp = Symbol.for('djs.structures.editedTimestamp');
|
||||
export const kArchiveTimestamp = Symbol.for('djs.structures.archiveTimestamp');
|
||||
|
||||
export const kStartsTimestamp = Symbol.for('djs.structures.startsTimestamp');
|
||||
export const kEndsTimestamp = Symbol.for('djs.structures.endsTimestamp');
|
||||
|
||||
export const kAllow = Symbol.for('djs.structures.allow');
|
||||
export const kDeny = Symbol.for('djs.structures.deny');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user