builders
builders copied to clipboard
A collection of builders that you can use when creating your bot.
**Please describe the changes this PR makes and why it should be merged:** This PR adds the ability to add an attachment option to slash commands - [x] make `addAttachmentOption`...
### Feature Please revert back the validation errors. This new "Zod" thing is terrible. I've been searching for 2h where the issue is because it doesn't tell you where the...
### Issue description 1. Go to this page: https://discord.js.org/#/docs/builders/stable/typedef/AuthorOptions 2. Click the little icon at top right  4. GitHub's 404 error page shows up > Note: the following...
**Please describe the changes this PR makes and why it should be merged:** Adds `SelectMenuComponent`, `ButtonComponent` and `ActionRow` **Status and versioning classification:** - Code changes have been tested, or there...
### Issue description Since the **13.4.0** Djs release, compiling to js fails due to this error: ``` node_modules/@discordjs/builders/dist/index.d.ts(516,5): error TS2416: Property 'toJSON' in type 'ApplicationCommandNumberOptionBase' is not assignable to the...
### Issue description Calling `toJSON()` from an instance of a `SlashCommandBuilder` without setting required parameters (name and description) throw an error that seem from zod that isn't useful at all...
**Please describe the changes this PR makes and why it should be merged:** Currently, when the name regex validation fails, the error message is just `Invalid` and doesn't say what's...
**Is your feature request related to a problem? Please describe.** It doesn't look very clean when we have like 10 lines of `addSubcommand`, for example. **Describe the ideal solution** A...
The MessageButton builder, in TypeScript - Builder class for Message Buttons - Interfaces and types - Some Util functions as static methods that would probably belong better elsewhere - Added...