BotManualTHE COMMUNITY PLAYBOOK
English

Set up moderation your staff can explain

A detailed guide to staff access, warnings, every AutoMod rule, raid detection, anti-nuke protection, phishing responses and recovery.

14 min read

WHAT YOU WILL BUILD

A documented moderation policy with tested filters, deliberate automatic responses and a known recovery path.

Follow the steps, try the example and use the checklist before opening it to your community.

On this page

Your mission

Give staff a consistent policy and give members understandable consequences. Configure staff access and logs first, then a small set of message rules. Review protection responses before enabling them: some settings remove messages, restrict roles or remove members immediately.

The configuration areas are Settings, AutoMod, Escalation and Protection. Dashboard and Cases show outcomes. Save draft configuration with Save changes. Operational actions such as panic, restoring roles or processing an incident are separate actions, not unsaved configuration.

Step 1: Set the staff foundation

SettingDefaultWhat it controls
Moderator rolesEmptyGives those roles moderation-command access in addition to native Discord permissions.
Mod-log channelUnsetWhere case records are posted. Choose a staff-only destination.
Require reasonOffMakes a reason necessary when taking supported moderation actions.
Member DMsOnSends applicable moderation notices when delivery is possible.
Show moderatorOffWhether the notice identifies the staff member.
Appeal textBlankAppended appeal instructions for ban notices.
DM templatesBuilt-in localized wordingCustomize notices for warn, timeout, kick, ban, temporary ban, softban and unban.

Template variables include {server}, {action}, {reason}, {duration}, {case}, {moderator} and {expires}. Keep the reason visible and explain your appeal process plainly. A closed DM inbox can prevent delivery; the case record is the place to verify what happened.

Grant the bot the Discord permissions needed for actions you actually enable: Manage Messages for deletions, Moderate Members for timeouts, Kick Members or Ban Members for those responses, and role/channel management for protection changes. The bot and acting staff must also respect role hierarchy. Granting a feature-specific staff role does not make hierarchy disappear.

Step 2: Understand every AutoMod response

All AutoMod rules start disabled. Each rule has its own Enabled, Delete message, Warn, Timeout duration, Exempt roles and Exempt channels. The global AutoMod area adds shared exemptions, an Exempt staff switch (on by default) and a log channel that falls back to the mod-log channel.

Delete, Warn and Timeout are separate actions and may be combined. A timeout of zero disables that part. Warnings can feed escalation, so enabling Warn can have consequences beyond the immediate message.

RuleDetection settings and defaultsExample decision
Spam6 messages in 5 seconds; its initial timeout is 300 seconds if the rule is enabled unchanged.Review the timeout before enabling it for a fast-moving chat.
Duplicates3 repeated messages within 30 seconds.Exempt a channel that intentionally uses repeated game responses.
MentionsThreshold 6; count everyone mentions is on.Keep broad mention bursts out of ordinary chat.
Capitals75% capitals with minimum length 15.The minimum length avoids treating every short acronym as a violation.
InvitesAllow own server invites is on.Block outside invites while permitting your own.
LinksDeny-list mode by default, with a domain list.Deny blocks listed domains; Allow restricts links to the allowed list.
Bad wordsA list of word patterns.Test patterns against innocent phrases before rollout.
ZalgoMaximum combining-mark setting starts at 4.Limit heavily decorated text that harms readability.
Attachments6 attachments in 15 seconds.Tune for art channels that regularly post several images.
New accountAccount younger than 3 days; its initial Delete switch is off.Decide the response explicitly instead of assuming this rule deletes messages.

Most rules initially have Delete on, Warn off and no timeout. Spam and New account have the exceptions listed above. Inspect the saved controls, especially on an existing server with older settings.

Rules for duplicates, capitals, invites, links, words, decorated text and attachments depend on Message Content capability. Message-rate spam, mention arrays and account-age checks can work without it. Read the capability notice instead of assuming a checked switch proves the bot can inspect every message.

Step 3: Make warnings predictable

Warning expiry defaults to 30 days; zero means warnings never expire. This controls how long a warning remains active.

