Discord Slash Command Builder
Build the JSON registration payload for a Discord application (slash) command. Add options and choices, then copy the payload straight into your bot's command registration.
Command payload
{
"name": "ban",
"description": "Ban a member from the server",
"options": [
{
"type": 6,
"name": "user",
"description": "The member to ban",
"required": true
},
{
"type": 3,
"name": "reason",
"description": "Why they are being banned"
}
]
}Presets
Command
Name1-32 chars, lowercase, no spaces
Description
Options
Type
Name
Description
Type
Name
Description
Choicespredefined values the user can pick
About this tool
Slash commands are registered by sending a JSON object to Discord's application-commands endpoint. This builder mirrors that schema: each option carries a numeric type, a lowercase name, and a description, plus an optional list of choices for string, integer, and number options. Required is only written when enabled, and empty options or choices are omitted, so the output stays minimal and paste-ready for discord.js or a raw HTTP request.