Steps
Check the bot can act
Moderation Bot needs the matching Discord permission for each action, such as Ban Members or Kick Members. Its role must also sit above the member's highest role in Server Settings → Roles, or Discord will refuse the action.
Choose who can use each command
Open Server Settings → Integrations in Discord and select Moderation Bot. From there you can allow or block each command for specific roles, members and channels.
Run the command
Type the command, pick the member and add a reason. For a timeout, also set how long it should last.
Read the private reply
The bot replies only to you with the case number. If the member could not be sent a DM, the reply tells you, but the action still goes ahead.
The commands
Every command replies privately, so the rest of the channel does not see the moderation happen.
- /ban removes a current member from the server and stops them rejoining.
- /kick removes a current member. They can rejoin with a new invite.
- /warn records a warning. A reason is required.
- /timeout stops a member chatting or joining voice for a set time. /untimeout ends it early.
- /unban lifts a ban. Pick the user, or paste their user ID if they are no longer in the server.
- /lock channel and /lock all stop members sending messages in one channel or every channel. /unlock channel and /unlock all reverse it.
- The purge command deletes the messages posted after a message you choose. Pass in that message ID, with an optional reason.
Timeout lengths
Timeouts accept short durations such as 10m, 1h30m or 1w. The shortest is 1 second and the longest is 28 days, which is the limit Discord sets. The duration box suggests common lengths as you type.
If the member is already timed out, a new /timeout replaces the old one. /untimeout removes it straight away.
Direct messages to members
By default, members get a DM when a command warns, times them out, removes a timeout, kicks or bans them. The DM is sent before a kick or ban so they can still read it. Unbans never send a DM.
You can turn these DMs off on the Mod log page in the dashboard. Open Mod log settings and switch off "DM members about moderation actions". This only affects manual commands. If a member has DMs closed, the action still happens and your private reply says the DM failed.
Command access
Who can use /warn, /timeout, /untimeout, /unban, /ban, /kick, /modlogs and /case is set in Discord under Server Settings → Integrations. The bot still checks its own permissions, and checks role order for everything except unbans.
Common questions
What is the longest timeout I can give?
28 days. That is the maximum Discord allows for a timeout. For anything longer, use a ban instead.
Can I unban someone who is not in the server?
Yes. Paste their user ID into the user option of /unban. The unban gets a case number but no DM is sent.
Why did the bot say it could not act on a member?
Usually the bot's role is below the member's highest role, or it is missing the permission for that action. Move the bot's role higher in Server Settings → Roles and try again.