Back to blog

BetterAntispam TeamHow we write theseUpdated 8 min read

How to Stop Spam in Discord Servers (2026 Guide)

Four-layer spam filter for a Discord server: AutoMod, new-member permissions, /antispam settings and /lockdown stopping red spam messages before they reach #general

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.

Four-layer spam filter for a Discord server: AutoMod, new-member permissions, /antispam settings and /lockdown stopping red spam messages before they reach #general

How to stop spam in a Discord server in 5 minutes

Do these in order. The first three are free and native to Discord.

  1. 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.
  2. 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.
  3. 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.
  4. Add BetterAntispam and run /setup (Administrator). Pick antispam, verification, and logging.
  5. 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 ruleWhat it catchesSet it to
Block Spam ContentFree Nitro scams, invite dumps, similar unsolicited copyBlock message, Send alert
Block Mention SpamMessages that ping lots of people at onceLimit 5–10 (max 50), Block, Timeout
Commonly Flagged WordsSlurs and sexual content (preset lists)On for public servers
Custom KeywordYour own phrases and linksUp 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:

SettingDefault
Flood trigger4 messages in 12 seconds (Reset sets 5 in 5 seconds)
Warnings before punishment3
Punishment5-minute mute (also kick, ban, or quarantine)
Caps70% uppercase
Duplicates3 identical messages (2 if they are very short)
Word blacklist50 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

CommandWhat it stopsPermissionDefault
/adblock settingsServer ads in chat and in profilesAdministratorOff
/selfbot settingsAutomated user accounts (self-bots)AdministratorSix detectors are Shield
/antiping settingsPings to protected staff and roles, using Discord’s own AutoModAdministratorOff
/honeypot settingsAnyone who posts in a trap channelManage ServerOff, softban when on
/warnings settingsRepeat offenders: mute, kick, or ban after 1–20 warningsModerate MembersYou 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.

Decision table showing which tool fits each kind of Discord spam: AutoMod for scam text and mention spam, /antispam settings for floods and duplicates, /adblock for ads, /honeypot for scam bots, /antiraid for join waves

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.

  1. Slow it down. /slowmode (Manage Channels) sets Discord’s per-person cooldown, from 0 to 21600 seconds. Guide: Discord slowmode.
  2. Or lock it. /lockdown (Administrator) denies Send Messages and Add Reactions to @everyone and 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.
  3. Remove the spammer. /mute, /kick, or /ban. /mute and /warn can delete up to 100 of their recent messages, and /ban can delete up to 7 days of them (Discord’s limit).
  4. 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.

Five stacked spam tiles hitting a stop gate next to a mute hourglass and a broom clearing leftover messages

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 seeIt isFirst move
One person dumping lines in #generalSpam/antispam settings, then /slowmode
Messages pinging half the serverMention spamAutoMod Block Mention Spam
Free Nitro or fake Steam linksScam spamAutoMod Block Spam Content, no Embed Links for new members
Dozens of new accounts posting at onceA raid/antiraid settings, /raidmode enable, Pause Invites
Members getting scam DMs from your serverDM spamDiscord Security Actions → pause DMs, /dmlock (Manage Server)
The same banned person back againBan evasionCheck 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.

ToolBest atHonest note
Discord AutoModBlocking scam text and mass mentions before they postRun it in every server
BetterAntispamFlood, duplicate, and ghost-ping detection, plus raid and lock toolsFree core. Image filter is Shield
DynoClassic automod modules with a web dashboardIts FAQ says no anti-raid and no anti-nuke
Carl-bot / YAGPDBCustom automod rules and regexGreat if staff already know the dashboard
WickFull security suitePick it if nukes worry you more than spam
MEE6Moderation alongside levels and XPKeep 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

Add BetterAntispam

Sources

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.

BetterAntispam on Nick LaunchesFeatured on ToolFameFeatured on Startup FameVerified on DANG!ToolpilotFeatured on SaaSGrowFeatured on ShowMeBestAIFazierSubmit AI ToolsFeatured on Twelve ToolsFeatured on Wired BusinessFeatured on Findly.toolsListed on Turbo0Featured on SaaSFameFeatured on neeed.directoryFeatured on Dofollow.ToolsGood AI ToolsAI Agents DirectoryAura++SideProjectorsFoundrListShinyLaunchStartup FastNextGen ToolsFind-Us-HereDeepLaunchAcid ToolsStartupBaseNewToolUFindWhatsYourHoursOpenHuntsMarketingDBStartup InspireStarter BestFeatured on aitoolfame.comFeatured on IndieHuntShinyLaunchLaunched on LaunchPandaFeatured on WhatsthebigdataFeatured on Yo.directoryAs seen on Launch Llama Newsletterbetterantispam.com Domain RatingVerified DR - Verified Domain Rating for betterantispam.comFeatured on ToolfioBetterAntispam | Firsto LaunchFeatured on DailyPingsFeatured on DanielLaunchesFeatured on ShipBoostFeatured on AgentWork.ToolsFeatured on SaaSCityFeatured on WayfindioFeatured on DodoDirectoryFeatured on TinyLaunchpadFeatured on ListMySaaSVerified on directreeFeatured on Submit HuntFeatured on VibeCodingListFeatured on NoonlaunchFeatured on LaunchItListed on MaidensailVerified on Endors — BetterAntispamMarked on IndieAscentListed on CurlShipListed on PublishYourSaaS