An escalation row has warning count, time window in days, action and a duration for a timeout or temporary ban. Window zero counts all active warnings. A row's window is different from warning expiry: a warning can still be active but too old for a seven-day row.

Example policy: three active warnings within seven days → a one-hour timeout. Explain that policy to staff before adding it. Available actions include Timeout, Kick, Temporary ban and Ban. Timeout must be between one minute and 28 days; a temporary ban needs a duration. Duplicate count/window pairs are rejected.

Keep escalation empty during the first filter test if you only want to inspect warning cases. Once enabled, an AutoMod warning can contribute to the same escalation thresholds as another eligible warning.

Step 4: Configure raid detection and its responses

Anti-raid starts off. In Protection → Anti-raid, the classic rule defaults to 10 joins in 10 seconds. Smart detection is on within the anti-raid settings and adds a second route: a burst of at least 5 joins with score at least 65. Young-account age starts at seven days.

Setting groupWhat to configure
Smart signalsYoung accounts, default avatars, similar names and the same invite. Each has its own switch. A signal is evidence for the score, not proof of abuse by itself.
Lock channelsOn by default. Empty channel selection means channels everyone can write in; choose specific destinations to narrow the scope.
Join action during a raidNone, Timeout or Kick. Default is Timeout for one hour.
Minimum account age during raidDefaults to 7 days; younger accounts are kicked during a raid. Zero disables this age rule.
Verification gateOn by default; uses a captcha gate during a raid when Verification is enabled.
Cluster actionAlert by default; optionally Kick or Ban matching accounts.
Auto-end after calm15 minutes by default; new joins extend the calm period. Zero requires a manual end.
Alert channel / rolesStaff destination and notification roles. Blank channel falls back to the mod log.

Cluster action = Alert does not make the whole anti-raid setup alert-only. Channel locking, the join action and the raid age rule remain separate. Review all of them before enabling detection, especially before a planned community event that may bring many legitimate joins.

The separate join gate

Join gate checks every arrival even outside a raid. Minimum account age defaults to zero (off), and rejecting default avatars defaults off. Its action is Timeout or Kick; the initial timeout is 24 hours. Do not mistake these settings for conditions that only run when a raid is active.

Step 5: Protect against destructive staff actions

Anti-nuke needs View Audit Log for per-executor detection. Without it, the available fallback is more limited and cannot identify the executor in the same way. Read the protection status before relying on automated intervention.

ThresholdDefault within the 30-second window
Channel deletions / creations3 / 8
Role deletions / creations3 / 8
Bans / kicks / unbans5 / 5 / 5
Webhook changes3
Emoji or sticker deletions6

Each numeric threshold can be disabled with zero. Separate instant switches detect dangerous permission grants, bot additions and server-name/vanity changes by untrusted actors; these start on inside the disabled anti-nuke configuration.

Response settingMeaning
ResponseAlert, Strip roles, Quarantine, Kick or Ban. New configurations default to Quarantine.
Timeout executorAdds a 24-hour timeout to the Strip response when applicable.
Quarantine roleA restricted role the bot can create/use while it removes manageable roles from the executor.
RevertAttempts to undo supported changes such as dangerous grants or newly created webhooks, subject to permissions and hierarchy.
Auto-restoreOff by default; can recreate deleted channels/roles from a suitable earlier backup. It is not recovery of deleted message history.
Trusted users / rolesExemptions for known operators. The owner and bot are already trusted. Keep the list narrow.
Alert channel / rolesWhere the incident is reported and whom it notifies.

Recently granted trusted roles have a settling period before they count for trust. A non-trusted actor handing out a trusted role is itself a protection signal. Do not use trust lists as a way to silence an unexplained alert.

Revert and auto-restore depend on what the bot can manage and what the backup contains. An executor above the bot can require immediate human action. Review the incident's actual result, including changes it could not undo.

Step 6: Choose phishing behavior

Phishing protection starts off, but its default listed-domain action is Ban. Review this before enabling it. Listed and suspected domains have different responses.

