What this feature does
Cases, escalating warnings, AutoMod, anti-raid mode, anti-nuke, a panic button and phishing link protection.
Before you begin
For server settings, open your server dashboard and select the server you manage. For commands and buttons, use the server where your community has enabled this feature. The options available to a member depend on that server’s settings.
Get started
1. Enable Moderation in the console
Turn on Moderation in your server dashboard, pick mod roles and a mod log channel, and decide whether a reason is required.
2. Configure AutoMod
Switch on the rules you need, set thresholds, and choose per rule whether to delete, warn or time out. Exempt staff roles and channels.
3. Add escalation and protection
Define warning thresholds and their punishments, then turn on anti-raid mode, anti-nuke and phishing protection on the Protection tab; the Protection score shows what is still missing.
4. Moderate from Discord
Use /warn, /timeout, /kick, /ban, /purge, /lock, /lockdown and /panic, and look up history with /modlog and /case.
Discord automod that you control
Each AutoMod rule has its own threshold and actions: delete the message, add a warning that counts toward escalation, or time the member out for a set number of seconds. Link filtering works as a deny list or an allow list of domains, the invite filter can allow your own server’s invites, and the bad-word list supports * wildcards.
Staff are exempt automatically, and you can exempt extra roles and channels globally or per rule. During a burst, messages keep getting deleted but the warning, timeout and log happen once, so your mod log doesn’t explode. Our Discord automod setup guide suggests a sensible starting configuration.
- Durations like
10m,2h,7d,1h30m; also in Russian and Hebrew. - Tempbans and timeouts expire on schedule, even after a restart.
- Role hierarchy checks stop moderators acting on higher roles.
/purgefilters by user, text or bots, up to 100 messages at a time.
Built for the whole moderation team
Moderators need the matching Discord permission or one of your mod roles, and destructive actions like deleting a case need Manage Server. The console shows a dashboard, a searchable case list, AutoMod stats and every setting in one place, and cases also appear in your server logs.
Members get a DM explaining what happened, with an optional appeal note, and every action lands in your mod log channel as a tidy embed. With Rules as Code on, /warn, /timeout, /kick and /ban also take a rule: option that cites the broken rule in the case, the mod log and the DM. For new-member gating, pair Moderation with Verification; see the Discord verification guide.
Protection for the bad days: anti-nuke, anti-raid and phishing
With the View Audit Log permission the bot knows who deleted a channel, banned a crowd or created a webhook, so it responds to that one account: quarantine (every role removed and stored so staff can restore them), kick or ban, then it reverts what it can and alerts your team. Without that permission it still counts deletions server-wide and alerts; the console tells you how to grant it.
Anti-raid mode scores every join burst and, when it looks like a raid, locks the server until it is calm again and makes newcomers solve the verification captcha. The phishing filter checks links in messages against public phishing lists and a look-alike detector; it needs Discord’s Message Content intent to read ordinary messages, and without it scans member names and messages that mention the bot.
/paniclocks every channel, pauses invites and can quarantine a member;/panic endrestores it all.- Per-event thresholds: channels, roles, bans, kicks, unbans, webhooks, emoji deletions.
- Auto-restore of deleted channels and roles from your latest backup.
- An incident log in the console with “Restore roles” and “Undo”.
Questions and troubleshooting
What is the best way to set up automod on Discord?
Start with spam, mass mentions, invites and links, set actions to delete plus warn, and add escalation rules so repeat offenders get timed out automatically. The automod setup guide has recommended thresholds.
Can the bot punish automatically after several warnings?
Yes. Escalation rules turn a number of active warnings; optionally within a number of days; into a timeout, kick, tempban or ban. The new case links back to the warning that triggered it.
How does anti-raid work?
The bot watches the join rate and gives each burst a raid score (new accounts, no profile picture, similar names, the same invite link). On a raid it locks channels, makes newcomers pass the verification captcha, lists or removes the raiders and alerts your team. It ends after a calm period and restores permissions exactly.
Do punished members get a DM?
Yes, by default. DMs explain the action, reason and duration, can show the moderator, and ban DMs can include your appeal instructions. Every template is editable.
Does AutoMod need the Message Content intent?
Content-based rules such as bad words, links, invites and caps need it, and so does phishing scanning of ordinary messages. Spam, mass mentions, new-account rules, member-name phishing checks and anti-nuke work without it.
What does anti-nuke need?
The View Audit Log permission, so the bot can see who did what and act on that account only; without it you get server-wide alerts. Deleting webhooks needs Manage Webhooks and pausing invites needs Manage Server. Auto-restore of deleted channels and roles is free on every plan and uses your latest backup.
Next steps
Use the command reference below for the available Discord actions. If something does not appear or respond, follow Troubleshooting. Server admins can check roles and permissions before changing access.
Commands for this feature
| Command | What it does | Options |
|---|---|---|
/ban | Ban a user — add a duration for a temporary ban | user requiredThe user (also works for people who already left)Select a memberreason optionalReason (shown in the mod log and the DM)Text · Up to 512 charactersdelete_messages optionalDelete the user's recent messagesWhole number · Choices: Don't delete any · Previous hour · Previous 6 hours · Previous 12 hours · Previous 24 hours · Previous 3 days · Previous 7 daysduration optionalOptional: ban for a while (e.g. 7d) — empty = permanentText · Up to 40 characters · Choose from the matching suggestionsevidence optionalEvidence links (screenshots, messages), separated by spacesText · Up to 1000 charactersrule optionalRule the member broke (Rules as Code number or title)Text · Up to 100 characters · Choose from the matching suggestionsshield_category optionalShare this ban with Server Shield as… (when the server contributes)Text · Choices: Raid · Spam · Scam / phishing · Nuke attempt · Ban evasion · Don’t share |
/case view | Show a case | number requiredCase numberWhole number · Minimum: 1 |
/case edit | Change a case's reason (and add evidence links) | number requiredCase numberWhole number · Minimum: 1reason requiredThe new reasonText · Up to 512 charactersevidence optionalEvidence links (screenshots, messages), separated by spacesText · Up to 1000 characters |
/case delete | Delete a case | number requiredCase numberWhole number · Minimum: 1 |
/kick | Kick a member from the server | member requiredThe memberSelect a memberreason optionalReason (shown in the mod log and the DM)Text · Up to 512 charactersevidence optionalEvidence links (screenshots, messages), separated by spacesText · Up to 1000 charactersrule optionalRule the member broke (Rules as Code number or title)Text · Up to 100 characters · Choose from the matching suggestions |
/lock | Lock a channel: members can no longer send messages | channel optionalChannel (default: this one)Select a channelreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters |
/lockdown start | Start a lockdown now | reason optionalReason (shown in the mod log and the DM)Text · Up to 512 charactersduration optionalEnd automatically after, e.g. 30m, 2h (empty = end manually)Text · Up to 40 characters · Choose from the matching suggestions |
/lockdown end | End the lockdown and restore the channels | No options |
/modlog | A member's moderation history | member requiredThe memberSelect a member |
/note | Add a private moderator note to a member | member requiredThe memberSelect a membertext requiredThe noteText · Up to 1000 characters |
/panic start | Lock every channel, pause invites and optionally quarantine a member | quarantine optionalMember to quarantine (all roles removed, restorable later)Select a member |
/panic end | End the panic: unlock channels and resume invites | No options |
/purge | Bulk-delete recent messages in this channel | count requiredHow many messages to check (1–100)Whole number · Minimum: 1 · Maximum: 100user optionalOnly messages from this userSelect a membercontains optionalOnly messages containing this textText · Up to 100 charactersbots optionalOnly messages from botsYes / noreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters |
/slowmode | Set or turn off slowmode in a channel | duration requiredDelay between messages, e.g. 10s, 1m, 2h — or "off"Text · Up to 40 characters · Choose from the matching suggestionschannel optionalChannel (default: this one)Select a channel |
/softban | Ban and immediately unban to wipe a member's recent messages | member requiredThe memberSelect a memberreason optionalReason (shown in the mod log and the DM)Text · Up to 512 charactersdelete_messages optionalDelete the user's recent messagesWhole number · Choices: Don't delete any · Previous hour · Previous 6 hours · Previous 12 hours · Previous 24 hours · Previous 3 days · Previous 7 days |
/timeout | Time out a member for a while (e.g. 10m, 2h, 1d) | member requiredThe memberSelect a memberduration requiredHow long, e.g. 10m, 2h, 1d, 1wText · Up to 40 characters · Choose from the matching suggestionsreason optionalReason (shown in the mod log and the DM)Text · Up to 512 charactersevidence optionalEvidence links (screenshots, messages), separated by spacesText · Up to 1000 charactersrule optionalRule the member broke (Rules as Code number or title)Text · Up to 100 characters · Choose from the matching suggestions |
/unban | Unban a user | user_id requiredUser ID (or pick from the ban list)Text · Up to 40 characters · Choose from the matching suggestionsreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters |
/unlock | Unlock a locked channel | channel optionalChannel (default: this one)Select a channelreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters |
/untimeout | Remove a member's timeout | member requiredThe memberSelect a memberreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters |
/warn | Warn a member (counts toward automatic escalation) | member requiredThe memberSelect a memberreason optionalReason (shown in the mod log and the DM)Text · Up to 512 charactersevidence optionalEvidence links (screenshots, messages), separated by spacesText · Up to 1000 charactersrule optionalRule the member broke (Rules as Code number or title)Text · Up to 100 characters · Choose from the matching suggestions |