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#

CommandDescriptionPermissions
/warnManage warningsTimeout Members
/banBans a user from the serverBan Members
/kickKicks a user from the serverKick Members
/timeoutPuts a user in timeoutTimeout Members
/clearDeletes messages from the channel (count, type and/or user selectable)Manage Messages
/lockLocks a channelManage Channels
/unlockUnlocks a channelManage Channels
/softbanBans a user and immediately unbans them – deletes their messagesBan Members
/unbanUnbans a userBan Members

→ Details in the command reference

Dashboard settings#

SettingTypeMeaning
Moderation module enabledToggleTurns the module on or off. Disabling it blocks the related commands (see the FAQ entry “command blocked”).
Moderator roleRoleRole allowed to run moderation commands. Checked in addition to Discord's own permissions - both must be satisfied.
Mod log channelChannelChannel where moderation actions (warnings, bans, kicks, timeouts) are logged.
Auto-ban at warning thresholdToggleAutomatically bans a member as soon as they reach the ban threshold of warnings.
Ban threshold (number of warnings)NumberNumber of warnings at which auto-ban kicks in. Only takes effect together with auto-ban enabled.
Command /warn enabledToggleAllows managing warnings through the warn command.
Command /ban enabledToggleAllows the ban command.
Command /kick enabledToggleAllows the kick command.
Command /timeout enabledToggleAllows the timeout command.
Command /purge enabledToggleToggles the /purge entry in the interface. Note: the current command set has no separate purge command - use clear to delete messages.
Command /clear enabledToggleAllows the clear command (delete messages).
Commands /lock & /unlock enabledToggleAllows the lock and unlock commands.
Command /softban enabledToggleAllows the softban command (ban and immediately unban to delete messages).
Command /unban enabledToggleAllows 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.
Last updated