Getting started
Reading command syntax
Every command page shows a syntax line. Here's how to read it.
The parts of a syntax line
syntax
,tempban <user> <duration> [*reason]| You see | It means |
|---|---|
<user> | Required. The command won't run without it. |
[reason] | Optional. Leave it out and stale uses a sensible default. |
[*reason] | Takes the rest of the message, so it can have spaces. |
<on|off> | Pick one of these words. |
purge links | An action: a second word that changes what the command does. |
Slash commands vs prefix commands
Every command works both ways. Slash commands show you boxes to fill in; prefix commands are quicker to type once you know them.
/ban action:temp user:@alex duration:7d reason:spamming invites
/purge action:links amount:100
Prefix commands end on December 1st, 2026
Discord is removing message commands for bots. After that date, use the slash version of every command. Everything in these docs already shows it.
Actions
Related jobs live inside one command instead of being separate commands. With slash commands, pick the action option; with the prefix, type the action straight after the command. Leave the action out to use the command's main job, or to see its current settings.
/lockdown
/lockdown action:all
/lockdown action:ignore channel:#rules
Typing values
| Value | How to type it | Example |
|---|---|---|
| user or member | A mention, their ID, or their username | @alex, 1081234567890123456 |
| channel | A channel mention or ID | #general |
| role | A role mention, ID or name | @Members |
| duration | A number and a unit: s, m, h, d, w | 30s, 10m, 1h, 7d |
| message or case ID | Right-click a message → Copy Message ID (turn on Developer Mode first) | 1290012345678901234 |
Forgot how a command works? Run it with nothing after it, like ,ban, and stale shows you its syntax. Or use /help.