How to make custom slash commands in Discord
A custom slash command is a command your own bot adds to Discord, such as /rules or /give. Discord shows it in the command list with its description and options. In Buildcord each command is a flow: the command starts it and the steps after it decide what the bot does. Commands run free.
Steps
Add a slash command flow
In your bot, add a flow and choose Slash command. Give it a name, such as
rules, and a description. Discord shows the description next to the command.Give it options
Add an option for each input the command asks for. An option can be text, a whole number, a number, true or false, a member, a channel or a role, and can be required. Use it in later steps as
{option.name}.Offer fixed choices
For a text option, add a list of choices and members can pick only those values. This is how a
/colorcommand offers red, green and blue.Group commands as subcommands
A name can be up to three words, such as
ticket panel. Later words make a subcommand, registered under the first word, so related commands sit together.Decide what it does
Connect steps after the command: a Reply or an embed, a role given or removed, a row saved to a collection, an API request. The checker flags anything that can't run.
Deploy
Press Deploy. Buildcord registers your commands with Discord every time you deploy. To try them first, sync them to one test server.
Good to know
- Slash commands don't need the bot to stay connected, so they run on the Free plan.
- Two commands can't share a name, and every command needs a flow.
- Checks such as Permissions can keep a command to moderators.
- Describe the command to the AI agent and it can draw the flow for you.
Questions
How many slash commands can a bot have?
Discord sets the limit: up to 100 top-level slash commands per bot, each with its own subcommands. Buildcord registers all of a bot's commands each time it deploys.
Why doesn't my new command show up in Discord?
Commands are registered when you deploy, so deploy after adding one. If it still doesn't appear, restart Discord or check that the bot was invited to the server with its invite link.
More guides
- How to make a Discord bot without coding
- How to build a Discord bot from ChatGPT
- How to set up a ticket system in Discord
- How to give roles automatically in Discord
- How to post in Discord when someone goes live
- How to host a Discord bot 24/7 for free
- How to set up a welcome message in Discord
- How to set up a warning system in Discord
- How to make a Discord reaction role bot
- How to set up auto-moderation on Discord with AI
- How to log deleted messages on Discord
- How to make a poll in Discord with a bot
- How to set up a starboard on Discord
- How to make a Discord reminder bot
- How to make a Discord birthday bot
- How to make a Discord application form
- How to make a counting channel in Discord
- How to post YouTube uploads to Discord automatically
- How to make an AI FAQ bot for your Discord server