Moderation
Ban, kick, mute, warn, purge, lock and more with slash commands that create numbered cases, notify the member, log everything, protect against raids and limit rogue staff.
The Moderation module gives your team a full set of slash commands, /ban, /mute, /warning, /purge, /lock and more, and keeps a numbered case for every punishment. Each command can reply in the channel, send the member a DM with the reason, and post a record in your log channels with buttons to see the member's profile, edit the reason or undo the action.
It also records what moderators do by hand in Discord (right-click → Ban, timeouts, role changes), includes raid protection that locks the server down during a wave of joins, staff action limits that stop a moderator who goes rogue, and nickname cleanup for names that are hard to read or jump to the top of the member list.
How it works
- Commands are off by default. Each server decides which moderation commands it wants. Turn them on one by one in Moderation → Commands; a disabled command disappears from Discord in your server.
- Only moderators can use them. Each command requires the matching Discord permission (for example Ban Members for
/ban). Regular members can never use moderation commands, and you can exclude extra roles from specific commands. - Every punishment is a case. Warnings, mutes, kicks, bans, temporary bans, unmutes and unbans get a number per server (
#1,#2…), whether they came from a command, AutoMod, raid mode or were done by hand in Discord. - Nobody moderates someone above them. Members can't be moderated by someone whose highest role is equal or lower than theirs, or by DotBot if their role is above DotBot's. The server owner, admins, moderators and bots are always immune.
Quick start
- Open Moderation → Commands and turn on the commands your team uses (for example
/warning,/mute,/kick,/banand/purge). - Pick a Main log channel for moderation records. Optionally give some types their own channel.
- Click a command to adjust who can use it, whether it replies publicly or privately, whether the member gets a DM and the texts it sends.
- Click Save. The commands appear in Discord within seconds.
- Optionally set up Raid protection and Safety.
Commands
| Command | Required permission | What it does |
|---|---|---|
/ban user: [reason:] [delete_messages:] [evidence:] | Ban Members | Permanently bans a member. Can delete their messages from the last hour, day or 7 days and attach a screenshot as evidence. Works by ID for users who already left. |
/tempban user: duration: [reason:] [delete_messages:] [evidence:] | Ban Members | Bans for a period (for example 12h, 3d, 1w; up to 365 days). DotBot lifts the ban automatically. |
/unban user: [reason:] | Ban Members | Unbans a user (paste their ID). Also cancels a pending temporary ban. |
/kick user: [reason:] [evidence:] | Kick Members | Kicks a member. They can rejoin with an invite. |
/mute user: duration: [reason:] [evidence:] | Moderate Members | Mutes using Discord's timeout (no mute role needed): they can't type, talk or react. Up to 28 days. Warns you if they were already muted. |
/unmute user: [reason:] | Moderate Members | Removes a mute early. |
/warning user: reason: [expires:] [evidence:] | Moderate Members | Gives a warning and shows how many active warnings the member has. Each warning can expire after the server's default time, a custom time (7d, 30d, 12w…) or never. |
/remove-warning user: warning: [reason:] | Moderate Members | Removes one active warning or all of them. The command lists the member's warnings as you type; you can also type the case number (#12). |
/profile user: | Moderate Members | Shows everything about a user: account and join dates, avatar, roles, messages sent, who invited them, level and every case, with buttons to open each case. Works for users who left. Private reply by default. |
/purge amount: [user:] [filter:] [contains:] [include_pinned:] | Manage Messages | Deletes 1 to 1,000 recent messages, optionally only from one user, from bots or people, with links, invites, files, embeds or mentions, or containing some text. Pinned messages are kept unless you include them. Logs a transcript. |
/slowmode duration: [channel:] | Manage Channels | Sets a channel's slowmode (5s, 1m, 2h; up to 6 hours). 0 turns it off. |
/lock [channel:] [duration:] [reason:] | Manage Channels | Locks a channel for @everyone and the extra lock roles, optionally unlocking itself after a time (up to 30 days). Can lock every channel, with confirmation. |
/unlock [channel:] [reason:] | Manage Channels | Unlocks a channel (or every channel locked with /lock) and restores its previous permissions exactly. |
/lockdown start [duration:] / end / status | Manage Server | Starts or ends raid mode by hand and shows its status. |
/nick user: [nickname:] | Manage Nicknames | Changes a member's nickname, or resets it if empty. |
/role add / remove user: role: [reason:] | Manage Roles | Adds or removes a role. Moderators can only manage roles below their own and without permissions they don't have. |
/voice disconnect / move / mute / unmute / deafen / undeafen | Move Members | Manages a member in voice channels. mute and unmute also need Mute Members, and deafen and undeafen need Deafen Members. |
Durations use s (seconds), m (minutes), h (hours), d (days) and w (weeks), for example 30m, 12h or 2w.
Configuring a command
Click a command (or its gear) to configure it:
| Setting | What it does |
|---|---|
| Roles excluded from running this command | Members with any of these roles can't use the command even if they have the Discord permission; they get a private notice naming the role. Useful when you have several levels of moderators, for example excluding "Trial Moderator" from /ban. |
| Reply | Public: DotBot posts the notice in the channel as its own message, so everyone sees it but not which moderator ran the command (any warning for the moderator, like closed DMs, is shown only to them). Private: only the moderator sees it, keeping the channel clean. |
| Send a DM to the member | The member gets a private message with the reason (if their DMs are open), sent before a ban or kick so they can read it. If it can't be delivered, the moderator is told. |
| Warnings expire after | (/warning) The default lifetime of warnings: a number of days or Never (the default). Expired warnings stay in the member's cases but no longer count. |
| Lock / Unlock all channels when no channel is given | (/lock, /unlock) On: running the command without a channel affects every text, announcement and forum channel, after a confirmation. Off: only the current channel. |
| Messages | The public message, the DM and the log message, all sent as embeds. Leave them as they are to use the default text. |
Variables you can use in the messages:
| Variable | Becomes |
|---|---|
{user} | Mentions the user |
{reason} | The reason |
{time} | The duration |
{case} | The case number |
{moderator} | Mentions the moderator |
{type} | The action (banned, muted, /lock…) |
{server} | The server name |
{channel} | The channel |
{count} | An amount (warnings, messages or channels) |
{role} | The role |
{nickname} | The new nickname |
{action} | What was done |
Mentions in the public message only notify the punished user; in the DM and logs they don't notify anyone. The default public messages don't say who ran the command; add {moderator} if you want them to.
Log channels
Every moderator action is logged: the ones done with DotBot's commands and the ones done by hand in Discord (bans, kicks, timeouts, role and nickname changes by a moderator). What other bots do by hand in Discord is never logged. Each log has buttons to open the member's profile, edit the reason or undo the action.
- Main log channel: receives everything that doesn't have its own channel.
- Separate channels per type (optional): Bans and unbans, Kicks, Mutes and unmutes, Warnings (including AutoMod warnings), Purged messages (with a transcript), Slowmode and locks, Nicknames, roles and voice, and Raid mode.
To log actions done by hand in Discord, DotBot needs the View Audit Log permission.
Immune roles and lock roles
- Immune roles: roles that can't be moderated with DotBot's commands. You don't need to add moderators, admins, bots or the owner; they're already immune. Use this for roles without moderation permissions that you still want to protect, such as "Partner" or "VIP".
- Extra roles to lock:
/lock,/unlockand raid mode always lock @everyone. Add other roles that can normally talk and should also be locked (for example a "Member" role from verification). Each role is restored exactly as it was. Roles above DotBot's or managed by an integration are skipped.
Cases
The Cases page lists every warning, mute, kick and ban, numbered. Search by #number, user ID or reason, and filter by type, status (Active, Expired, Revoked, Done) and source (Command, Right-click, By hand in Discord, AutoMod, Raid mode). Click Export CSV to download the list.
Click a case to see the user, moderator, reason, duration, when it ends or expires, how many active warnings the member had at the time, the message it came from and any evidence. From there you can edit the reason, open it in the log channel, or undo it (Revoke warning, Unmute, Unban) with an optional reason. Undoing from the dashboard does the same as the matching command.
Click a user to see their profile: whether they're in the server, banned or muted, their counts of active warnings, mutes, kicks and bans, account and join dates, who invited them, messages sent, roles and all their cases.
Note
Moderation cases are a member's record, so they're kept and never deleted automatically.
Appeals
Banned members can't message the bot, so Moderation → Appeals gives them a separate appeal page where they can ask your staff, once, to lift a penalty. The page shows only your server's name and icon: no DotBot branding.
- Off by default. Turn on Appeals in Moderation → Appeals. When it's on, Add the appeal link to DMs is on too.
- Who gets a link. Everyone who gets banned, or muted or temporarily banned for 48 hours or more, gets a private Send an appeal button in the penalty's DM. This covers
/ban,/tempban,/muteand AutoMod penalties. The command's DM has to be on. - Mutes and temporary bans shorter than 48 hours don't get a link and can't be appealed, not even by signing in. Warnings and kicks can't be appealed either.
- No DM? Members who had their DMs closed, or were punished by hand in Discord, can open your appeal page (its link is in Appeals, with a copy button) and sign in with Discord to appeal from there. Share it in your rules.
- One appeal per penalty, no chat. Members write what happened and why the penalty should be lifted, confirm they understand it's their only chance, and can't edit it afterwards. You decide with what they wrote.
- Accept lifts the penalty right away (unban or unmute), the same as Undo in Cases. For a ban you can set an invite that the member sees on their appeal page to join again.
- Reject is final: that penalty can't be appealed again. Members who are still in the server get a DM saying so.
- You can add an optional message to the member when accepting or rejecting. It's shown on their appeal page.
- Optionally pick a channel in Notify new appeals in: DotBot posts each new appeal there with a button to answer it in the dashboard.
The list has four tabs: Pending (oldest first), Accepted, Rejected and Closed (the penalty ended or was lifted another way before anyone answered). Each appeal links to its case, and the case shows the appeal's status.
Note
Appeals are deleted 90 days after you answer them, or 90 days after they were sent if the penalty ended first. The case keeps a mark that it was appealed, so it can't be appealed twice.
Your branding
Appeals happen on a separate site with its own domain, which has nothing to do with DotBot, so members only ever see your server:
- The page shows only your server's name and icon. DotBot's name, logo and mascot never appear on it.
- The appeal link arrives in the DM of the bot that serves your server: your own bot, if you have one.
- Signing in uses a neutral Discord app, so Discord's sign-in screen doesn't name DotBot either.
- Its privacy page sends every question about an appeal to your staff.
- Nothing on it links back to DotBot or to the dashboard.
You can find your appeal page's link in Moderation → Appeals.
Statistics
How much moderation your server needs, for the last 7, 30 or 90 days:
- Cases, compared with the previous period.
- Members punished: different members with a warning, mute, kick or ban.
- Automatic: the share of cases created by AutoMod or raid mode.
- Raids: how many times raid mode started.
- Cases per day by type, plus breakdowns by type and by source.
- Moderators: actions per moderator (people only, not AutoMod or raid mode).
- Most punished members.
Raid protection
Raid mode protects your server during a sudden wave of joins. It can start automatically, with /lockdown start, or with the Start raid mode button, and everything it changes is undone when it ends.
Detection
| Setting | What it does |
|---|---|
| Detect raids automatically | Starts raid mode when too many people join in a short time. Off by default. |
| Start when … members join within … seconds | The trigger. Default: 10 joins within 10 seconds (3 to 200 joins, 3 to 600 seconds). Joins are counted in a sliding window: with 10 in 10 seconds, raid mode starts on the 10th join, and those 10 members are handled too. |
| Raid mode lasts | 15 minutes by default (up to 24 hours), or until someone ends it. Raid mode started by hand lets you pick a different time. |
What raid mode does
| Setting | What it does |
|---|---|
| Raise the verification level to | Low (verified email), Medium (account older than 5 minutes), High (member for 10 minutes, the default) or Highest (verified phone), or don't change it. Only raised, never lowered, and restored afterwards unless someone changed it meanwhile. |
| Pause invites | Nobody can join with an invite (up to 24 hours, Discord's limit). On by default. |
| Pause DMs between members | Stops raiders from DMing your members (up to 24 hours). |
| Lock channels | Locks channels for @everyone and the extra lock roles, like /lock. Leave Channels to lock empty to lock every text, announcement and forum channel. On by default. |
People who join during the raid
| Setting | What it does |
|---|---|
| Action | Nothing, Mute them (for the length of raid mode, at least 1 hour), Kick them (the default; they can come back later) or Ban them (permanent; unban from Cases if needed). |
| Who | Everyone who joins, or only new accounts younger than a number of days (7 by default). |
| DM before the action | A message sent before the action. Supports {server}. Leave empty for the default ("Server is in lockdown mode and isn't accepting new members right now…"). |
Members who were already in the server are never affected. With automatic detection, the accounts whose joins set it off are handled too.
Alert
Pick an Alert channel (or the raid log channel is used) and Roles to mention. The alert updates while raid mode is on and has buttons to end it, kick everyone who joined during the raid or ban them all. The History table lists past raids: when they started, who started them, how long they lasted, joins, how many were handled and how they ended.
Each protection works on its own. If one can't be applied (for example, DotBot is missing Manage Server, or a channel's permissions don't let it lock it), the others still are, the alert says what's missing, and DotBot keeps trying for about 15 minutes. When raid mode ends, whatever can't be put back right away is retried; after an hour raid mode ends anyway, the alert says what's left, and DotBot keeps trying to unlock the remaining channels.
DotBot needs Manage Server to change verification and pause invites or DMs, Manage Channels to lock channels, and Moderate / Kick / Ban Members for the join actions.
Safety
Staff action limits
Protects your server from a moderator who goes rogue (or whose account is stolen). If someone bans, kicks, mutes or deletes too much in a short time, DotBot steps in.
| Setting | What it does |
|---|---|
| Limit staff actions | Counts actions done with DotBot and by hand in Discord, including Discord's member prune. The owner is never limited. |
| Limits | Per action, an amount within some minutes. Defaults: 5 bans, 5 kicks or 10 mutes in 10 minutes, and 3 channels deleted or 3 roles deleted in 10 minutes. 0 means no limit for that action. |
| When someone goes over a limit | Only send an alert; Block their moderation commands (the default) for a while; or Block them and remove their roles, which takes away every role DotBot can manage so they lose their Discord permissions. |
| Block for | From 5 minutes to 7 days (1 hour by default). |
| Alert channel / Roles to mention | Where the alert goes, with buttons to unblock the person and give their roles back. Removing roles requires an alert or log channel where DotBot can write: without it, there would be no button to give them back. |
| Roles without limits | For example your admins. DotBot itself is never counted. |
| Don't count other bots | Verification or anti-raid bots kick and ban a lot by design. Turn this on so they never reach a limit, or leave it off to also catch a bot that was taken over. |
Tip
If you also use Anti-Nuke, it watches the actions done by hand in Discord instead (and can undo them), while staff action limits keep watching DotBot's commands.
Nickname cleanup
Fixes names that jump to the top of the member list or are hard to read or mention. It checks members when they join and when they change their name, and only changes the server nickname, never the Discord username.
| Setting | What it does |
|---|---|
| Remove symbols at the start | "!!!Name" or ".Name" becomes "Name". |
| Normalize fancy text | Turns 𝓕𝓪𝓷𝓬𝔂 letters, small caps and glitchy text into plain letters, and removes invisible characters. |
| Nickname when nothing is left | Used when a name has no readable letters or numbers. Default: "Moderated nickname". |
| Roles that are never changed | Moderators and members with a role above DotBot's are never changed either. |
| Check every member now | Applies the saved settings to everyone already in the server and shows how many were checked and changed. |
DotBot needs Manage Nicknames and a role above the member's highest role.
Permissions DotBot needs
DotBot needs the same permission as the command it performs (Ban Members, Kick Members, Moderate Members, Manage Messages, Manage Channels, Manage Nicknames, Manage Roles, Move Members), plus View Audit Log to record manual actions and Manage Server for raid mode. Its highest role must be above the members and roles it manages.
FAQ
I turned on Moderation but the commands don't show up in Discord. Why?
Moderation commands are off by default. Open Moderation → Commands, turn on each command you want and save. Also make sure your Discord client is up to date; new commands can take a few seconds to appear.
Do I need a mute role?
No. /mute uses Discord's built-in timeout, which stops the member from typing, talking and reacting everywhere in the server for up to 28 days.
Can moderators punish each other?
Only downwards. Nobody can moderate someone whose highest role is equal to or above their own, and members with moderation or admin permissions are always immune. The server owner can never be moderated.
Does the channel see which moderator punished someone?
No. With a public reply, DotBot posts the notice in the channel as its own message, not as a reply to the command, so Discord doesn't show "name used /warning" above it. Only the log channel says who did it. If you put {moderator} in the public message, it's shown there too.
Do warnings expire?
By default, never. In the /warning settings you can choose a default expiry in days, and moderators can pick a different time (or "never") for each warning. Expired warnings stay visible in Cases and the profile but no longer count, including for AutoMod's escalation.
Are bans done with right-click → Ban also recorded?
Yes. Bans, kicks, timeouts and role or nickname changes done by hand in Discord get a case and a log entry, as long as DotBot has the View Audit Log permission.
Can I undo a punishment?
Yes. Use the buttons on the log message, open the case in the dashboard and click Revoke warning, Unmute or Unban, or use /unmute, /unban and /remove-warning.
Can a banned member appeal?
Yes, if you turn on Moderation → Appeals. Banned members, and members muted or temporarily banned for 48 hours or more, get a private appeal link in the penalty's DM, or can sign in with Discord on your appeal page. Each penalty can be appealed once.
Why didn't a member get the appeal link?
The link only goes with bans and with mutes or temporary bans of 48 hours or more, and only if the command's DM is on and the member accepts DMs from the server. Without the DM they can still sign in on your appeal page. Raid mode's DMs don't include the link and bans done by hand in Discord don't send a DM, so those members appeal by signing in.
Does the appeal page show DotBot's name?
No. It's a separate site on its own domain that only shows your server's name and icon. The DM comes from the bot that serves your server, signing in uses a neutral Discord app and nothing on the site links back to DotBot. See Your branding.
What's the difference between raid protection and Anti-Nuke?
Raid protection deals with many outsiders joining at once. Anti-Nuke deals with someone inside the server (a moderator, an admin or a bot) deleting channels, roles or banning everyone. Staff action limits are a lighter version of the latter for moderation actions.
Will raid mode kick my regular members?
No. The join action only applies to people who join while raid mode is on, and you can limit it to new accounts only.
Can I see everything about a member before acting?
Yes, use /profile. It shows their account age, join date, roles, activity, who invited them and every case, privately to you.
Why does DotBot say it can't moderate someone?
Usually because the member's highest role is above DotBot's role, or equal to or above yours, or because they have an immune role. Move DotBot's role higher in Server Settings → Roles.