Skip to main content

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.
A module has to be turned off before you can change its settings. If it’s already running, confine will tell you to disable it first rather than silently overwriting your configuration.

Flags

Antiraid uses $ flags rather than dashes. They go after the on/off toggle, in any order.
Pass an invalid punishment and confine will list the valid ones back to you — no need to memorize them.

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:
That unlocks every channel and stops punishing new arrivals. ,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.
There’s no threshold on this one — it’s a straight yes-or-no check on each join.

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.
To see who’s on the list, run ,antiraid whitelist view.

Checking your configuration

Shows which modules are live, your mass join threshold and lock/punish settings, your account age threshold, and how many members are whitelisted.