A raid is a sudden attack on a server: many accounts or bots join or post at once to flood channels, advertise scams, or damage the server. Antispam deals with three kinds: spam waves from many accounts, bot raids where several bots post the same message, and nukes where someone deletes channels and roles or bans members in bulk. This guide explains how to prepare, what to do while a raid is happening, and how to recover.
Before a raid: get the basics right
- Move the Antispam role above the roles and bots it needs to act on. Guard works best with Antispam at the top of the role list with Administrator, and Raid Shield needs Moderate Members, Manage Messages, Kick Members and Ban Members (or Administrator).
- Give powerful roles only to people you trust. Guard cannot punish anyone whose role is above Antispam's role.
- Trust your real admins and other moderation bots in Guard, and exempt trusted bots such as music or ticket bots in Raid Shield, so their normal activity is never treated as an attack.
- Pick log channels, for example a private
#security-logs, so you can see what is blocked.
Layer 1: stop accounts at the door
- CAPTCHA Verification gives new members an Unverified role that only sees the captcha channel until they pass.
- The New-Member Gate checks the age of every account that joins (7 days by default) and quarantines or kicks accounts that are too new. It can also delete links and images, and apply stricter spam limits, from members who joined recently. It only checks people who join after you turn it on.
- Join Logs posts a message for every join with Kick and Ban buttons, so suspicious accounts can be removed on the spot.
- Anti-Bot watches for malicious bots and mass bot joins.
Layer 2: catch spam waves
- Anti-Spam deletes message floods and punishes the spammer the way you chose.
- Spam Filters include cross-channel spam, the same message posted in several channels within seconds, a classic sign of a hacked account.
- Scam Link Detection deletes phishing and fake-giveaway links.
- The Honeypot is a trap channel nobody should use. Anyone who posts in it is sanctioned automatically.
- Auto-slowmode can slow a channel down by itself while it is being flooded.
- When 5 different members are caught by Anti-Spam within 60 seconds, a spam wave is under way and Raid Shield switches itself on if it was off. This is on by default, never turns the shield off again, and waits 30 minutes before it can switch on again.
Layer 3: stop bot raids and nukes
Raid Shield flags 3 or more different bots posting the same message within 30 seconds, or one bot repeating it 6 times within 15 seconds, even when the spam is hidden inside forwarded messages. It times out every bot involved for one hour, deletes their spam and posts a report.
Guard reacts to mass deletion of channels or roles, mass bans, mass channel creation, unauthorized bots with dangerous permissions, and 5 or more accounts joining within 10 seconds. It saves a backup every 10 minutes and rebuilds what an attacker deleted.
During a raid
- Open your log channel. The raid report lists the bots, how many messages were deleted and when the timeouts end.
- Use the report buttons: Allow lifts the timeout and exempts the bots, Kick removes them, and Ban bans them and deletes their last hour of messages. A button applies to every bot in that report, so exempt a bot you want to keep before choosing Kick or Ban. If you do nothing, the bots stay timed out until the hour ends.
- Check that Raid Shield is on with
/shield status.
- Clean up with
/purge bots or /purge contains. You need Manage Messages, and deletions cannot be undone.
- If channels or roles were deleted, open Guard in
/configure and use Restore from backup.
- The first few spam messages can appear before the shield reacts. They are deleted right after.
After a raid
- Open the Stats page to see which filters caught the most messages and in which channels.
- Review the Audit Log, which only the real server owner can open, to see who changed Guard, Raid Shield, Anti-Bot or Co-Owners settings.
- Let innocent members use Appeals if they were caught by mistake, and tighten or loosen limits based on what you saw.
- Remember that restored messages are text only, and edits such as renames are not undone.
What to expect
No tool stops every attack. Scam Link Detection uses rules instead of a live blocklist, so it can miss brand-new tricks, and an attacker with a role above Antispam's cannot be punished by it. Layers, trusted admins and a high bot role make the biggest difference. For the setup steps, see the setup guide, and for how each check works, see how it works. Questions? Ask in the support server.