Overview
Antiraid watches who’s coming through the door. It’s built around three independent modules — you can run all of them, or just the ones that fit your server.Every command here requires the Manage Server permission.
Flags
Antiraid uses$ flags rather than dashes. They go after the on/off toggle, in any order.
Mass join detection
Triggers when too many accounts join in a short burst, which is what an actual raid looks like from the server’s side.The threshold here is measured per 10 seconds. A threshold of 10 means ten joins inside that window sets the module off.
Lockdown
When$lock is on, hitting the threshold puts the server into a lockdown state and closes your channels. Turning $punish on extends that to anyone who slips in while the lockdown is active.
Lockdown doesn’t lift on its own. To end it:
,antiraid state does the same thing.
Running
,antiraid mode outside of an active lockdown just reports that nothing’s happening — lockdown only ever starts from a mass join detection.Avatar requirement
Catches accounts that join with Discord’s default avatar, a common giveaway for throwaway alts.Account age
Blocks accounts created too recently to be trusted.The threshold is in days. Set it to 7 and any account younger than a week gets punished on join.
Whitelisting members
Whitelisted members skip antiraid checks entirely.This command toggles. Running it on someone already whitelisted removes them instead of adding them twice.
,antiraid whitelist view.
