Files
discord.js/packages/structures
Qjuh 19253f6b7b feat: message structures (#10982)
* feat: message structures

* fix: docs

* chore: components and more

* feat: embed and more

* feat: more substructures and code review suggestions

* chore: tests and date conversions

* chore: jsdoc strings

* fix: tests

* fix: tests

* feat: hexColor getters

* chore: remove getters for nested data

* chore: apply suggestions from code review

* fix: burst_colors in toJSON

* docs: rephrase SectionBuilder remark

* chore: add LabelComponent

* fix: add name and size to file component

* chore: move resolved interaction data to interactions dir

* fix: code review

* chore: bump discord-api-types

* chore: apply code review suggestions

* fix: lockfile

* chore: update remark

* fix: missing export

* chore: code review and tests

* build: fix file

* fix: typo

* fix: missing toJSON

* fix: remove redundant patch overrides

* chore: missing component suffix

* chore: better name

* chore: add comment explaining timestamp conversion

---------

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2025-11-28 16:52:42 +00:00
..
2025-07-12 18:24:30 +00:00
2025-11-28 16:52:42 +00:00
2025-07-12 18:24:30 +00:00
2025-11-28 16:52:42 +00:00
2025-10-13 12:54:08 +00:00


discord.js


Discord server npm version npm downloads Tests status Last commit. backers Code coverage

Vercel Cloudflare Workers

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

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.