Quick Start
Turn it on, then trust the people and bots that are allowed to act in bulk.
- 01
Give Verifier the Permissions
Anti-nuke needs View Audit Log, Manage Roles, Manage Webhooks and Kick Members. If the Anti-Nuke page shows a warning, re-authorize Verifier from it.
- 02
Turn It On
Open the Anti-Nuke page in the dashboard and click Turn On. With the defaults, a member who does 5 counted actions in 60 seconds is punished.
- 03
Trust Your Staff and Bots
Add the moderation bots your moderators kick and ban through, and the members who prune or clean up channels.
- 04
Keep Verifier's Role High
Verifier can only punish members whose highest role is below its own.
Settings
Change them on the Anti-Nuke page in the dashboard. It needs the Manage Server permission.
| Setting | What It Does | Default | Plan |
|---|---|---|---|
| Action Limit | How many counted actions inside the window get a member punished (2-20). | 5 | Free |
| Window | How far back actions are counted, from 10 to 600 seconds. Free servers always use 60 seconds. | 60 seconds | Premium |
| Counted Actions | Channel deletes, channel creates, role deletes, role creates, kicks, prunes, bans and webhook creates. Each one can be turned off, and at least one stays on. A prune counts as one kick for every member it removes. | All on except channel and role creates | Free |
| Separate Limits | A limit of its own (2-20) for bans, kicks, channel deletes, channel creates, role deletes, role creates or webhook creates. An action without one shares the action limit. Prunes count toward the kick limit. | Shared | Premium |
| Punishment | Remove roles, Kick or Ban. Remove roles takes away every role Verifier can remove. Bots are always kicked. | Remove roles | Free |
| Trusted Users | Members and bots that are never counted. Up to 3, or 50 with Premium. | None | Free |
| Trusted Roles | Members with one of these roles are counted but never punished. Up to 3, or 15 with Premium. | None | Free |
How It Works
Verifier reads the server's audit log as it happens. Every channel delete, channel create, role delete, role create, kick, prune, ban and webhook create is counted for the member or bot that did it. The server owner, Verifier and trusted users are never counted.
When a member reaches the limit inside the window, Verifier punishes them once: it removes their roles, or kicks or bans them if you picked that. Bots are kicked. The webhooks they created inside the window are deleted, even when they already left the server. With Ban, a member who left is banned anyway.
If the same member acts again inside the window after a punishment, for example a kicked bot that was added back, they are punished again right away. After the window, they have to reach the limit again.
Every punishment is in the audit log and, with Logging on, in your log channel, with the roles that were removed so you can give them back. Counts are kept in memory only and are gone within 20 minutes of the member's last counted action.
With Premium, the Recovery tab on the Anti-Nuke page undoes what a member did: it unbans the members they banned, deletes the channels and roles they created, and recreates the channels and roles they deleted, with their categories, order and permissions. The channels and roles they created come from the audit log, so they are listed even when those creates aren't counted. Channels and roles they both created and deleted in that time aren't recreated. You pick how far back to look (1 hour, 24 hours or 7 days) and can leave single items out. It works for any member, not only one anti-nuke caught. The admin who starts it needs Ban Members to unban, Manage Roles to delete or recreate roles and Manage Channels to delete or recreate channels. A created role is only deleted when it is below that admin's highest role, and a created channel only when they can see and manage it. The ones they can't delete are shown faded. Verifier also points its own settings at the recreated channels and roles, and posts its welcome message and role panels again. Every restore leaves a report under Past Restores on the same tab, kept for 90 days and linked from the audit log. It lists what came back, what came back with fewer permissions, and what failed or wasn't done, with the reason.
Recovery can't bring back messages, who had a role, or members who were kicked or pruned. Channels and roles are only saved while the server has Premium, anti-nuke is on and Channel deletes or Role deletes is counted, for 7 days. Recreated roles go back to their old place in the role list, never above Verifier's highest role. Restored roles and channel permissions only grant permissions that both Verifier and the member running the recovery have.
What Anti-Nuke Can't Stop
It can't undo a delete, a ban or a prune; it stops what the member does next. It also can't stop someone who has the rights to change its settings or remove Verifier. It can't take away roles Discord manages, like Server Booster or subscriber roles, so don't give them moderation permissions. Every settings change is in the audit log.
Verifier Needs View Audit Log
Without View Audit Log, Discord doesn't tell Verifier who did what, so nothing is counted. Removing roles needs Manage Roles, deleting webhooks needs Manage Webhooks, kicking needs Kick Members and banning needs Ban Members. Servers that added Verifier before anti-nuke need to re-authorize it from the Anti-Nuke page.
Troubleshooting
Nothing happens when someone deletes channels
Check the Anti-Nuke page for a missing permission warning and re-authorize Verifier. Also check that the action is turned on and that the member isn't trusted or the server owner.
A moderation bot was kicked
When moderators kick or ban through a bot like Dyno or Carl-bot, the bot is the one that acts. Add it to Trusted Users. Bots that create webhooks often, like PluralKit, Tupperbox, ticket and translation bots, need it too. So do ticket and temporary voice channel bots once channel creates are counted, and custom role and color role bots once role creates are counted.
A real moderator lost their roles
The log entry lists the roles that were removed, so you can give them back. Add the moderator to Trusted Users or give them a trusted role. A prune counts as one kick per member, so trust the people who prune.
The log says the action failed
Verifier is missing a permission, the member's highest role is above Verifier's, or they keep a role Verifier can't remove that still lets them act. The roles Verifier can remove are still removed and listed. Move Verifier's role above the roles it should remove and the members it should kick or ban, and don't give moderation permissions to roles Discord manages, like Server Booster or subscriber roles.
The dashboard warns that a trusted role can be self-assigned
Anyone with Manage Roles or Administrator in a role above a trusted role can give themselves that role. Trust that higher role too, or move the trusted role above it.
Recovery shows nothing to restore
Channels and roles are saved only while the server has Premium, anti-nuke is on and Channel deletes or Role deletes is counted, for 7 days, and only when the member who deleted them wasn't trusted. Try a longer look-back. Bans are read from Discord's audit log, so they are listed even when no channels or roles were saved, but only to admins with Ban Members.