SettingDefaultMeaning
Listed-domain actionBanAfter deleting a matched message: None, Timeout, Kick or Ban. None means no additional punishment, not “leave the message”.
Timeout duration24 hoursUsed when the selected/fallback action is a timeout.
Established-member threshold30 days in the serverPotentially compromised long-standing members receive a timeout instead of a kick/ban. Zero treats everyone the same.
Suspected-domain actionDeleteOff, Alert or Delete for suspected/lookalike matches, without the listed-domain punishment.
Scan namesOnChecks member names on joining/changing.
Name actionAlertCan be changed to Timeout, Kick or Ban.
Blocklist / allowlistEmptyCustom domain decisions. The allowlist is evaluated before blocklists/public sources.
Exempt roles / staffNo roles / staff exemptBypasses for the selected actors.
Log channelFallbackUses the AutoMod log, then mod log, when no separate destination is set.

Use Test a URL with a harmless test domain and a temporary custom rule to inspect classification. Do not open an actual malicious link to test protection. Ordinary-message scanning also depends on Message Content capability; name scanning is a separate path.

Step 7: Practice recovery before launch

Cases show what happened, why, who acted and whether it came from a command or automation. Protection's incident log and quarantine list show raid/nuke actions. Restore roles is a privileged recovery action and can require confirmation for dangerous roles. Inspect the role list before restoring it.

Panic is an emergency action, not a harmless preview. It can lock writable channels, attempt to pause invites and activate a verification gate. Ending panic restores the related channel state and invites, but quarantined members remain quarantined until deliberately restored.

For a controlled first test, leave destructive protection disabled. Create one narrow AutoMod test rule using harmless text, no warning escalation and no timeout; test as a normal member in a dedicated channel. Staff exemptions can otherwise make a broken test look like a broken filter. Restore the intended rule afterward.

Diagnose actual bot responses

Use the response to identify the failing stage before changing settings. The messages below are referenced by this feature’s current handlers. Values in square brackets represent the member, amount, time or other live detail supplied in Discord; they are not text to enter. Different actions can use different guards, so this list is a diagnostic reference, not a claim that every message appears in every workflow.

