Auto-mod and anti-raid

How to protect your Discord server from raids and nukes

A raid floods your server with new accounts. A nuke is when someone with power, such as a compromised admin, deletes channels or bans members in bulk. Moderation Bot's anti-raid checks watch for both and act on the people responsible.

Steps

  1. Make sure auto-mod is on

    Anti-raid checks are part of auto-mod, so they only run while the main auto-mod switch is on.

  2. Open Anti-raid

    In the dashboard, go to Auto-mod → Anti-raid to see every raid and nuke check.

  3. Turn on the checks you need

    Switch on each check, then open it to set how many events are allowed in what window and what should happen.

  4. Give the bot View Audit Log

    Several checks find the person behind a change through Discord's audit log. Without View Audit Log, Moderation Bot cannot tell who did it.

What the anti-raid checks watch

Each check triggers when more events than you allow happen inside its window.

  • Mass joins acts on the recent joiners in the window.
  • Mass role changes and mass channel changes watch for roles or channels being created, edited or deleted.
  • Mass member role changes watches roles being added to or removed from members.
  • Mass thread creation, mass pinning and mass message deletions catch bulk spam and clean-up attacks.
  • Mass bans & kicks catches someone removing members in bulk.

How it responds

Each trigger acts on whoever caused it, up to 50 members at a time. Server-wide cooldowns and escalating actions stop it acting over and over on the same event. It never acts on our own bots.

Defer to mods is a good first step if you are unsure. It takes no action and posts an alert to your mod log channel. Every trigger and action is recorded in the mod log.

The protection levels set anti-raid for you. Light and Balanced alert mods to join raids. Balanced times out anyone mass-changing roles, channels or bans, but never kicks. Strict times out raiders and then kicks them.

During a raid

If a raid gets through, /lock all stops members sending messages in every channel while you clean up. /unlock all lifts it afterwards.

Common questions

Will anti-raid kick real members during a big event?

It can if your limits are tight. Raise the Max joins limit for the event, or set Mass joins to Defer to mods so a person decides.

Does anti-raid work on the free plan?

Yes. The anti-raid checks are part of auto-mod on every server. Premium raises limits such as exempt roles and channel overrides.

Related guides

Give your mods a break.

Add the bot, and auto-mod starts protecting your server straight away. Free to add.