Skip to main content

What this is for

If a moderator account gets compromised or a bot goes rogue mid-raid, killswitch strips the permissions being abused from every role at once. It buys you time to work out who’s responsible without hunting through role settings while damage is still happening.
This is a last-resort tool. It touches every role in your server, and members will lose access to things until you restore. Try ,killswitch preview first to see what it would hit.
Limited to the server owner and antinuke admins. Confine needs Administrator.
We suggest you to put confine’s role above every other role in the server.

Pulling the switch

Confine shows you how many roles will be affected and asks you to confirm. Once you do, it works through them at a paced rate to avoid Discord’s limits — expect it to take up to a minute on a large server.
There’s a cooldown between uses. If you’ve just run it, confine tells you how long to wait.

Bots only

When the problem is clearly a bot rather than a member, this leaves your staff roles alone:

Seeing what it would do

Screenshot 2026 08 17 170955
Lists every role carrying a dangerous permission, flagging which ones belong to integrations. Nothing is changed.
Worth running once while things are calm, so you know what the real thing would do before you ever need it.

Finding who caused it

Groups the last 30 minutes of destructive audit log entries by who performed them — bans, kicks, channel and role deletions — sorted by volume. This is usually how you identify the compromised account.
Needs View Audit Log.

Undoing it

Once the incident is handled:
Confine puts every role back to the permissions it held before the killswitch ran, using the snapshot it saved at the time.
Server owner only — antinuke admins can trigger a killswitch but can’t restore from one.