How to Configure AutoMod on a Discord Server
🔍 WiseChecker

How to Configure AutoMod on a Discord Server

If you manage a Discord server, you have likely dealt with spam, hateful messages, or unwanted links from members. Discord AutoMod is a built-in moderation tool that automatically filters out these rule-breaking messages before anyone sees them. This article explains how to set up AutoMod rules, configure keyword filters, and manage spam protection for your server. By the end, you will know how to keep your community safe without relying on third-party bots.

Key Takeaways: Setting Up Discord AutoMod

  • Server Settings > Safety Setup > AutoMod: The central location where you create and manage all AutoMod rules.
  • Keyword filtering with regex: Allows you to block messages containing specific words, phrases, or patterns.
  • Spam protection intensity: Adjust the sensitivity level to catch repeated messages or mentions without false flags.

What Discord AutoMod Does and What You Need Before Configuring It

Discord AutoMod is a server-level moderation feature that scans every message sent in text channels and voice chat text. It can block messages that contain specific keywords, spam patterns, or links from certain domains. The system works entirely on Discord’s servers, so it does not require a bot to be online or have any permissions.

To use AutoMod, you need the Manage Server permission. This permission is automatically granted to server owners and administrators. You also need a server with at least one text channel where you want the rules to apply. AutoMod rules can be applied to all channels or specific channels and categories.

There are three types of rules you can create: keyword rules, spam rules, and mention rules. Keyword rules block or flag messages containing specific words or regex patterns. Spam rules prevent users from sending the same message multiple times quickly. Mention rules limit how many role or user mentions a single message can contain.

Steps to Configure AutoMod on a Discord Server

Step 1: Open the AutoMod Settings Panel

  1. Open your server settings
    Click the server name at the top left of the Discord window. From the dropdown menu, select Server Settings.
  2. Navigate to Safety Setup
    In the left sidebar, click Safety Setup. Then click the AutoMod tab at the top of the page.
  3. Review existing rules (if any)
    You will see a list of any rules already created. Click Create Rule to add a new one.

Step 2: Create a Keyword Rule

  1. Name your rule
    Enter a descriptive name like “Block Profanity” or “No External Links”. This name is only visible to moderators.
  2. Choose the rule type
    From the dropdown, select Keyword. This is the most common rule type.
  3. Add keywords or regex patterns
    In the Keywords field, type each word or phrase you want to block, separated by commas. For example: badword,spamlink.com,example.com. To use regex, check the Use Regular Expressions box. A regex pattern like \b(free|win)\b matches the words “free” or “win” as whole words.
  4. Set the action
    Under Actions, choose what happens when a rule is triggered. Options are Block Message (the message is deleted and not shown to anyone), Flag Message (the message is sent but logged in the moderation alerts channel), or both. You can also choose to Timeout Member for a set duration.
  5. Select channels and roles to exclude
    In the Exempt Channels section, you can exclude specific channels from the rule. In Exempt Roles, you can allow certain roles like Moderator or Admin to bypass the rule.
  6. Save the rule
    Click Save Rule at the bottom. The rule becomes active immediately.

Step 3: Create a Spam Protection Rule

  1. Start a new rule
    Click Create Rule again. Name it something like “Anti-Spam”.
  2. Choose Spam as the rule type
    From the dropdown, select Spam.
  3. Adjust the spam intensity
    Use the slider to set the sensitivity. Low catches only very obvious spam (many repeated messages). High catches more patterns but may flag legitimate messages. Medium is a balanced default.
  4. Set the action and exclusions
    Choose Block Message and optionally Timeout Member. Exempt channels and roles as needed.
  5. Save the rule
    Click Save Rule.

Step 4: Create a Mention Rule

  1. Create another new rule
    Click Create Rule. Name it “Mention Limit”.
  2. Choose Mention as the rule type
    Select Mention from the dropdown.
  3. Set the mention limit
    Enter the maximum number of role or user mentions allowed per message. A common limit is 5 to 10.
  4. Set the action
    Choose Block Message or Flag Message. You can also timeout the member.
  5. Save the rule
    Click Save Rule.

Step 5: Test Your Rules

  1. Send a test message
    In a channel where the rule applies, try sending a message that contains a blocked keyword or pattern. The message should be blocked immediately, or you should see a warning if you chose to flag it.
  2. Check the moderation alerts channel
    If you set up a moderation alerts channel, flagged messages appear there. You can review and take further action if needed.
  3. Adjust rules if needed
    If a rule blocks legitimate messages, return to AutoMod settings and edit the rule to add exemptions or adjust the keyword list.

Common Mistakes and Limitations When Using AutoMod

AutoMod Does Not Catch All Types of Spam

AutoMod is effective for keyword, spam, and mention filtering, but it does not detect image-based spam, scam links that use URL shorteners, or messages sent by bots that have the Manage Messages permission. For those cases, consider using a dedicated moderation bot like MEE6 or Dyno alongside AutoMod.

Overly Broad Keyword Rules Block Innocent Messages

If you add common words like “free” or “win” as keywords, you will block many legitimate messages. Use regex patterns with word boundaries (\b) to match whole words only. Also, use the Flag Message action instead of Block Message when you are unsure, so moderators can review before taking action.

Rules Do Not Apply to Private Channels or Direct Messages

AutoMod rules only apply to text channels in your server where the rule is enabled. They do not affect private channels like Server Guide or Rules, nor do they apply to direct messages between members. If you need to moderate DMs, you must rely on Discord’s Trust and Safety team.

Exempt Roles Are Not Inherited

If you exempt a role like Moderator from a rule, members with that role bypass the rule. However, if a member has multiple roles and one of them is exempt, the exemption applies. But if you later add a new role that should also be exempt, you must edit each rule individually to add that role.

Item Keyword Rule Spam Rule
What it blocks Specific words, phrases, or regex patterns Repeated identical messages or mentions
Customization Full control over keyword list and regex Only a sensitivity slider (Low, Medium, High)
Exempt channels Yes, per rule Yes, per rule
Exempt roles Yes, per rule Yes, per rule
Timeout option Yes Yes

Discord AutoMod gives you powerful, server-side filtering without needing a bot. Start by creating a keyword rule for your most common problem words, then add spam and mention rules as your community grows. Review the moderation alerts channel regularly to fine-tune your rules. For advanced setups, combine AutoMod with a bot that handles image scanning and link whitelisting. This layered approach keeps your server clean while minimizing false positives.