Response or conditionAdmin investigation and next step
You don't have permission to use this command (you need the matching Discord permission or a moderator role).Inspect the bot’s effective permission in the exact destination and the relative position of any role it must manage. Re-test the original action after correcting the specific missing access.
the bot is missing permissions for this: [perms].Inspect the bot’s effective permission in the exact destination and the relative position of any role it must manage. Re-test the original action after correcting the specific missing access.
the bot doesn't have the permissions for this (check its role and the channel overrides).Inspect the bot’s effective permission in the exact destination and the relative position of any role it must manage. Re-test the original action after correcting the specific missing access.
A reason is required on this server.Compare the submitted fields with the current editor or command options, including required values, supported choices and ranges. Change the rejected input and review the new preview.
Evidence must be up to [max] links (http/https), separated by spaces.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
Unrecognized duration — try 10m, 2h, 1d or 1w.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
The duration must be between [min] and [max].Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
That user isn't a member of this server.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
They were banned, but the automatic unban failed, so they are still banned (case #[case]). Unban them manually.Inspect this member’s eligibility and the server’s policy for this operation. Establish which condition failed before changing roles or making an exception.
That member isn't timed out.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
Members with Administrator can't be timed out.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
That user is already banned.Open the existing record and confirm its current result before creating a replacement. An already-completed response can indicate that the first action succeeded.
That user isn't banned.Inspect this member’s eligibility and the server’s policy for this operation. Establish which condition failed before changing roles or making an exception.
That doesn't look like a user ID.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
That member is no longer here.Inspect the current state and use a current record or interaction. Decide whether a new operation is intended before recreating something that may already have settled.
That channel no longer exists.Inspect the current state and use a current record or interaction. Decide whether a new operation is intended before recreating something that may already have settled.
Messages older than 14 days can’t be bulk-deleted.Locate the referenced item, channel, member or record in this server. Correct a deleted destination or stale selection instead of creating unrelated replacements.
Discord is rate-limiting the bot — try again in a moment.Read the stated wait or retry time and distinguish a member cooldown from a service rate limit. Repeated attempts do not repair the underlying timing constraint.
Messages can't be bulk-deleted in this channel.Locate the referenced item, channel, member or record in this server. Correct a deleted destination or stale selection instead of creating unrelated replacements.
Slowmode can't be set on this channel.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
Slowmode must be between 0 seconds and 6 hours (e.g. 10s, 1m, 2h, or "off").Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
This kind of channel can't be locked.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
The "contains" filter needs the Message Content intent, which this bot doesn't have.Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.
Case #[number] doesn't exist.Locate the referenced item, channel, member or record in this server. Correct a deleted destination or stale selection instead of creating unrelated replacements.
You can't do that to the bot.Inspect the bot’s effective permission in the exact destination and the relative position of any role it must manage. Re-test the original action after correcting the specific missing access.
That member’s top role is the same as or higher than the bot’s — move the the bot role up.Inspect the bot’s effective permission in the exact destination and the relative position of any role it must manage. Re-test the original action after correcting the specific missing access.
This alert is no longer available (the incident was resolved or deleted).Inspect the current state and use a current record or interaction. Decide whether a new operation is intended before recreating something that may already have settled.
No published rule matches that — pick one from the list (Rules as Code must be on).Match this response to the affected action and its current record. Compare the selected target, saved configuration and expected result; confirm what completed before retrying a state-changing action.

After a correction, repeat the original action with the affected member permissions and inspect its final state. For a reward, payment, role change or public post, verify what already completed before applying a manual replacement. Keep the record identifier and response in your staff notes so a second admin can follow the same incident.

When something looks wrong

SymptomInspectRecovery
Filters ignore a messageRule state, staff/role/channel exemptions and content capability.Test as a non-exempt normal member with an applicable rule.
Unexpected punishmentEnabled response switches plus active escalation.Read the case source and reason before changing unrelated rules.
Raid appears during a launch eventJoin-rate rule, smart score and planned legitimate traffic.Adjust policy for the event and inspect each response separately.
Anti-nuke reports but cannot actAudit access, hierarchy and required action permissions.Have an authorized operator handle the incident and correct capability gaps.
Protection restores only part of the serverAvailable backup and supported revert actions.Read the incident/restore report; deleted chat history is not recreated.
Long-standing member timed out instead of bannedCompromised-member threshold.Review the account and incident before deciding the next action.

Launch checklist

  • Staff know the reason policy, warning window and escalation consequences.
  • Normal-member filter tests work, and exemptions are intentional.
  • Every automatic delete, timeout, kick, ban or role-removal response has been reviewed.
  • Alerts have a staffed destination and required bot permissions are available.
  • Raid settings account for legitimate bursts of arrivals.
  • Staff know how to end a lockdown and review quarantined roles separately.

Pair this setup with Logs and Verification so the arrival flow, actions and evidence all fit together.

Commands for this feature

CommandWhat it doesOptions
/banBan a user — add a duration for a temporary banuser 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 viewShow a casenumber requiredCase numberWhole number · Minimum: 1
/case editChange 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 deleteDelete a casenumber requiredCase numberWhole number · Minimum: 1
/kickKick a member from the servermember 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
/lockLock a channel: members can no longer send messageschannel optionalChannel (default: this one)Select a channelreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters
/lockdown startStart a lockdown nowreason 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 endEnd the lockdown and restore the channelsNo options
/modlogA member's moderation historymember requiredThe memberSelect a member
/noteAdd a private moderator note to a membermember requiredThe memberSelect a membertext requiredThe noteText · Up to 1000 characters
/panic startLock every channel, pause invites and optionally quarantine a memberquarantine optionalMember to quarantine (all roles removed, restorable later)Select a member
/panic endEnd the panic: unlock channels and resume invitesNo options
/purgeBulk-delete recent messages in this channelcount 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
/slowmodeSet or turn off slowmode in a channelduration 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
/softbanBan and immediately unban to wipe a member's recent messagesmember 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
/timeoutTime 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
/unbanUnban a useruser_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
/unlockUnlock a locked channelchannel optionalChannel (default: this one)Select a channelreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters
/untimeoutRemove a member's timeoutmember requiredThe memberSelect a memberreason optionalReason (shown in the mod log and the DM)Text · Up to 512 characters
/warnWarn 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

Find an answer

Search features, commands and the full text of every guide.

Start typing to find a guide.

Browse all guides