BetterAntispam TeamHow we write theseUpdated 8 min read
How to Stop Spam in Discord Servers (2026 Guide)

To stop spam in a Discord server, turn on Discord’s AutoMod (Block Spam Content and Block Mention Spam), take Embed Links, Attach Files, and Mention @everyone away from new members, and add a bot that counts messages per person. AutoMod blocks the obvious scam before it posts. It cannot tell that one person sent the same line six times in ten seconds. BetterAntispam does that with /antispam settings (Administrator). It is on as soon as the bot joins and free to use. I maintain it, and further down I point out where Dyno, Wick, or AutoMod alone are the better fit.
Editorial disclosure: This guide is published by BetterAntispam. We recommend BetterAntispam when you want AutoMod plus a flood detector, raid tools, and channel locks in one bot. We name the cases where Discord’s AutoMod, Dyno, Carl-bot, Wick, or MEE6 already cover the job. AutoMod limits come from Discord. Bot defaults come from the bot’s source code.

How to stop spam in a Discord server in 5 minutes
Do these in order. The first three are free and native to Discord.
- Turn on AutoMod. Server Settings → AutoMod (Manage Server, desktop only). Enable Block Spam Content and Block Mention Spam. Set both to Block message and Send alert to a staff channel.
- Lock down @everyone. Server Settings → Roles →
@everyone. Turn off Mention @everyone, @here, and All Roles, Embed Links, and Attach Files. Give them back on a Verified or Member role. - Raise the verification level. Server Settings → Safety Setup → Verification Level Medium (account older than 5 minutes) or High (also 10 minutes in your server). Guide: Discord verification level.
- Add BetterAntispam and run
/setup(Administrator). Pick antispam, verification, and logging. - Run
/antispam settings(Administrator). Check the thresholds, pick a punishment, and add staff roles to the allowlist.
That stops most spam in most servers. The rest of this guide explains each layer and what to do when spam gets past it.
Docs: customer documentation. Support: Discord support server. Feature page: Discord anti-spam.
Layer 1: Discord AutoMod blocks spam before it posts
AutoMod is the only filter that stops a message before anyone sees it. Every server should run it, bot or no bot.
You need Manage Server or Administrator. Discord’s AutoMod FAQ says rules can only be edited on desktop.
| AutoMod rule | What it catches | Set it to |
|---|---|---|
| Block Spam Content | Free Nitro scams, invite dumps, similar unsolicited copy | Block message, Send alert |
| Block Mention Spam | Messages that ping lots of people at once | Limit 5–10 (max 50), Block, Timeout |
| Commonly Flagged Words | Slurs and sexual content (preset lists) | On for public servers |
| Custom Keyword | Your own phrases and links | Up to 1000 terms, 60 characters each |
Discord’s safety page says the spam model learns from reported spam. It is not perfect, and the spam filter and the flagged-word lists are English-only. AutoMod also does not:
- Count messages per person, so floods and copy-paste across several messages get through.
- Watch DMs.
- Warn first and then mute.
Ready-made keyword rules: 4 copy-paste AutoMod rules and keyword blacklist for Discord. Full walkthrough: Discord AutoMod setup.
Layer 2: Take spam tools away from new members
Most spam needs a link, a file, or a mass ping. A member who does not have those permissions cannot send that kind of spam.
On @everyone, turn off:
- Mention @everyone, @here, and All Roles. Discord’s raid guide lists this as a first step.
- Embed Links. Links still post, but no preview card. Fake “Steam gift” previews stop working.
- Attach Files. Stops image-scam spam and malware uploads.
- Use External Apps. Stops public spam from apps a member installed on their own account.
- Create Invite, if you do not want members inviting their friends’ alts.
Give those permissions back on a role members earn by verifying. /verification settings (Administrator) grants that role after a button, image CAPTCHA, math question, or hidden-word check. The default is a button, and the master toggle starts off. Comparison of verification bots: best Discord verification bot. Permissions reference: Discord permissions explained.
If the same person keeps coming back with new accounts, a permission change will not fix that. Read how to check for alt accounts on Discord.
Layer 3: /antispam settings mutes the flood AutoMod misses
/antispam settings (Administrator) counts what each person sends and steps in when it looks like spam. It is on by default when BetterAntispam joins.
It watches for:
- Message floods. Too many messages too fast.
- Duplicates. The same message again and again.
- Excessive caps and overlong messages.
- Ghost pings. Someone pings and deletes the message.
- Link, embed, reaction, and edit spam.
- Gibberish. Zalgo text and repeated characters.
- Blacklisted words.
These are the defaults, read from the bot’s source:
| Setting | Default |
|---|---|
| Flood trigger | 4 messages in 12 seconds (Reset sets 5 in 5 seconds) |
| Warnings before punishment | 3 |
| Punishment | 5-minute mute (also kick, ban, or quarantine) |
| Caps | 70% uppercase |
| Duplicates | 3 identical messages (2 if they are very short) |
| Word blacklist | 50 words free |
Staff with Administrator or Manage Messages are skipped. Add roles like Moderator or Bot Tester to the allowlist so they are not muted during events.
Shield adds spam detection for other bots’ commands, blacklists over 50 words, and a punishment approval gate where staff confirm before anyone is muted. Image scanning (/imagefilter settings) is entirely Shield. Upgrade in the application store.
Point the antispam log at a channel staff actually read with /logging settings (Administrator). A mute nobody sees is a mute nobody can undo when it is wrong.
Other spam detectors in the same bot
| Command | What it stops | Permission | Default |
|---|---|---|---|
| /adblock settings | Server ads in chat and in profiles | Administrator | Off |
| /selfbot settings | Automated user accounts (self-bots) | Administrator | Six detectors are Shield |
| /antiping settings | Pings to protected staff and roles, using Discord’s own AutoMod | Administrator | Off |
| /honeypot settings | Anyone who posts in a trap channel | Manage Server | Off, softban when on |
| /warnings settings | Repeat offenders: mute, kick, or ban after 1–20 warnings | Moderate Members | You pick the number |
A honeypot is the best trick for scam bots that post in every channel. Real members read “do not post here”, and scam bots don’t. Guide: how to make a honeypot channel.

