mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
* 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>
About
@discordjs/structures is a low level wrapper around Discord JSON Objects, meant to be a foundation to build upon in a higher level library.
Installation
Node.js 22.12.0 or newer is required.
npm install @discordjs/structures
yarn add @discordjs/structures
pnpm add @discordjs/structures
bun add @discordjs/structures
Links
- Website (source)
- Documentation
- Guide (source) Also see the v13 to v14 Update Guide, which includes updated and removed items from the library.
- discord.js Discord server
- Discord Developers Discord server
- GitHub
- npm
- Related libraries
Contributing
Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
documentation.
See the contribution guide if you'd like to submit a PR.
Help
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official discord.js Server.