Moderation
Warnings, bans, kicks, timeouts and channel locks - including auto-ban once a member collects too many warnings.
Purpose: The moderation module bundles the tools you use to enforce your server rules. Warnings are stored and counted per member; once a configurable threshold is reached the bot can ban the member automatically. Every command can be switched off individually, and a dedicated moderator role controls who may use them.
Warnings and escalation#
The warn command files a warning for a member with reason, moderator and timestamp. Warnings are stored permanently and can be listed individually or all at once.
- Ban threshold sets how many active warnings the bot acts on.
- Auto-ban decides whether reaching the threshold bans immediately. With auto-ban off, nothing happens even when the threshold is reached.
- A removed warning no longer counts – the threshold is computed from the warnings actually stored.
Who may moderate#
Every moderation command requires a Discord permission (e.g. Ban Members for ban). You can additionally set a moderator role – it is meant for moderation but does not replace Discord permissions.
For role handling within moderation to work, the bot role must sit above the moderator role.
What lands in the mod log#
With a mod log channel set, every moderation action writes an entry there: who acted, who was affected and why. Without a log channel, the actions stay invisible to the team.
Commands#
| Command | Description | Permissions |
|---|---|---|
/warn | Manage warnings | Timeout Members |
/ban | Bans a user from the server | Ban Members |
/kick | Kicks a user from the server | Kick Members |
/timeout | Puts a user in timeout | Timeout Members |
/clear | Deletes messages from the channel (count, type and/or user selectable) | Manage Messages |
/lock | Locks a channel | Manage Channels |
/unlock | Unlocks a channel | Manage Channels |
/softban | Bans a user and immediately unbans them – deletes their messages | Ban Members |
/unban | Unbans a user | Ban Members |
→ Details in the command reference
Dashboard settings#
| Setting | Type | Meaning |
|---|---|---|
| Moderation module enabled | Toggle | Turns the module on or off. Disabling it blocks the related commands (see the FAQ entry “command blocked”). |
| Moderator role | Role | Role allowed to run moderation commands. Checked in addition to Discord's own permissions - both must be satisfied. |
| Mod log channel | Channel | Channel where moderation actions (warnings, bans, kicks, timeouts) are logged. |
| Auto-ban at warning threshold | Toggle | Automatically bans a member as soon as they reach the ban threshold of warnings. |
| Ban threshold (number of warnings) | Number | Number of warnings at which auto-ban kicks in. Only takes effect together with auto-ban enabled. |
| Command /warn enabled | Toggle | Allows managing warnings through the warn command. |
| Command /ban enabled | Toggle | Allows the ban command. |
| Command /kick enabled | Toggle | Allows the kick command. |
| Command /timeout enabled | Toggle | Allows the timeout command. |
| Command /purge enabled | Toggle | Toggles the /purge entry in the interface. Note: the current command set has no separate purge command - use clear to delete messages. |
| Command /clear enabled | Toggle | Allows the clear command (delete messages). |
| Commands /lock & /unlock enabled | Toggle | Allows the lock and unlock commands. |
| Command /softban enabled | Toggle | Allows the softban command (ban and immediately unban to delete messages). |
| Command /unban enabled | Toggle | Allows the unban command. |
Pitfalls#
- Auto-ban only triggers when auto-ban is enabled and a ban threshold is set. The threshold alone does nothing.
- The moderator role does not replace Discord permissions. If the bot itself lacks a permission (e.g. “Ban Members”), the command fails even with the correct role.
- Warnings are stored permanently. A removed warning no longer counts towards the threshold.