Anti-Nuke

Stops a stolen admin account or a rogue bot the moment it starts deleting channels, roles or members, quarantines it, undoes the damage on its own and alerts you.

Anti-Nuke protects your server against the worst case: a staff account gets stolen (or a bot gets compromised) and starts deleting channels and roles or banning everyone. Discord has no undo button. DotBot does.

DotBot reads your server's audit log as things happen and counts, per person, how many channels, roles and members they delete, ban or change. The moment someone goes over a limit, or breaks an instant rule like giving out Administrator, DotBot stops them within a second or two, undoes what they did, optionally pauses invites, and alerts you with buttons to release, ban or mark the incident as reviewed.

How it works

  1. A staff member (or bot) does something: deletes a channel, bans someone, changes role permissions…
  2. DotBot counts it towards that person's limits. Limits are per person and add up within a time window: a moderator banning 2 raiders is fine; someone deleting 5 channels in a minute is stopped at the 3rd.
  3. Some actions are instant rules and are stopped the first time: giving dangerous permissions, adding a bot, or changing the custom invite link.
  4. When someone is stopped, DotBot punishes them (quarantine by default), undoes everything they did in the minutes before (at least the last 15), and posts an alert.
  5. For 15 minutes after someone is stopped, and for as long as they keep going, anything else they do is undone right away and added to the incident. The alert is kept up to date.
  6. The incident stays open until someone releases, bans or marks it as reviewed. Once it's closed, that person's limits start counting from zero again.

The server owner and DotBot are never counted, and neither are the people and roles you trust.

Note

Anti-Nuke is off by default. Turn the module on from the dashboard to start protecting your server.

Quick start

  1. Turn on the Anti-Nuke module.
  2. Open Anti-Nuke → Overview and pick a protection level: Balanced works for most servers.
  3. Fix anything the status card lists. Most importantly, drag DotBot's role to the very top of your role list (Server Settings → Roles), so it can always stop anyone.
  4. In Response, click Create quarantine role and choose a private alert channel.
  5. Turn on Backups and make a backup, so deleted channels and roles can be recreated with every permission and roles given back to everyone who had them.
  6. In Trusted & access, review Bots present when DotBot joined. Existing bots such as ticket managers are automatically exempt during that membership. Turn off an exemption and save to apply your rules to that bot. Bots added later follow the server’s normal rules. Automatic exemptions grant no incident review permissions.
  7. Optionally, turn on the Owner lock.

Overview

Status card

Shows whether your server is protected and lists anything that needs attention:

  • DotBot is missing permissions it needs (View Audit Log, Manage Roles, Manage Channels, Ban Members, Kick Members, Timeout Members, Manage Webhooks, Manage Server, Manage Expressions).
  • Roles with dangerous permissions are above DotBot's role: anyone with them can't be stopped.
  • DotBot's role isn't at the very top.
  • There's no quarantine role, it was deleted, it's above DotBot's role, or it has dangerous permissions (DotBot never gives a role like that).
  • There's no alert channel, or DotBot can't send messages there.
  • Backups is off or has no backup yet.

It also shows the incidents of the last 30 days, open incidents and people in quarantine, and when the last backup was made. If DotBot isn't answering (for example, while it restarts), the card says so and keeps trying.

Protection level

A quick way to set every limit and instant rule at once:

LevelWhat it does
RelaxedDouble the default limits. Dangerous permissions are only taken back and custom invite changes only reported. For big staff teams that do a lot at once.
Balanced (recommended)Stops someone at the 3rd channel or role they delete, or the 4th ban, within 10 minutes. Added bots are kicked.
StrictHalf the default limits. Whoever adds a bot is stopped too. For servers that rarely change.

You can fine-tune everything afterwards in Limits; the page then says you're using your own limits.

Limits

Each limit is "stopped at more than X in Y minutes", counted per person (never added up between people). Set a limit to off to stop counting that action.

When someone is stopped, DotBot undoes what they did during the longest window of the limits that are on, and at least the last 15 minutes.

