Short answer
Discord AutoMod keyword filters check messages against word lists you write and can block the message, send an alert to a moderator channel, or time out the member. Open AutoMod in your server settings, create a custom keyword rule, add specific phrases with asterisk wildcards where needed, add an allow list for innocent words, choose the response and exempt your moderator roles.
Key takeaways
- Each custom keyword filter accepts up to 1,000 keywords, according to Discord's safety center.
- An asterisk at the start or end of a keyword matches partial words, so use it sparingly.
- Send alerts to a private moderator channel so you can see what the filter catches.
- Test your list against real messages before switching on blocking or timeouts.
If your community lives partly on Discord, its chat channels get the same unwanted traffic as replies on X: scam links, "free Nitro" offers, raids full of slurs, and members pasting the same promo in every channel. Discord's built-in AutoMod handles a lot of this without a bot, but a careless keyword list can also block ordinary conversation. This guide walks through a setup that catches the bad messages and leaves the rest alone.
What does Discord AutoMod do?
AutoMod scans messages against filters you configure, then blocks, flags or times out automatically when a filter matches.
It offers several kinds of filters: a preset list of commonly flagged words, spam detection, a limit on mass mentions, and custom keyword filters that you write yourself. This guide focuses on custom keyword filters, because they are where your own community's problems get solved. Each one accepts up to 1,000 keywords, according to Discord's safety center.
How do you create a keyword filter?
Open Server Settings, go to AutoMod, create a custom keyword rule, then add keywords, choose responses and set exemptions.
- Open Server Settings and choose AutoMod. Discord has moved this between menus over time, so use the settings search if you don't see it.
- Create a custom keyword rule and give it a clear name, such as "Scam phrases."
- Paste your keywords, separated by commas.
- Add allowed words that should never trigger the rule.
- Choose responses: block the message, send an alert to a channel, time out the member, or a combination.
- Exempt roles and channels, such as moderators or a staff-only channel.
- Save, then watch the alert channel for a few days.
You need the Manage Server permission to set this up.
How do wildcards work in AutoMod keywords?
An asterisk at the start or end of a keyword matches it as part of a longer word, while a keyword without one matches only the whole word.
| Keyword | Matches | Risk |
|---|---|---|
scam |
"scam" | Low |
scam* |
"scam," "scammer," "scamming" | Low to medium |
*scam* |
anything containing "scam" | Higher; catches unrelated words |
free nitro |
the exact phrase | Low, and very useful |
Partial matching is where false positives come from. A short root with wildcards on both sides will match inside innocent words. The blocklist guide covers why whole-word matching matters, and the same logic applies here.
What should go on the allow list?
Add the ordinary words that contain or resemble your blocked terms, so they pass even when a wildcard would catch them.
If you block *ass* to catch an insult, you also block "class," "pass" and "assistant," which is a classic false positive. Either drop the wildcard or add the common innocent words to the rule's allow list. Look at your own server's vocabulary: game names, product names and in-jokes often collide with filters.
How do you test a keyword list before turning it on?
Run the list against a batch of real messages first, and start with alerts only before you switch on blocking.
Copy a few hundred recent messages from a busy channel, including some spam you removed. Paste them and your keyword list into the profanity filter tester. It shows each match, the entry that caused it and the likely false positives, and its "catch tricks" options reveal the leetspeak and spaced-out variants your list misses. When the list looks right, set the rule to alert only for a few days. Once the alert channel shows only messages you would have removed anyway, turn on blocking.
You can also draft the rule as approve, hold and reject lists in the rule builder and keep that file as the source of truth for Discord, X muted words and your other platforms.
Should you use the commonly flagged words preset?
Yes, for most public servers, because it gives you a maintained baseline list and frees your custom rules for problems specific to your community.
The preset covers broad categories of commonly flagged language, so you don't have to type out every slur yourself. It can be too strict for some communities, for example servers discussing reclaimed language or adult topics, so read through what it blocks in your alert channel during the first week. Use your own custom keyword rules for the things the preset won't know about: scam phrases aimed at your game or product, names of rival raid groups, or links you never want posted.
Which responses should you use?
Block and alert for clear spam and slurs, add timeouts for raids, and use alert-only for borderline phrases you want to watch.
Write a short custom block message that points to your rules, so legitimate members understand what happened. Keep timeouts for patterns that only bad actors use, such as known scam phrases, since a timeout for a false positive feels harsh to a regular member. Review the alert channel weekly, adjust the list, and write the rules down in a public policy; our moderation policy template is a quick start.
Common questions
How many keywords can a Discord AutoMod filter have?
Discord's safety center says each custom keyword filter accepts up to 1,000 keywords. The number of custom keyword rules a server can have has changed over time, so check the AutoMod settings page, which shows what you can still add.
Does AutoMod catch misspellings and leetspeak?
Only the variants you include, plus partial matches if you use wildcards. Add the spellings you actually see in your server, and test the list against real messages to find gaps before raiders do.
Can members see their message was blocked?
Yes. When AutoMod blocks a message, the sender sees a notice, and you can write a custom explanation for that rule, such as a pointer to your server rules.
Do bots still matter if I use AutoMod?
AutoMod handles keyword, spam and mention filtering natively. Some servers still use moderation bots for features AutoMod lacks, such as detailed logs, warnings systems or more complex pattern rules.