Discord AutoMod Setup Guide: Stop Spam & Protect Your Server
Handling rule breakers manually is slow and exhausting. By the time a human moderator deletes a malicious link or a mass-mention ping, the damage is already done.
Discord’s native AutoMod system acts as a 24/7 automated shield, scanning every message sent in your server. It intercepts and blocks harmful content—from slurs to phishing links—before anyone in your community even sees it.
🛡️ The 4 Core AutoMod Rule Types
🤬 1. Commonly Flagged Words → Built-in filters for slurs, severe profanity, and sexual content
↓
🛑 2. Custom Keyword Filters → Your own blocklist with wildcards to catch bypass attempts
↓
📢 3. Mention Spam → Blocks messages containing too many @user or @role pings
↓
🚫 4. Spam Content → Machine-learning filter that catches repetitive copy-paste spam
1. Setting Up the "Commonly Flagged Words" Filter
Discord provides pre-built, maintained lists of harmful words to save you time. This is the first rule you should activate.
How to Configure:
Navigate to Server Settings → AutoMod.
Click Set Up next to Block Commonly Flagged Words.
Choose which categories to filter:
Insults and Slurs: (Highly Recommended) Blocks severe hate speech.
Sexual Content: Blocks explicit terms.
Severe Profanity: Blocks extreme cursing (you may want to leave this off if your server allows casual cursing).
Tip: You can add specific words to the "Allow Words" section.
If a harmless word in your community's niche keeps getting flagged by Discord's baseline filter, add it here to whitelist it.
2. Creating Custom Keyword Filters (Wildcards)
Attackers often try to bypass filters by misstating words or adding numbers (e.g., sc4m). Custom filters allow you to block specific phrases, competitor server links, or known scam URLs.
Using the Asterisk (*) Wildcard:
The wildcard character tells AutoMod to catch variations of a blocked word.
Exact Match: Typing
scamonly blocks the exact word "scam". It will not block "scammer".Prefix Match (
scam*): Blocks any word starting with the keyword (e.g., "scammer", "scamming").Suffix Match (
*scam): Blocks any word ending with the keyword (e.g., "superscam").Anywhere Match (
*scam*): Blocks the keyword no matter where it appears inside a larger string.
Essential Custom Filters to Add:
*discord.gg/*(If you want to prevent unauthorized server advertising).*[twitter.com/](https://twitter.com/)*or*[x.com/](https://x.com/)*(If you are restricting self-promotion).*free nitro*(Blocks common phishing scam text).
3. Stopping Mention Spam & Raid Pings
Raid bots often join servers and instantly send a message pinging 20 different users or roles to annoy the community. The Block Mention Spam rule stops this instantly.
Recommended Configuration:
Enable the Block Mention Spam rule.
Set the Mention Limit to a sensible number—usually 3 to 5 mentions per message.
If a message exceeds this limit, AutoMod will block it from being sent.
4. Configuring AutoMod Actions (Block, Alert, Timeout)
When a user breaks an AutoMod rule, you decide what happens next. You can stack multiple actions for a single rule.
Available Actions:
Block Message: The message is instantly deleted before anyone sees it. The sender sees a red error telling them their message was blocked.
Send Alert: Forwards the blocked message, the sender's name, and the channel location to a private
#automod-logschannel so staff can review the incident.Timeout User: Automatically mutes the user (removing their ability to type or speak in voice) for a set duration (e.g., 1 Hour, 24 Hours) upon triggering the rule.
Best Practice: Apply a Timeout action to the Commonly Flagged Words (Slurs) rule and the Mention Spam rule. Do not apply Timeouts to casual custom keyword filters, as members may trigger them accidentally.
5. Exemptions: Bypassing AutoMod
You don't want your moderators getting timed out for quoting a broken rule or sharing a server invite link in an official capacity.
How to Set Exemptions:
At the bottom of every AutoMod rule, you can whitelist specific Roles and Channels.
Exempt Roles: Add
@Moderatorand@Adminso their messages are never blocked. Users with the Manage Server or Administrator permission bypass AutoMod by default.Exempt Channels: If you have a
#self-promochannel, exempt it from your custom link-blocking rule so members can freely post their content there without triggering the filter.
Common AutoMod Configuration Mistakes
No Dedicated Alert Channel: Having AutoMod alerts dump into the main
#staff-chat, burying important staff conversation in automated logs. Create a dedicated#automod-logsroom.Overusing Wildcards: Blocking
*ass*will accidentally block words like "classic," "glass," and "assassin." Use wildcards carefully.Forgetting to Whitelist VIP Roles: Forgetting to exempt Server Boosters, Event Managers, or trusted VIPs from mention-spam rules when they legitimately need to ping multiple users.
Not Explaining Blocks: When setting up a custom keyword rule, customize the block message (e.g., "Please keep server invites in the promo channel"). Otherwise, members just get a generic, confusing error.
AutoMod Setup Checklist
☐
Block Commonly Flagged Wordsconfigured (Slurs and severe language enabled)☐
Block Spam ContentML-filter enabled☐
Block Mention Spamcapped at 3–5 mentions per message☐ Private
#automod-logschannel created and assigned for alerts☐ Custom wildcard rule added to block unauthorized
discord.gg/invite links☐ Automated Timeouts applied to severe rule violations (e.g., Slurs and Mass Pings)
☐ Moderator and Staff roles added to the exemption list for all rules
Frequently Asked Questions
Can AutoMod read text inside images?
No, Discord’s native AutoMod currently only scans text characters, emojis, and links in standard messages, threads, and forum posts. It does not scan text embedded inside attached images or PDFs.
Do bots trigger AutoMod rules?
No. Discord automatically exempts all integrated bot accounts and webhooks from triggering AutoMod rules, ensuring your leveling bots or announcement webhooks are never accidentally timed out.
Will AutoMod block custom emojis?
AutoMod scans the text name of the emoji. If an emoji is named :scam_link:, and you have scam blocked via a custom wildcard, attempting to use the emoji will trigger the block.
Conclusion
A well-configured AutoMod setup is the foundation of a safe, low-maintenance Discord community.
Activate Discord's built-in spam and slur filters, create custom rules with wildcards to target niche spam, route alerts to a private log channel, and let the system do the heavy lifting for your moderation team.