Skip to main content
Antinuke monitors your server for destructive actions and automatically punishes the responsible user. It tracks events like mass bans, channel deletions, role changes, and more — and can reverse most of them.

Getting Started

Enable antinuke with:
,antinuke on
Disable it with:
,antinuke off
Only the server owner and antinuke admins can manage antinuke settings.

Modules

Each module protects against a specific type of action. Configure them with:
,antinuke <module> do:<punishment> threshold:<number>
Toggle a module on or off:
,antinuke <module> on
,antinuke <module> off

Available Modules

ModuleWhat it protectsThresholdReverts actions
channelChannel create, delete, and updateYesYes — deletes created channels, recreates deleted ones, reverts updates
rolesRole create, delete, and updateYesYes — deletes created roles, recreates deleted ones with permissions
banMass banning membersYesYes — unbans the banned users
kickMass kicking membersYesNo
webhookWebhook create, delete, and updateYesNo
emojiEmoji create and deleteYesYes — deletes created emojis, re-downloads deleted ones
permissionsGranting dangerous permissionsNoNo
botaddAdding unauthorized botsNoNo — kicks the bot immediately
vanityVanity URL changesNoYes — restores the original vanity
Modules without a threshold trigger instantly on the first action.

Dangerous Permissions

The permissions module triggers when someone grants any of these permissions through a role: administrator, manage_guild, manage_roles, ban_members, kick_members, manage_channels, manage_webhooks, mention_everyone

Punishments

PunishmentWhat it does
banBans the user
kickKicks the user
stripRemoves all staff roles from the user
jailJails the user (requires jail to be set up)

Threshold Window

Thresholds are counted within a rolling time window. By default this is 24 hours. Change it with:
,antinuke window <duration>
For example, ,antinuke window 12h means a user must exceed the threshold within 12 hours to trigger punishment.

Interactive Config

Run ,antinuke config to open an interactive dropdown where you can select any module and set its punishment and threshold through a popup. View your full configuration with:
,antinuke list

Whitelist

Whitelisted users are temporarily exempt from antinuke for 5 minutes. Useful for giving someone a short window to make changes.
CommandUsageDescription
,antinuke whitelist<@user>Toggle a user’s whitelist status
,antinuke whitelist add<@user>Add a user to the whitelist
,antinuke whitelist remove<@user>Remove a user from the whitelist
,antinuke whitelistedView all whitelisted users with time remaining
Whitelist supports both users and bots. Entries expire after 5 minutes.

Admins

Antinuke admins have permanent exemption from antinuke and can manage antinuke settings just like the server owner. Only the server owner can add or remove admins.
CommandUsageDescription
,antinuke admin<@user>Toggle a user’s admin status
,antinuke adminsView all antinuke admins

Whitelist vs Admin

WhitelistAdmin
ExpiresAfter 5 minutesNever
Can manage antinukeNoYes
Exempt from detectionYesYes
Supports botsYesNo
Who can manageOwner or adminsOwner only

Reset

Reset all antinuke settings:
,antinuke reset
Reset everything including admins and whitelist:
,antinuke reset all
Only the server owner can reset antinuke. This cannot be undone.

Examples

Set up ban protection with a threshold of 3:
,antinuke ban do:ban threshold:3
Protect against channel deletion, strip roles on trigger:
,antinuke channel do:strip threshold:2
Block all unauthorized bots:
,antinuke botadd do:kick
Whitelist someone for 5 minutes to make changes:
,antinuke whitelist @user