Moderation commands
Staff slash commands for kicks, bans, timeouts, warnings and clearing messages, with automatic steps and member notices.
New layout (closed beta): abilities, the Discord bot and tickets have new places there. See Abilities, the Discord bot and tickets in the new layout for where each page went.
Staff-only slash commands that act on members, tell the member why, and write it down.
Set it up
- In the Portal: Discord bot, then Moderation. Switch the module on.
- Turn on the Logging module with Moderation actions, so every action is recorded in a staff channel. See Logging.
- Optional: Reviews, Warnings that act on their own, Minecraft.
Without the module on, the commands answer: "Moderation commands are not enabled for this server."
The commands
| Command | What it does | Needs |
|---|---|---|
/kick user reason | Removes a member. They can rejoin. | Kick Members |
/ban user reason delete_days | Removes a member for good. delete_days (0 to 7) also deletes their recent messages. | Ban Members |
/unban user_id reason | Lifts a ban, by user ID. | Ban Members |
/timeout user minutes reason | Mutes a member. minutes 1 to 40320 (28 days); empty uses your default. | Timeout Members |
/untimeout user reason | Ends a timeout early. | Timeout Members |
/warn user reason | Records a warning. The reason is required. | Timeout Members (Kick Members also works; see below) |
/warnings user | Shows a member's warning count and the latest 10. | Timeout Members (Kick Members also works; see below) |
/clearwarnings user | Removes all of a member's warnings. | Timeout Members (Kick Members also works; see below) |
/clear amount | Deletes the last 1 to 100 messages in this channel. | Manage Messages |
Discord hides each command from members who do not have its permission. You can change who sees what under Discord's Server Settings > Integrations. The bot still checks the caller's own permission every time.
To find a user ID for /unban: switch on Developer Mode in Discord, right-click the user, Copy User ID.
The hierarchy rule
You can only moderate members below your highest role. This is checked before anything happens, for staff too. Without it any moderator could ban any other moderator. You also cannot target yourself or the bot.
The bot's own role must also sit above the member, or Discord refuses.
If the bot cannot check the roles because Discord did not answer, it says so ("No action was taken - try again in a moment") instead of claiming you lack rights.
Where the output goes
Every answer is shown only to the staff member who used the command. The action is written to the moderation log (the Logging module's Moderation actions channel). Nothing is announced in the public channel.
The member is always told
Discord only shows /warn, /warnings and /clearwarnings to members with Timeout Members. Someone with only Kick Members may still run them, but has to be given the commands under Server Settings > Integrations.
A member who is warned, timed out, kicked or banned gets a private message: what happened, in which server, and why. This is not a setting.
/kick, /ban tell the member FIRST, then act
(afterwards Discord no longer lets the bot reach them)
/timeout, /warn act, then tell
kick/ban failed? a correction follows: "that did not happen"
- A kick or a softban message adds "You are not banned, and you can join again", and your Invite link if you set one.
- A ban or timeout message carries Ask for a review when reviews are on. See Appeals and reviews.
- A member with private messages closed cannot be told.
- A ban or kick done by hand in Discord's own menu usually cannot be told either: by the time the bot hears of it, the member is gone. A timeout done by hand is told.
Settings
| Panel | Setting | What it does | Default |
|---|---|---|---|
| Commands | Timeout length when none is given (minutes) | Used by /timeout without minutes. 1 to 40320. | 10 |
| Reviews | Members may ask for a review of a ban or a timeout | Adds Ask for a review to the notice. | off |
| Channel the requests arrive in | A staff-only channel. | none | |
| Invite link (optional) | Sent to a member whose ban is lifted, and to anyone who is kicked. Use one that does not expire. | none | |
| Warnings that act on their own | Time the member out at this many warnings | 0 switches this step off. | 0 |
| For this many minutes | Length of that timeout. | 60 | |
| Kick the member at this many warnings | 0 switches this step off. | 0 | |
| Ban the member at this many warnings | 0 switches this step off. | 0 | |
| Minecraft | Apply Minecraft punishments in this Discord server | A ban or timed ban issued in Winghub Moderation is applied here too, for members whose Minecraft and Discord are linked. Timed bans become timeouts, renewed past Discord's 28-day limit. | off |
Warnings that act on their own
The count is the member's warnings in this server. After each /warn, the highest step reached is applied:
example: timeout at 3 (60 min), kick at 5, ban at 7
warning 1, 2 counted only
warning 3, 4 timed out for 60 minutes
warning 5, 6 kicked
warning 7+ banned
The staff member who warns needs only the permission to warn: the consequence was decided by whoever set the steps. The member is told the step, and it is logged as automatic. /clearwarnings starts the count again.
/clear and the 14-day rule
Discord does not bulk-delete messages older than 14 days. /clear skips those and tells you how many it skipped.
Troubleshooting
| You see | Why |
|---|---|
| "Cannot do that: ... You can only moderate members below your highest role." | Their highest role is equal to or above yours. |
| "The bot may be missing Kick Members permission, or the target outranks the bot's role." | Move the bot's role higher, or give it the permission. |
| "No action was taken - try again in a moment." | Discord did not answer in time. Nothing happened. |
Related
Last updated: 11/27/2026, 2:41:55 PM