What a raid is
A raid is a mass arrival of accounts, often automated, that flood the server with messages, mentions or links. It lasts a few minutes and aims to drive members away. Not to be confused with a nuke, where an account with too many permissions deletes the channels and bans everyone.
The Discord settings to set up first
Discord provides a first line of defense, in Server Settings:
- Verification Level: require at least a verified email address and an account older than a few minutes
- AutoMod: block spam and mass mentions
- Permissions: remove Mention @everyone and Manage Webhooks from the base role
These settings slow a raid down, but they don't detect it and don't sanction anyone.
Add an automatic anti-raid
An anti-raid bot watches the rate of joins and reacts on its own. With AshBots, type /antiraid: by default, 8 joins in 10 seconds trigger raid mode for 10 minutes. The verification level goes to maximum, then comes back on its own, and every newcomer gets the chosen sanction: quarantine, kick or ban.
- Add a minimum account age to turn away brand-new accounts
- Prefer quarantine over a ban: you can check with a clear head
Filter at the door
/captcha gives new members a short test before opening the channels to them. /honeypot creates a honeypot channel: automated accounts that write in it are sanctioned right away. Both combine with the anti-raid.
During and after the attack
/panic enables raid mode manually, /lockdown blocks writing in every channel then restores the previous state, and /config raidclean kicks or bans accounts that joined recently. Everything can be checked at a glance in /modtools securite. The details are in the Automatic protections guide and on the Discord anti-raid bot page.