AutoMod
Automatic moderation that checks every message for scams, invites, links, spam, bad words and more, with warning punishments, join protection, channel restrictions and Discord's native AutoMod.
AutoMod watches your server around the clock so your moderators don't have to. It checks every message (and every edit) against a set of rules, scam links, server invites, spam, bad words, walls of text and more, and acts on its own: it can log, delete, warn, mute, kick or ban. Warnings pile up into automatic punishments, new accounts can be stopped at the door, channels can be limited to one kind of content, and DotBot can even manage Discord's own AutoMod for you.
Every action is logged with the case number, the rule, what was detected and buttons to see the member's profile, undo or mute.
How it works
- AutoMod has 16 rules grouped into Security, Spam and Content. Each rule has an action and its own settings and exceptions.
- When a message breaks a rule, DotBot applies that rule's action, optionally posts a short public notice (which deletes itself) and DMs the member, and logs it.
- Warnings from AutoMod (and from Discord's AutoMod and the Moderation module's
/warning) count toward warning punishments: for example, mute for 1 hour at 3 warnings within 1 hour. - Members with moderation or admin permissions, bots, the server owner and your immune roles are never affected.
- Edited messages are checked too, so nobody can dodge a rule by editing afterwards.
Important
AutoMod needs to read message text. If you use your own bot with DotBot, enable the Message Content Intent in the Discord Developer Portal (your application → Bot → Privileged Gateway Intents). The dashboard warns you if it's missing.
Quick start
- Open AutoMod → Rules and click Recommended setup → Apply to the form. It turns on a balanced set of rules that works for most servers.
- Review the actions, add words to Bad words if you want, and click Save.
- Open Settings and choose an AutoMod log channel.
- Open Warning punishments and click Use the suggested punishments.
- Use Try a message on the Rules page to see what would trigger before going live.
Tip
Not sure about a rule? Set it to Log only for a few days. Nothing is deleted or punished; you just see in the log what it would have caught.
Actions
Every rule has one of these actions:
| Action | What happens |
|---|---|
| Off | The rule does nothing. |
| Log only | Nothing is deleted and nobody is punished; it's only written to the log. |
| Delete message | Deletes the message and lets the member know. |
| Warn user | Doesn't delete the message but adds a warning. |
| Delete and warn | Deletes the message and adds a warning. |
| Delete and mute | Deletes the message and mutes the member (Discord timeout) for the time you choose, up to 28 days. Counts as a case. |
| Delete and kick | Deletes the message and kicks the member. They can rejoin with an invite. |
| Delete and ban | Deletes the message and bans the member permanently. Their messages from the last hour are deleted too. |
Rules
Security
| Rule | What it catches |
|---|---|
| Scams and phishing | Fake Nitro, Steam gifts and other scam links. Every link is checked against public lists of scam domains, combined and refreshed every 6 hours. With Also detect suspicious links on, it also catches lookalike domains ("dlscord", "steamcommunlty"), links that hide where they go, fake gift names and "free Nitro" messages. Official Discord and Steam sites are never flagged. |
| Server invites | Invites to other Discord servers in any format (discord.gg, discord.com/invite, dsc.gg…), even disguised with spaces or invisible characters. Invites to your own server are allowed. |
| External links | Works in two modes. Allowed list: only the domains on your list are accepted. Block list: every link is accepted except the domains on your list. Enter just the domain (example.com); subdomains are included. A missing space after a full stop ("ok.so I left", "bien.es que no") isn't read as a link. |
| Dangerous files | Attachments that can run code, like .exe, .bat, .scr or .apk. Edit the list, or turn on Only allow images, videos and audio to block everything else. |
Spam
| Rule | What it catches | Settings |
|---|---|---|
| Message spam | Too many messages in a few seconds, in any channel. The whole burst is deleted. | Messages allowed, within how many seconds |
| Repeated text | The same text several times in a row in a channel (not case- or accent-sensitive). | Repetitions, within how many seconds |
| Text spam across channels | The same text pasted into several channels, a typical sign of an advertising or hacked account. Every copy is deleted. | Channels, seconds, minimum length |
| Image spam | Images in two or more channels within seconds. All their images from the last moments are removed in every channel, and new ones are removed while the incident lasts. | Detection window, cleanup lookback |
| Sticker spam | Too many stickers in a short time. | Stickers, seconds |
| Excessive mentions | Many mentions in one message (replying to someone doesn't count as mentioning them). Can count role mentions and treat any @everyone or @here from someone without permission as a violation. | Mentions to trigger, count roles, @everyone |
Content
| Rule | What it catches | Settings |
|---|---|---|
| Bad words | Words you define, regardless of case or accents. With Detect disguised words it also catches fancy fonts, numbers instead of letters ("1d10t"), repeated letters and symbols in between ("i.d.i.o.t"). | Exact words, partial words, allowed words, patterns |
| Excessive caps | Messages almost entirely in capitals. Emojis, mentions, links and code aren't counted. | Minimum letters, % of capitals |
| Excessive emojis | Too many emojis in one message. Flags and combined emojis (like a family) count as one each. | Maximum allowed |
| Zalgo text | Distorted text with stacked symbols above and below letters. | — |
| Wall of text | Messages with too many lines or characters. | Maximum lines, maximum characters (0 = off) |
| Spoiler abuse | Messages full of spoiler tags or spoiler attachments. | Maximum spoilers |
Bad words in detail
- Exact words trigger only on the whole word: with "hell", it triggers on "hell" but not "hello" or "shell". Use it for short words.
- Partial words trigger anywhere, even inside another word: with "hell", it also triggers on "hello". Use it for insults people try to hide.
- Use
*as a wildcard:idiot*catches "idiots" and "idiotic";*phobiccatches any word ending in "phobic". - Allowed words are exceptions that contain a banned word but are fine (for example "class" or "assistant").
- Detect disguised words covers about 20,000 letters per list, which is around 3,000 ordinary words. In a longer list, the longest entries are still caught when written as they are, without the disguise detection.
- Patterns (regex): for advanced users, up to 20 case-insensitive regular expressions.
- Very long lists cost time on every message. If a flood of long messages uses up your server's checking time, the bad word lists pause for a few seconds while the other rules, such as spam, keep working.
Rule settings and exceptions
Click ⚙️ on a rule to open its settings:
| Setting | What it does |
|---|---|
| Mute for | The mute duration when the action is Delete and mute. |
| Only in these channels | The rule only works in these channels (and their threads). Empty = everywhere. |
| Except in these channels | The rule doesn't apply here, for example a self-promotion channel where invites are allowed. |
| Roles this rule ignores | Members with these roles are ignored by this rule only. |
| Public notice in the channel | A notice mentioning the member that deletes itself after a few seconds (only one at a time per member). |
| Direct message to the user | A private message explaining which rule they broke. |
| Notice and DM texts | Leave them as they are to use the default text, which changes with the action. Variables: {user}, {rule}, {channel}, {count} (total warnings), {time} (mute duration), {server}, {detail} (what was detected). |
| Log channel for this rule | Send this rule's logs to a different channel, for example a separate channel for scams. |
Thread titles and forum posts
Turn on Check thread titles to check the names of new threads and forum posts with the bad words, invites, links and scam rules. A thread with a forbidden title is deleted, and renaming a thread to a forbidden title is undone. The log names whoever renamed it, and a moderator's rename is left alone (DotBot reads this from the audit log; without View Audit Log it assumes the thread's creator renamed it).
Try a message
Paste a message in Try a message and click Test to see which rules it would trigger with what's on screen right now, even before saving. Nothing is posted or punished. Rules that depend on previous messages (spam, repeated text…) and attachments can't be tested here.
Warning punishments
Automatic punishments when someone piles up warnings in a short time. Each punishment has:
- Punishment: Mute, Temporary ban (lifted automatically) or Permanent ban.
- Warnings: how many warnings trigger it.
- Within the last: the period in which warnings are counted.
- Duration: for mutes (up to 28 days) and temporary bans.
A good start: mute for 1 hour at 3 warnings within 1 hour, and mute for 1 day at 5 warnings within 24 hours. Click Use the suggested punishments to add them.
Each punishment triggers once per period, when the count reaches its number; more warnings within that period don't repeat it. If several punishments are reached with the same warning, only the strongest one is applied: a ban over a temporary ban over a mute, and the longer one between two of the same kind. A mute never shortens a longer mute the member already has. Warnings from AutoMod rules, from Discord's AutoMod (if you count them) and from /warning all count.
Joins & names
Join protection
Checks every account that joins. Bots aren't affected.
| Rule | What it does |
|---|---|
| New accounts | Accounts this many days old or newer are affected. Fake and throwaway accounts are usually brand new. |
| Accounts without an avatar | Accounts without a profile picture, often alts or bots. |
For each rule choose an action: Kick (they can rejoin later), Ban (permanent, or for a number of days), Mute (up to 28 days) or Give a role (a quarantine role with limited access; it must be below DotBot's role, not belong to an app and have no moderation permissions: roles that can't be used are grayed out). The member gets a direct message first (variables: {user}, {server}, {days}, {age}, {time}).
Always allowed users: paste user IDs that are never affected, for example a friend with a new account.
Member names
Checks nicknames and usernames when someone joins and whenever they change their name. The server nickname is checked first; if there isn't one, the display name and username.
| Setting | What it does |
|---|---|
| Bad words | Uses the lists from the Bad words rule, even if that rule is off. |
| Server invites | Names that advertise another server. |
| Links | Names that contain a web address. |
| Action | Log only, Replace the nickname (the default), Kick or Ban (kick and ban send a DM first). |
| Replacement nickname | Given to members whose name isn't allowed. |
| Roles that are not checked | Members with these roles keep any name. |
Channel restrictions
Make channels accept only one type of content. Messages that don't fit are deleted with a short notice that deletes itself. Moderators and immune roles can post anything.
| Mode | The message must… |
|---|---|
| Images | include at least one image (text alongside is fine). |
| Videos | include at least one video. |
| Images and videos | include at least one image or video. |
| Links | include a link, and if you list domains, only from those (for example youtube.com, twitch.tv, tiktok.com for a clips channel). |
| Text only | have no attachments, links or stickers. |
Also accept GIF and media links (image and video channels) accepts a message without an attachment if it has a Tenor or Giphy link, a direct link to an image or video file, or a link that Discord shows with an image or video preview.
Discord AutoMod
Discord has its own AutoMod that blocks messages before anyone sees them and keeps working even if DotBot is offline. DotBot can create and update those rules for you (it needs the Manage Server permission).
| Rule | What it does |
|---|---|
| Bad words | Blocks the words from the Bad words rule before they're posted. Words with * in the middle aren't supported by Discord and are left out. |
| Discord word lists | Lists maintained by Discord: insults and swearing, sexual content, and slurs and hate speech. You can allow specific words. |
| Mention spam | Blocks messages with too many unique mentions (up to 50) and can detect mention raids. |
| Suspected spam | Discord's own spam detection. |
| Member names | Stops members whose name has a bad word from chatting until they change it. |
Each rule can also mute the user. Common settings: the message shown to the user (up to 150 characters), an alert channel where Discord posts each block, ignored roles (up to 20) and ignored channels (up to 50), Count blocks as warnings (they count toward warning punishments) and Log blocks in the AutoMod log.
The page also lists every native rule in your server, including ones created by hand or by other bots. DotBot only edits the ones it created; the rest you edit in Server Settings → AutoMod. Click Sync again if something changed in Discord. Turning the AutoMod module off removes DotBot's native rules, and turning it on puts them back.
Statistics
What AutoMod has detected over the last days: total detections, different members detected, messages removed, and cases (warnings and mutes). Charts show activity by group (Security, Spam, Content, plus Discord AutoMod, channel restrictions, join rules and names), detections by rule, the most detected words, the members and channels with the most detections. Data from the last 90 days is kept.
Settings
- AutoMod log channel: every action of a rule, a restriction or a punishment is logged here with the case number, the user, the rule, what was detected and the message, plus buttons to see the profile, undo or mute. Each rule can also use its own channel.
- Immune roles: roles AutoMod and channel restrictions never apply to. You don't need to add moderators, admins, bots or the owner; they're already immune. Use it for roles like "Partner" or "Content Creator".
- Scam list: shows how many scam domains are loaded and when the list was last updated. It updates itself.
Permissions DotBot needs
View Channel, Read Message History and Manage Messages to delete messages, Moderate Members to mute, Kick Members and Ban Members for those actions, Manage Roles for quarantine roles, Manage Nicknames to replace names, Manage Threads for thread titles (and View Audit Log to know who renamed a thread) and Manage Server for Discord AutoMod. DotBot's role must be above the members it acts on.
FAQ
Will AutoMod punish my moderators?
No. Members with moderation or admin permissions, bots and the server owner are always immune. Add other roles to Immune roles if you want to exempt them too.
What's the difference between DotBot's AutoMod and Discord AutoMod?
DotBot's rules act after a message is posted and can do much more (spam detection, scam lists, images, warnings, punishments). Discord's AutoMod blocks messages before they're posted, but has fewer options. Using both gives you the best protection, and you can manage Discord's from the same page.
How do I allow invites in one channel only?
Open the Server invites rule settings and add that channel under Except in these channels.
A rule caught a message it shouldn't have. What can I do?
Add an exception: an allowed word, an allowed domain, a channel exception or a role this rule ignores. For bad words, prefer exact words for short words that appear inside normal words. You can also set the rule to Log only while you tune it.
Do warnings from AutoMod show up in Moderation cases?
Yes. AutoMod warnings, mutes, kicks and bans become numbered cases in Moderation with the source "AutoMod", and they count toward warning punishments.
Can I test a rule without punishing anyone?
Yes. Use Try a message on the Rules page (nothing is posted), or set the rule to Log only to see what it catches in real conversations.
Does AutoMod check edited messages?
Yes, every edit that changes the text is checked again, so nobody can post a clean message and edit a bad word in later. Pinning an old message or opening a thread on it doesn't check it again.
How do I make a channel for images only?
Open Channel restrictions, click Add channel, choose the channel and set Only allow to Images. Text alongside an image is fine; text-only messages are deleted.
Why didn't the scam rule catch a link?
The scam lists are maintained by the community and updated every 6 hours, so brand new domains may not be listed yet. Keep Also detect suspicious links on to catch lookalikes, and consider the External links rule in allowed-list mode for channels where links aren't expected.
What does Recommended setup change?
Only the actions and a few limits of the rules. Your word lists, domains and exceptions stay as they are, and nothing is saved until you click Save. External links and spoilers aren't changed because they depend a lot on each server.