GroupActionBalanced default
ChannelsDeleting channelsmore than 2 in 10 min
Creating channelsmore than 6 in 10 min
Renaming and changing channels (name, topic, slowmode and other settings; moving a channel doesn't count)more than 10 in 10 min
Changing channel permissionsmore than 15 in 10 min
RolesDeleting rolesmore than 2 in 10 min
Creating rolesmore than 6 in 10 min
Changing role permissionsmore than 6 in 10 min
MembersBanning membersmore than 3 in 10 min
Kicking members (and pruning)more than 4 in 10 min
Timing out membersmore than 10 in 10 min
Removing roles from members (someone removing their own roles doesn't count)more than 10 in 10 min
Webhooks, emojis and serverCreating webhooksmore than 3 in 10 min
Deleting emojis and stickersmore than 5 in 10 min
Changing server settingsmore than 4 in 10 min

Instant rules

Stopped the first time, without waiting for a limit.

RuleOptions
Dangerous permissions: giving someone a role with Administrator, Manage Server, Manage Roles, Manage Channels, Manage Webhooks, Manage Expressions, Ban Members, Kick Members or Mention Everyone, or adding those permissions to a role or @everyone.Stop them (default: takes it back and punishes), Only take it back (and alert), or Allow (only counts towards the role limits).
Adding bots: raids often start by adding a bot with Administrator.Kick the bot (default), Kick and stop (also punishes whoever added it), or Allow. Allow verified bots lets bots with Discord's check mark in freely.
Custom invite link: stealing a server's discord.gg/name link is a common attack.Stop them (default: puts the old link back if possible and punishes), Only alert, or Allow.

A rule set to Only take it back or Only alert still counts towards its limit (creating roles, changing role permissions or changing server settings): someone who keeps trying is stopped when they go over it.

Response

Punishment

PunishmentWhat it does
Quarantine (default)Removes their roles (saved to give back), gives the quarantine role and times them out. You decide later. Best for stolen accounts: nothing is lost.
Remove rolesRemoves their roles (saved to give back), nothing else.
KickKicks them from the server.
BanBans them from the server.
Only undo and alertNobody is punished; DotBot only undoes what they did and alerts you.

Quarantined bots stay in the server. With Administrator and a higher role, DotBot temporarily removes Administrator from the bot’s own managed role. Release checks the Discord audit log. If a moderator subsequently removed Administrator, release closes the quarantine and leaves the permission off. DotBot saves removable roles for release and reports dangerous permissions retained through Discord-managed roles. Choosing Remove roles still kicks bots. Kicked or banned accounts can't be released from the dashboard.

If the person keeps a role DotBot can't remove (the Server Booster role or a linked role) and that role has Administrator, or other dangerous permissions with no timeout, the alert warns you.

Quarantine

SettingWhat it does
Quarantine roleA role that can't see, write or talk in any channel. Click Create quarantine role and DotBot creates it and hides every channel from it (you can follow the progress). Channels created later outside a category, or with their own permissions, are hidden from it too a few seconds after they're created. Without a role, people are still stopped by removing their roles and timing them out.
TimeoutDiscord's timeout stops them writing, talking and reacting even if they keep a role. 168 hours (7 days) by default; 0 for no timeout; up to 28 days (672 hours).

Undo the damage

Right after someone is stopped, DotBot undoes everything they did in the minutes before (at least the last 15), plus anything they keep doing. Each thing is undone only once: if the same person is stopped again later, what was already put back isn't touched. Each part can be turned off:

OptionWhat it does
Create deleted channels and roles againWith their permissions, from DotBot's memory (last 6 hours) or the latest backup. Messages can't be brought back, and the role of a bot or an integration belongs to Discord and can't be created again.
Give roles backEveryone who had a deleted role gets it back.
Delete what they createdChannels, roles and webhooks they created, and bots they added (verified bots stay if you allow them).
Unban who they bannedKicked members can't be brought back automatically, but you'll see who they were.
Put changes backPermissions of roles and channels, channel names and settings, roles removed from members, timeouts, server settings (name, icon, banner and the rest) and deleted emojis and stickers.

After recreating channels and roles, DotBot also updates its own settings that pointed to them, so your modules keep working. That includes Anti-Nuke's own alert channel: if it was deleted, the alert goes to the recreated one.

Pause invites for 24 hours: nobody can join with an invite while you check what happened. The alert says when invites were paused, and you can turn them back on in Discord.

Alerts

SettingWhat it does
Alert channelA private staff channel. The person stopped shouldn't see it.
Roles to pingUp to 10 roles. Roles that no longer exist are skipped.
Message the ownerSends the alert to the server owner by DM too. On by default.

The alert says who was stopped, why, how they were punished, what was undone and how many things couldn't be, with Release, Ban and Mark as reviewed buttons. The full list of what they did is in Incidents. Its title tells you what happened: "Anti-Nuke stopped someone", "Anti-Nuke couldn't stop someone" (when the punishment failed, with the reason) or "Anti-Nuke alert" (when something was only undone or reported).

Trusted & access

SettingWhat it does
Trusted peopleUp to 50 people or bots that are never counted, for example another bot that legitimately creates or deletes a lot (like a ticket bot) or a co-owner you fully trust.
Trusted rolesUp to 20 roles whose members are never counted. Anyone who gets one of these roles can delete everything without being stopped, so make sure only the owner can give them.
Owner lockOnly the server owner can change Anti-Nuke's settings, release people or turn the module off, even someone with Administrator or full dashboard access can't. Protects against a stolen admin account turning Anti-Nuke off first. Only the owner can turn it on.

Who decides after an incident: without the owner lock, the owner, trusted people and roles, and members with Administrator can release, ban or mark incidents as reviewed from the alert (and in the dashboard, whoever can edit Anti-Nuke). With the owner lock, only the owner can decide in the dashboard; from the alert, the owner and trusted people and roles.

Important

Trust as few people as possible. If a trusted account is stolen, Anti-Nuke won't stop it. Administrators are counted like everyone else unless you trust them.

Incidents

Everyone Anti-Nuke stopped, newest first, filterable by status (Open, Released, Reviewed, Banned). Each incident shows:

  • who was stopped and why (for example "Deleted 3 channels in 10 minutes" or "Added a bot");
  • the response (quarantined, roles removed, kicked, banned);
  • what they did, action by action;
  • what was undone (channels and roles created again, members with roles given back, unbanned, changes put back) and what couldn't be undone, with the reason (missing permission, Discord's limit, no copy because Backups is off…);
  • who resolved it and when.

In quarantine lists everyone currently quarantined, since when and how many roles are saved. Releasing someone gives their saved roles back and removes the timeout. Do it once their account is safe (new password, two-factor authentication on). Only people whose roles were removed can be released, and two people can't decide on the same incident at the same time. Incidents are kept for one year.

Commands

CommandWhat it does
/antinuke statusShows Anti-Nuke's response, open incidents and the latest one.
/antinuke release user:Releases someone from quarantine and gives their roles back.

Permissions DotBot needs

View Audit Log, Manage Roles, Manage Channels, Ban Members, Kick Members, Timeout Members, Manage Webhooks, Manage Server and Manage Expressions. Above all, DotBot's role must be at the very top of the role list, above every role with dangerous permissions.

FAQ

Will Anti-Nuke stop my own moderators?

Only if they go over a limit or break an instant rule. Normal moderation (a few bans, setting up a channel or two) is far below the limits. If your team regularly does a lot at once, use the Relaxed level, raise specific limits, or add trusted roles.

Can Anti-Nuke stop the server owner?

No. The owner and DotBot are never counted. Discord doesn't let any bot act against the server owner.

Can it bring back deleted messages?

No. Discord doesn't allow restoring deleted messages. Anti-Nuke recreates deleted channels and roles with their permissions, but the messages inside a deleted channel are gone.

Why should I turn on Backups too?

DotBot remembers deleted channels and roles for 6 hours, but a recent backup lets it recreate them with every permission and give roles back to everyone who had them, even for things that existed before DotBot was watching.

What's the difference between quarantine and ban?

Quarantine removes the person's roles (saved for later), gives a role that can't see anything and times them out. Nothing is lost: once the account is secure you click Release and everything comes back. A ban removes them from the server. For stolen accounts, quarantine is the better choice.

Why does the status card say DotBot's role must be at the top?

Discord only lets a bot act on members and roles below its own highest role. If a role with dangerous permissions is above DotBot's, anyone with it can't be stopped.

Does Anti-Nuke replace the staff action limits in Moderation?

When Anti-Nuke is on, it watches the actions done by hand in Discord (and can undo them), while Moderation's staff action limits keep watching DotBot's own commands. They work together.

Someone added a legitimate bot and it was kicked. What do I do?

That's the Adding bots rule. Add the bot again; if you want to avoid this in the future, allow verified bots, set the rule to Allow, or let a trusted person add bots.

What is the owner lock for?

It makes sure that only the server owner can change or turn off Anti-Nuke. Without it, a stolen admin account with dashboard access could turn Anti-Nuke off before attacking.

How fast does Anti-Nuke react?

Within a second or two of the action appearing in the audit log. Anything else the person does afterwards is undone right away.