Files
discord.js/packages/builders
TÆMBØ 88bfeaab22 feat: PollBuilder (#10324)
* Add PollBuilder

* Add exports

* Update typings

* Update validations

* Use correct enum validator method

* Fix assertion, formatting

* Add tests

* Fix assertion

* Add JSDoc, format

* Make requested changes

* Remove unnecessary blank import

* Add support for PollBuilder in mainlib discord.js

* Add types, fix formatting

* Correct typings & assertions for poll answer emojis

* Improve typings readability

* Add JSDoc typings for overrides

* Add types for using PollBuilder in message payload

* Add tests, allow passing Emoji instance to emoji option

* Fix formatting

* Update max poll duration

* refactor: implement builders v2 pattern
2025-02-28 10:07:27 +00:00
..
2025-02-28 10:07:27 +00:00
2023-05-03 02:14:22 +02:00
2025-02-28 10:07:27 +00:00
2023-05-03 02:14:22 +02:00
2022-01-07 17:18:25 +01:00
2025-02-12 19:08:07 +00:00


discord.js


Discord server npm version npm downloads Build status Last commit. Code coverage

Vercel Cloudflare Workers

About

@discordjs/builders is a utility package for easily building Discord API payloads.

Installation

Node.js 22.12.0 or newer is required.

npm install @discordjs/builders
yarn add @discordjs/builders
pnpm add @discordjs/builders

Examples

You can find examples of how to use the builders in the Slash Command Builders examples.

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.