Build & format
Slash Command Builder
Build slash command JSON with Discord constraint validation.
JSON output
POST /applications/{id}/commands
Fix validation errors to generate JSON.Paste this body when registering a global or guild command via the Discord API. Name must be lowercase; max 25 options and 25 choices per option.
How to use
- Enter command name (lowercase, 1-32 chars, letters/numbers/_/-) and description (required, max 100 chars).
- Add top-level options only. Subcommands and subcommand groups are not supported in this builder.
- Fix validation errors, then copy JSON for POST /applications/{application.id}/commands (global or guild endpoint).
- For button/select custom_id strings on the same bot, validate with custom_id Validator.
Frequently asked questions
- What limits does the builder enforce?
- Lowercase names, 32-char command name, 100-char descriptions, max 25 options, and max 25 choices per string/number option.
- What input does Slash Command Builder need?
- Enter command name (lowercase, 1-32 chars, letters/numbers/_/-) and description (required, max 100 chars).
- How do I use Slash Command Builder?
- Add top-level options only. Subcommands and subcommand groups are not supported in this builder.