The /ban command
Part of Moderation: Ban, kick, time out and warn members, check their history, and clean up channels.
/ban <user> [delete_message_history] [reason] [duration] [notify_user] [silent]
Moderation
Ban Members
Bans the user, even if they already left (paste their user ID). A card shows who was banned, by whom, for how long, and why.
| Option | Required | What it does |
|---|---|---|
user | Required | The person to ban. A mention or a user ID. |
delete_message_history | Optional | Delete their recent messages, up to 7 days back (1h, 1d, 7d). |
reason | Optional | Why they were banned. |
duration | Optional | Makes it temporary, like 2h, 7d or 2w. Leave empty for a permanent ban. |
notify_user | Optional | DM the member about it. On by default. |
silent | Optional | Only you see the result card. |
More Moderation commands
/kick: Kicks the member. They can come back with a new invite./timeout: The member can't send messages, react or join voice until the time is up./unban: Unbans the user (paste their user ID) and posts a card in the channel. Also cancels a temporary ban timer./untimeout: Removes the member's timeout right away and posts a card in the channel./warn: Nothing changes for the member in the server. They get a DM and the warning is saved to their /modlogs history./modlogs: Shows the 15 most recent actions (bans, kicks, timeouts, warnings, nukes, name fixes) with who did it, when, and why. Bans and kicks done by hand in Discord show up too./slowmode: Sets the slowmode for a channel. Run it with no options to see the current slowmode./nuke: Shows a confirmation first. After you confirm, the channel is replaced by an identical empty copy with a "Channel Nuked" message at the top. This can't be undone.
Read the full Moderation guide, or see every module and command.