Moderation
How moderation works
Moderation commands act on members and record what happened. Bans, kicks, mutes and similar actions are saved as cases with a case ID, the moderator, the reason and the time. Warnings are stored separately with a short 8-character ID. Every action is also sent to your logging channels if you have them set up.
There is nothing to switch on. The commands work as soon as the bot is in your server and has the matching Discord permissions.
Rules that apply to every action
- You need the Discord permission listed for the command, or a fake permission granted with
!fakeperm(see below). Administrators are always allowed. - Members can only be moderated by someone whose top role is higher than theirs. The server owner is exempt from this rule.
- Nobody can moderate themselves, the bot or the server owner. Extra Owners are protected from anyone below the Extra Owner tier, even if that person has a higher role. See Security Center.
- The bot also needs the matching permission, and its top role must be above the target's top role. When Discord refuses an action, the bot says so instead of failing silently.
- Quarantined moderators cannot use moderation commands until the server owner or an Extra Owner releases them.
- Reasons are optional. Without one the reason is saved as "No reason provided".
- Durations combine numbers and units:
sseconds,mminutes,hhours,ddays,wweeks. Examples:30m,2h,1d12h.
Bans and kicks
!ban @user Spamming links
!tempban @user 3d Cooling off
!softban @user 7 Clean up their messages
!unban 123456789012345678 Appeal accepted
!kick @user Please read the rules
| Command | What it does | Needs |
|---|---|---|
!ban <member or ID> [reason] |
Bans a member. You can use a user ID for someone who is not in the server. | Ban Members |
!tempban <member or ID> <duration> [reason] |
Bans for a set time. The bot unbans automatically, checking once a minute. | Ban Members |
!massban <id> <id> ... [reason] |
Bans up to 25 users after you confirm. Protected users are skipped. | Ban Members |
!softban <member> [days] [reason] |
Bans and immediately unbans, which deletes their recent messages. days is how many days of messages to delete, from 0 to 7. Default is 1. |
Ban Members |
!unban <user ID> [reason] |
Unbans a user by ID and cancels any pending temp-ban. | Ban Members |
!kick <member> [reason] |
Kicks a member. | Kick Members |
!masskick <members...> [reason] |
Kicks several mentioned members at once after you confirm. Members you cannot act on are skipped. | Kick Members |
Timeouts
| Command | What it does | Needs |
|---|---|---|
!mute <member> <duration> [reason] |
Times a member out. Alias: !timeout. |
Moderate Members |
!unmute <member> [reason] |
Removes a timeout. | Moderate Members |
Discord limits timeouts to 28 days.
Warnings and notes
!warn @user Third reminder about spam
!warnings @user
!delwarn 3F9A1C2B
| Command | What it does | Needs |
|---|---|---|
!warn <member> [reason] |
Issues a warning and sends the member a direct message with the reason and case ID. | Manage Messages |
!warnings <member> |
Shows a member's warnings, newest first (up to 15). Alias: !warns. |
Manage Messages |
!delwarn <case ID> |
Deletes one warning by its case ID. | Manage Messages |
!warnclear <member> |
Deletes all of a member's warnings after you confirm. | Manage Messages |
!note <member> <text> |
Saves a private moderator note about a member. | Manage Messages |
!notes <member> |
Shows a member's notes, newest first (up to 10). | Manage Messages |
You cannot warn yourself, the bot or a protected member. By default warnings are only a record. Turn on the warning ladder (!automod set warn_ladder_enabled on) and members who collect warnings are timed out, kicked or banned automatically at the counts you choose. Only warnings newer than the warning window (30 days) count, and the bot tells the channel when the ladder acts. warn_on_punish makes AutoMod punishments add warnings too. See AutoMod.
Case history and stats
| Command | What it does | Needs |
|---|---|---|
!cases [member] |
Shows recent moderation cases for a member, or for the whole server. Shows up to 10 and tells you how many more exist. | Manage Messages |
!modstats [member] |
Shows how many actions of each kind a moderator has taken. Defaults to you. | Manage Messages |
!cases lists bans, kicks, mutes and similar actions. Warnings are listed by !warnings.
Cleaning up messages
| Command | What it does | Needs |
|---|---|---|
!purge <amount> [member] |
Deletes up to 1000 recent messages in the current channel, optionally only from one member. Pinned messages are kept. Alias: !clear. |
Manage Messages |
!purgebots [amount] |
Deletes recent messages sent by bots. Pinned messages are kept. Default 50, maximum 1000. | Manage Messages |
Your command message is deleted and the result message disappears after a few seconds. Discord cannot bulk delete messages older than 14 days.
Locking channels and slowmode
| Command | What it does | Needs |
|---|---|---|
!lockdown [channel] [reason] |
Stops your main role (or @everyone if none is set) from sending messages in a channel (the current one by default). Alias: !lock. |
Manage Channels |
!unlock [channel] [reason] |
Restores sending in a channel. | Manage Channels |
!lockdownall [reason] |
Starts a server lockdown after you confirm. Every channel's earlier settings are saved. Same as !serverlock on. |
Administrator |
!unlockall [reason] |
Lifts the lockdown and puts every channel back as it was. If no lockdown is active it just unlocks channels that deny sending to everyone. | Administrator |
!hide [channel] [reason] |
Hides a channel from the main role. | Manage Channels |
!unhide [channel] [reason] |
Makes a hidden channel visible again. Alias: !show. |
Manage Channels |
!hideall [reason] |
Hides every channel the main role can see after you confirm. | Administrator |
!unhideall |
Unhides only the channels !hideall hid. |
Administrator |
!nuke [channel] [reason] |
Deletes a channel and recreates it with the same name, topic, permissions and position after you confirm. Messages are gone and the channel gets a new ID. Rules and community updates channels are blocked. | Manage Channels |
!mainrole [role\|clear] |
Shows, sets or clears the main role. Same as the Security setting. | Manage Server |
!slowmode <seconds> [channel] |
Sets slowmode from 0 (off) to 21600 seconds. | Manage Channels |
Nicknames and roles
| Command | What it does | Needs |
|---|---|---|
!nickname <member> [new nickname] |
Changes a nickname (up to 32 characters). Leave the name out to reset it. You can always change your own. Alias: !nick. |
Manage Nicknames |
!role add <member> <role> |
Gives a role. The role must be below both your top role and the bot's. Roles with dangerous permissions can only be given by the server owner or an Extra Owner. | Manage Roles |
!role remove <member> <role> |
Takes a role away. The same hierarchy rules apply, and the server owner's roles cannot be changed this way. | Manage Roles |
Role commands refuse @everyone, roles managed by an integration and members who are quarantined (release them first). Every role change is logged.
Running !role on its own shows a short usage hint.
Fake permissions
Fake permissions let you allow a specific member or role to use a moderation command without giving them the real Discord permission. For example, grant ban_members to a trusted role so it can use !ban, while the role does not get Ban Members in Discord itself. Granting administrator as a node allows every command that uses fake permissions, so only the server owner or an Extra Owner can do that.
!fakeperm grant @Helpers manage_messages
!fakeperm revoke @Helpers manage_messages
!fakeperm list @Helpers
!plist
!fpsetup
| Command | What it does | Needs |
|---|---|---|
!fakeperm grant <member or role> <node> |
Grants a permission node. | Administrator |
!fakeperm revoke <member or role> <node> |
Removes a granted node. | Administrator |
!fakeperm list <member or role> |
Lists the nodes a member or role has. | Administrator |
!plist |
Shows every valid node with paging buttons. Full name: !fakepermplist. |
Administrator |
!fpsetup |
Guided setup with buttons and menus to grant or revoke. Full name: !fakepermsetup. |
Administrator |
Fake permissions follow these rules: the node must be a real Discord permission name, you need the real Administrator permission (a fake one is not enough), administrator, manage_guild, manage_roles, manage_channels, manage_webhooks and mention_everyone can only be granted by the server owner or an Extra Owner, and they cannot go to @everyone, bots or quarantined members. Grants are removed when the role is deleted or the member leaves, and every grant and revoke is logged.
Nodes are Discord permission names such as ban_members, kick_members, moderate_members, manage_messages, manage_channels, manage_roles and manage_nicknames. !warn also accepts the node warn, so you can let someone warn without giving them Manage Messages.
Defaults and limits
| Setting | Value |
|---|---|
| Purge amount | 1 to 1000 |
| Softban message deletion | 0 to 7 days, default 1 |
| Slowmode | 0 to 21600 seconds |
Warnings shown by !warnings |
15 |
Notes shown by !notes |
10 |
Cases shown by !cases |
10 (most recent 50 are loaded for a server) |
| Temp-ban check interval | Every minute |
From the dashboard
The Moderation page on the web dashboard lets you:
- Warn, timeout (up to 28 days), remove a timeout, kick, ban (optionally for a set time) and unban a member. You enter the member's user ID and a reason.
- Browse recent cases and recent warnings, and delete a warning.
Dashboard actions create the same cases and log entries as the commands and follow the same role and protection rules, including protection for Owners and Extra Owners. Purge, lockdown and slowmode stay as commands because they depend on a channel. Notes, !masskick, nicknames, roles and fake permissions are commands only.
Troubleshooting
- "You cannot ... someone with a higher or equal role": your top role must be above the target's.
- "Owners and Extra Owners are protected": only the server owner and Extra Owners can act on them.
- "You are quarantined": a quarantined member cannot use moderation commands. The server owner or an Extra Owner can run
!release. - The command fails silently or Discord refuses it: check that the bot has the permission and that its role sits above the target's role in Server Settings, then Roles.
- A member with a fake permission still cannot use a command: the node must match the command's permission name, for example
ban_membersfor!ban. They also stop working while the member is quarantined. !fakeperm grantsays Not Allowed: you need the real Administrator permission, andadministrator,manage_guild,manage_roles,manage_channels,manage_webhooksandmention_everyonecan only be granted by the server owner or an Extra Owner.!purgedoes not delete old messages: Discord only allows bulk deletion of messages newer than 14 days.
Timed and seasonal roles
Give a role that removes itself: !temprole add @member @role 7d [reason]. Use !temprole extend, !temprole remove and !temprole list to manage them. If the member leaves and comes back before it ends, the role returns.
For seasons, create a window and let members claim the role themselves while it is open:
!season create Winter | @Snowflake | 1 dec 00:00 | 1 jan 00:00
!season panel <id> #roles
!season yearly <id> on
Everyone who claimed the role loses it when the season ends. Times use the server timezone (!event timezone). !season list shows every season and its status. !season delete <id> ends it early and removes the role from everyone.
Commemorative roles
Give a permanent role to everyone who was in the server during a period, such as Valentine 2026, Winter 2025 or Summer 2024. Create the role first, then:
!badge create Valentine 2026 | @Valentine 2026 | 1 feb 2026 00:00 | 15 feb 2026 00:00 | in 14d
!badge panel <id> #roles
Members press Claim role while the claim window is open. Anyone who joined before the period ended can claim it. The last part is when claiming closes. For a period that has not ended yet you can leave it out and claiming closes when the period ends. Use !badge grant <id> (administrators) to hand the role to every eligible member at once, !badge extend <id> <when> to reopen claiming, !badge list to see claim counts and !badge delete <id> to remove a badge (members keep the role).
Rexi only knows when a member last joined, so someone who left and came back after the period cannot claim it, and members who already left cannot receive it.
Member timeline (500+ members)
!history @member shows one list with everything staff know: cases, warns, reports for and by them, appeals, trust changes, tickets, applications, ban-evasion links and timed roles.
Smart slowmode (500+ members)
!smartslow on raises a channel's slowmode on its own when many people flood it, then puts it back after 3 calm minutes. !smartslow trigger <messages> sets what counts as a flood (messages in 10 seconds from at least 4 people) and !smartslow max <seconds> caps it. The bot needs Manage Channels.
Both features need 500 members because they watch a lot of activity. In a smaller server they are not available. !sizegate shows whether they are available in yours.
Anonymous staff feedback
!feedback channel #private-channel and !feedback on, then !feedback panel in a public channel. Members press Send feedback and fill in a short form. Staff see the text and which staff member it is about, never who sent it. Each member can send 3 a day. Managers can Mark resolved or Block this sender without learning who it is. !feedback summary [days] shows repeated words and staff who were mentioned more than once.
Anonymity is real but not perfect: a very specific message can still give someone away, and the panel tells members that.
Polls with roles and weights
!poll "Question" A | B | C --roles @Member @VIP --weight @VIP=3 --hidden --duration 1d. --roles limits who can vote, --weight makes a role's vote count more (2 to 10), --hidden keeps results hidden until the poll ends.