Overview#
Anti-raid watches two things: a burst of brand new accounts joining together, and a wave of different accounts posting the same thing at once. Iris reacts in seconds rather than whenever a moderator wakes up.
Rate on its own is never enough. A join only counts towards a raid if the account is younger than your account age setting or still has a default avatar, and most of the burst has to look that way. A message raid needs the volume, a minimum number of separate members, and several of them posting identical content. That combination is what a raid looks like and what a busy server does not.
When a raid is confirmed the raiders get the punishment you chose and the server can lock itself down: the categories you listed are closed (or the whole server if you listed none), the roles you listed are blocked, and a message explains why. The lockdown lifts on a timer, or waits for you. Lifting restores every channel to the exact permissions it had beforehand.
Members holding a whitelisted role, and anyone with Manage Messages or Manage Server, are never treated as raiders and never feed the counters.
Setup#
- Open the dashboard and go to Moderation > Anti-Raid, then turn the module on.
- Set your Detection Thresholds. Compare them against a normal busy hour in your server, not against a raid.
- Choose the Punishment for raiders: kick, ban, or alert only.
- Add your staff roles under Whitelisted Roles.
- Pick an Alert Channel so a detection reaches you.
- Under Lockdown, list the categories to close and the roles to block, write the message, and set the auto lift.
Settings#
0 waits for you to lift it.Commands#
Configuration moved to the dashboard, so the slash setup menu is retired. Status and the prefix fallback remain.
Permissions#
What it looks like#
Tips and gotchas#
The lockdown will not lift.
Auto lift is set to 0, which means manual. Run /unlockdown to lift it, or set a number of minutes.
Do channels come back exactly as they were?
Yes. Every locked channel’s overwrites are snapshotted before the lockdown and written back verbatim when it lifts, including roles that had no overwrite at all. The snapshot is stored on disk, so it survives a restart mid-lockdown.
It triggered for no reason.
Check /antiraid status: it prints the exact conditions in force. Every one of them has to be met at once, so raise the join threshold, the account age or the new-account share until the triggers match your server.
Real members got kicked.
They joined inside the window on accounts younger than your account age setting, and hold no whitelisted role. Raise the join threshold or the account age, and whitelist any role your regulars hold.
Nothing was locked.
Iris needs Manage Permissions in the channels it is closing. With no categories listed under Lockdown the whole server is locked, so a lockdown that did nothing is almost always a permissions problem.
Does it catch a slow raid?
Not by rate alone. Ten accounts an hour is under any sensible threshold, which is what verification and the alt detection are for.