Layer 4: If someone is spamming right now
Slow the channel or lock it first, then clean up. Deleting while they are still typing does nothing.
- Slow it down.
/slowmode(Manage Channels) sets Discord’s per-person cooldown, from 0 to 21600 seconds. Guide: Discord slowmode. - Or lock it.
/lockdown(Administrator) denies Send Messages and Add Reactions to@everyoneand saves the old permissions so unlock puts them back. One channel is free. Locking every channel at once is Shield. Guide: how to lock a Discord channel. - Remove the spammer.
/mute,/kick, or/ban./muteand/warncan delete up to 100 of their recent messages, and/bancan delete up to 7 days of them (Discord’s limit). - Clean up.
/purge(Administrator) deletes up to 1000 messages per run. Discord’s bulk delete only works on messages under 14 days old. Older ones are deleted one at a time. Guide: Discord purge command.
Do not run two bots deleting in the same channel at once. They hit Discord’s rate limits and both slow down.

Spam, raids, and DM spam need different fixes
Most failed setups use the right tool on the wrong problem. Find your problem in the table first.
| What you see | It is | First move |
|---|---|---|
| One person dumping lines in #general | Spam | /antispam settings, then /slowmode |
| Messages pinging half the server | Mention spam | AutoMod Block Mention Spam |
| Free Nitro or fake Steam links | Scam spam | AutoMod Block Spam Content, no Embed Links for new members |
| Dozens of new accounts posting at once | A raid | /antiraid settings, /raidmode enable, Pause Invites |
| Members getting scam DMs from your server | DM spam | Discord Security Actions → pause DMs, /dmlock (Manage Server) |
| The same banned person back again | Ban evasion | Check for alt accounts |
A raid is about joins. Spam is about messages. /antiraid settings (Administrator) watches the join rate and scales with server size. Under 50 members, 3 joins in 10 seconds is worth watching and 5 counts as a raid. Full playbook: how to stop a Discord raid. DM playbook: stop Discord DM spam.
Other bots that stop spam
Use the bot your staff already know. One tuned spam filter beats three fighting each other.
| Tool | Best at | Honest note |
|---|---|---|
| Discord AutoMod | Blocking scam text and mass mentions before they post | Run it in every server |
| BetterAntispam | Flood, duplicate, and ghost-ping detection, plus raid and lock tools | Free core. Image filter is Shield |
| Dyno | Classic automod modules with a web dashboard | Its FAQ says no anti-raid and no anti-nuke |
| Carl-bot / YAGPDB | Custom automod rules and regex | Great if staff already know the dashboard |
| Wick | Full security suite | Pick it if nukes worry you more than spam |
| MEE6 | Moderation alongside levels and XP | Keep it if your XP system already lives there |
Comparison: best Discord antispam bot in 2026.
FAQ
How do I stop someone from spamming in my Discord server?
Time them out first: right-click → Timeout, or /mute. Then turn on /slowmode or /lockdown in that channel. To stop it from happening again, turn on AutoMod’s spam filters and /antispam settings, which mutes floods automatically after 3 warnings.
Does Discord have a built-in spam filter?
Yes. AutoMod has Block Spam Content and Block Mention Spam, and it can stop a message before it posts. It does not count messages per person, so it misses floods and copy-paste across several messages.
What is the best anti-spam bot for Discord?
For floods and duplicates with raid tools in the same bot, BetterAntispam, which is free. For a full security suite, Wick. If your staff already live in Dyno or Carl-bot, tune that instead of adding a second bot.
How do I stop spam bots from joining my server?
Raise the verification level, require /verification settings before members can post, and set a minimum account age in /antiraid settings. Guide: stop bots joining a Discord server.
Why did AutoMod miss the spam?
The spam filter is English-only and learns from reports. Discord says it can miss nonsense spread across several messages. That is the gap /antispam settings fills.
What permissions do I need?
AutoMod needs Manage Server or Administrator, on desktop. /antispam settings, /setup, /purge, and /lockdown need Administrator. /slowmode needs Manage Channels. /honeypot settings and /dmlock need Manage Server.
How do I delete spam messages fast?
/purge (Administrator) deletes up to 1000 messages per run. Messages older than 14 days are deleted one at a time, which is Discord’s limit. Lock the channel first if the spammer is still active.
Is BetterAntispam free?
Yes. Antispam, antiraid, antinuke, verification, honeypot, adblock, self-bot detection, lockdown, and logging are free. Shield adds the image filter, larger word lists, and the extra detectors listed above.
Final Verdict
How to stop spam in Discord servers comes down to four layers, in this order. AutoMod blocks the scam text. Permissions take links, files, and mass pings away from new members. /antispam settings mutes the flood AutoMod cannot count. /slowmode, /lockdown, and /purge handle the night it still gets through. Do not add a second spam bot “to be safe”. Tune the one you have.
— Adam
More guides
- Discord anti-spam
- How to Check for Alt Accounts on Discord
- Best Discord Antispam Bot in 2026
- Discord AutoMod Setup in 2026
- Stop Discord Spam: 4 AutoMod rules
- How to Stop Discord Raids in 2026
- How to Use the Discord Purge Command
Sources
- AutoMod FAQ – Discord
- Auto Moderation in Discord
- How to Protect Your Server from Raids 101 – Discord
- Pause Invites FAQ – Discord
- Verification Levels – Discord
- Message resource (bulk delete) – Discord Developer Docs
- Rate limits – Discord Developer Docs
- Dyno FAQ
- What is Wick – Wick Docs
- BetterAntispam documentation
Core is free · Setup in Discord
Ready to protect your server?
Invite BetterAntispam. Core antiraid, antispam, and antinuke are free. Configuration is slash commands inside Discord.



















