Slash Commands
TL;DR
Slash commands are the primary way users interact with your bot.
Define command names/options clearly so Discord can autocomplete them.
Slash commands are the main way users interact with your bot. They start with / and are easy to discover and use.
Last updated: 2025-12-14
What Are Slash Commands?
When you type / in Discord, you see a menu of available commands. These are slash commands.
For example:
/help— Show available commands/roll 2d6— Roll two six-sided dice/poll "What should we play?"— Create a poll
Why Slash Commands?
Easy to Discover
Users can see all available commands by typing /. No need to memorize or guess.
Built-in Help
Each command shows a description of what it does.
No Typos
Discord autocompletes command names, reducing errors.
Organized
Commands are grouped by bot, so your commands are separate from other bots.
Adding Commands to Your Bot
When you describe your bot, just mention the commands you want:
“Add a /hello command that greets the user”
“Include /joke for random jokes and /dadjoke for dad jokes specifically”
“Create a /roll command that takes a dice notation like 2d20+5”
Commands with Options
You can create commands that take inputs:
“/remind [time] [message] — Sets a reminder. Time can be like ‘30m’ or ‘2h’”
“/ban [user] [reason] — Bans a user with an optional reason”
“/poll [question] [option1] [option2] — Creates a poll with choices”
Command Structure
Each command you create can have:
| Part | What It Is | Example |
|---|---|---|
| Name | The command itself | /roll |
| Description | Explains what it does | ”Roll dice using standard notation” |
| Options | Inputs from the user | [dice] like “2d6” |
Best Practices
Keep Names Short
Use simple, memorable command names:
- ✅
/ban - ❌
/ban-user-from-server
Be Consistent
If you have related commands, use similar patterns:
/warn add @user/warn remove @user/warn list @user
Add Helpful Descriptions
Tell users what the command does and any requirements:
“/announce [message] — Posts an announcement (Mod only)“
Consider Permissions
Specify who can use each command:
“Only users with ‘Moderator’ role can use /kick and /ban”
Viewing Your Commands
After deploying your bot, you can see its commands in Discord:
- Type
/in any channel where your bot is active - Click on your bot’s name to filter its commands
- Browse available commands with descriptions
You can also view the generated code in VibeCord’s code panel to see exactly how each command is implemented.
Updating Commands
Want to add, remove, or change commands?
Edit your bot and update your description:
“Add a /8ball command that gives magic 8-ball answers”
“Remove the /yell command”
“Change /hi to respond with ‘Hello, friend!’ instead of ‘Hi there‘“
Command Examples
Information Commands
/help — Show all commands/info — Show server information/ping — Check if bot is responsiveModeration Commands
/warn @user [reason] — Warn a user/kick @user [reason] — Kick a user/ban @user [reason] — Ban a user/mute @user [duration] — Temporarily muteFun Commands
/joke — Random joke/roll [dice] — Roll dice/8ball [question] — Magic 8-ball/coinflip — Flip a coinUtility Commands
/poll [question] — Create a poll/remind [time] [message] — Set reminder/quote — Random inspirational quote