Moderation: Commands, Warnings, Escalation and Mod Log
How Kage's /mod commands work: kick, ban, timeout, warnings with automatic escalation, notes, purge, slowmode, locking channels and the mod log – with permissions and troubleshooting.
Last checked for accuracy: 14 October 2026
Kage's moderation consists of slash commands in the /mod group. They always work, even if you have set nothing up in the dashboard. In the dashboard you only decide whether and where the actions are additionally logged (mod log), and whether Kage automatically imposes a penalty at a certain number of warnings.
Every action is also stored as a case. That builds a history per member, which you retrieve with /mod history. For a short walkthrough, see the guides Setting up moderation and Mod log.
Requirements
- Moderators' permissions: Every command checks the permission it needs (see the table). By default the
/modgroup is only visible to members with the Kick Members permission. You can adjust this in Discord under *Server Settings → Integrations*. - Kage's permissions: Kage needs the same permissions (Kick, Ban, Timeout Members, Manage Messages, Manage Channels). They are part of the standard invite.
- Role order: Kage's role must be above the members you want to punish in the role list.
- For the mod log: Kage needs Send Messages and Embed Links in the log channel.
The commands
| Command | Required permission | Effect |
|---|---|---|
/mod kick | Kick Members | Removes a member from the server (they can rejoin). |
/mod ban | Ban Members | Bans a member. Optionally deletes messages from the last 0 to 7 days (default 0). |
/mod softban | Ban Members | Bans and immediately unbans to delete messages (0 to 7 days, default 1) without a lasting ban. |
/mod unban | Ban Members | Lifts a ban. You give the Discord user ID. |
/mod timeout | Timeout Members | Puts a member in timeout for 1 to 40,320 minutes (28 days). |
/mod timeout-clear | Timeout Members | Lifts a running timeout. |
/mod warn | Timeout Members | Warns a member. Optionally with evidence (link or text). |
/mod history | Timeout Members | Shows a member's full history, up to 25 entries. |
/mod case-remove | Timeout Members | Removes a single case by its number. |
/mod note-add | Timeout Members | Adds an internal note that only moderators see. |
/mod notes | Timeout Members | Shows all notes for a member. |
/mod note-remove | Timeout Members | Removes a note by its number. |
/mod purge | Manage Messages | Deletes the last 1 to 100 messages in the current text channel, optionally only from one member. |
/mod slowmode | Manage Channels | Sets a channel's slowmode (0 to 21,600 seconds, 0 = off). |
/mod lock | Manage Channels | Locks a channel: @everyone can no longer write there. |
/mod unlock | Manage Channels | Lifts the lock again. |
Only you see the replies (ephemeral), except for lock and unlock: there, Kage replies visibly in the channel. If you give no reason, Kage shows the placeholder "No reason given" in replies and the mod log.
Important notes on roles and permissions
- Before kick, ban, softban and timeout, Kage checks whether its own highest role is above the target's highest role. If not, it refuses the action with a notice. Kage does not compare the executing person's role with the target's.
/mod purgeadditionally needs Read Message History for Kage in the channel. If it is missing, Kage reports it instead of failing silently.locksets "Send Messages" to *denied* for @everyone.unlocksets it back to *neutral*, not to *allowed*. Roles with their own overrides in the channel are unaffected.
Cases and history
Every action creates a case with number, type, moderator, reason and time:
| Type in the history | Created by |
|---|---|
| Warning | /mod warn |
| Kick | /mod kick |
| Ban | /mod ban |
| Softban | /mod softban |
| Unban | /mod unban |
| Timeout (with duration) | /mod timeout |
| Timeout removed | /mod timeout-clear |
Cases are immutable. You remove a wrong entry with /mod case-remove and the case number from /mod history; you cannot edit it. Internal notes work the same way: add, show, remove. All actions also appear in the module's Logs tab.
Automatic escalation
With escalation rules, Kage automatically follows up with a penalty at a certain number of warnings.
- In the dashboard you create up to 10 rules: *At [number] warnings:* Timeout, Kick or Ban. For timeout you give the minutes (1 to 40,320, default 60).
- Only one rule per warning count is allowed.
- After each
/mod warn, Kage counts the member's warnings (warnings only, not kicks or bans). If the count matches a rule exactly, Kage carries out the action. - Because the number has to match exactly, a further warning does not trigger the rule again. If you remove cases and the member reaches the number again later, the rule applies again.
- Kage only carries out the action if it has the required permission and its role is above the member. Otherwise nothing happens, and no message appears in Discord.
- The action appears in the mod log, with Kage as the moderator.
Escalation is triggered only by /mod warn. The rules apply independently of the "Log moderation actions" switch; that switch only controls the mod log.
The mod log
In the dashboard under Moderation you turn on Log moderation actions and choose a Log channel. A private channel that only the mod team sees is recommended. Kage then posts an embed with member, moderator and reason for these actions:
- Kick, ban, softban, timeout, warning
- Purge (with count and channel), channel lock, channel unlock
- Automatic escalations
Unbans, removed timeouts, removed cases and notes do not appear in the mod log. They are in the history and in the Logs tab, though. The mod log is separate from the audit log, which records general server activity.
Settings at a glance
| Dashboard field | Meaning | Default |
|---|---|---|
| Log moderation actions | Turns the mod log on. The commands themselves always work. | off |
| Log channel | Channel for the mod log embeds | none |
| Automatic escalation | Up to 10 rules: warning count, action, minutes for timeout | none |
Checking the result
- Test a command: Run
/mod warnon a test account. The reply names the case number and the total number of warnings. - History:
/mod historyshows the entry with number, type, date and moderator. - Mod log: The embed appears in the log channel.
- Escalation: Warn a test account until the count matches a rule.
Troubleshooting
The /mod commands are not visible
You need at least the Kick Members permission to see the group. Check under *Server Settings → Integrations* whether the command is restricted for your role.
Kage refuses a kick, ban or timeout
Usually the member's role is above or level with Kage's role. Move Kage's role up in the role list. Also check that Kage has the required permission. Administrators and the server owner can never be put in timeout.
/mod purge reports missing permissions
Kage needs Manage Messages and Read Message History in the channel. The command also only works in text channels.
Nothing appears in the mod log
Check that "Log moderation actions" is on and a log channel is chosen and saved. Check Kage's permissions in the channel. Unbans and removed timeouts are never posted there.
Escalation does not trigger
The warning count must match a rule exactly. Only warnings (/mod warn) are counted, not kicks or bans. Also check Kage's permissions and role. Removed cases lower the count.
A case cannot be edited
Cases are immutable. Remove it with /mod case-remove and add a new one if needed.
Further reading
General server activity is recorded by the audit log. Regular cleanup is handled by Auto Purge. Automatic measures against spam and raids are described in Anti-spam and Anti-raid.
Related Kage modules
- ModerationIncluded in Basic
- Moderation Cases
Keep reading
More questions? Ask Kage AIAI
Describe what you need – Kage AI picks out the right guide and gives you the sources.
Try Kage on your server
Sign in with Discord, invite the bot and set up the modules in the dashboard. The Basic plan is free forever.