Skip to main content

Commands

The Commands page lists every command your bot has. Slash commands are listed first, then right-click commands.

The Commands page

Your bot registers its commands with Discord every time it starts, so there's nothing else to set up.

Making a command​

Click New command, choose what kind it is, and give it a name.

Making a new command

KindWhere people find it
Slash commandPeople type / and its name in chat, like /ping.
Right-click on a userRight-click someone, then Apps.
Right-click on a messageRight-click a message, then Apps.

Slash command names use lowercase letters, numbers, dashes and underscores, with no spaces, up to 32 characters. They also need a description of up to 100 characters, shown under the name when people pick the command. Right-click commands can have spaces and capital letters, and have no description.

A bot can have up to 100 slash commands, 5 right-click commands on users and 5 on messages. Those are Discord's limits.

A command's page​

Click a command to open its page.

A slash command's page

SectionWhat it's for
What happensThe steps the command runs. Click Open builder to change them. See Steps.
Name and descriptionIts name, its description, and Add translations for other languages.
OptionsThings people fill in when they use the command. See below.
Who can use itThe permissions people need to use it, and whether it's age-restricted.
Where it worksServers, DMs and group DMs, and whether it can be added to servers, to people's own accounts, or both.

Options​

Options are the extra things people fill in when they use a slash command, like the user to ban or the reason why.

A command's options

Click Add option and choose its type.

TypeWhat people pick
TextAny text they type.
Whole numberA number with no decimals, like 5.
NumberAny number, decimals allowed, like 2.5.
True or falseTrue or False.
UserSomeone in the server.
ChannelA channel.
RoleA role.
User or roleEither one.
FileA file they upload.

Click an option to change it. Each option has a name, a description, whether it's required, and settings that depend on its type: a list of choices for text and numbers, minimum and maximum values or lengths, the kinds of channels allowed, and suggestions shown as people type.

An option's page

The arrows next to each option change their order. Discord always lists required options first.

In a command's steps, every option is a value you can use: "the user they picked", "the reason they typed", and so on.

Subcommands​

A slash command can have subcommands instead of steps of its own, like /settings view and /settings reset. Add one with Add option and choose Subcommand. Subcommands can be put into subcommand groups too, like /settings roles add.

A command with subcommands doesn't run steps itself. Each subcommand has its own page with its own options and its own Open builder.

Right-click commands​

A right-click command runs its steps when someone picks it from the Apps menu. In its steps you can use the user or message that was right-clicked.