Documentation
Security

Antinuke

Protect your server from compromised staff, malicious bots and mass-destructive actions.

Overview

The antinuke command group (alias an) watches for destructive actions, such as mass channel deletion, mass banning, dangerous role grants and webhook abuse, and automatically punishes whoever triggers them once a threshold is crossed within a short window.

Antinuke commands can only be used by the server owner, an antinuke admin, or a trusted user, not just anyone with Administrator.

Quick Setup

antinuke setup enables a sensible baseline in one command: botadd, channel_create, channel_delete, role_create, permission_escalation, dangerous_role_assign and guild_update at threshold 1, plus ban and kick at threshold 3, all punished with a kick. The server owner is automatically whitelisted.

In an active compromise, run antinuke panic to instantly enable every module at threshold 2 with the striproles punishment.

Configuring Modules

Each protection module is its own subcommand: antinuke <module> <true/false> [threshold] [punishment]. For example, antinuke ban true 3 kick kicks anyone who bans 3 or more members in the detection window.

CategoryModules
Channelschannel_create, channel_delete, channel_update, category_create, category_delete
Rolesrole_create, role_delete, role_update, role_position, permission_escalation, dangerous_role_assign, mass_role, mass_role_assign, role_self_assign
Membersban, kick, botadd, mass_mention
Invitesinvite, invite_create, invite_join_rate, invite_purge
Serverguild_update, webhook_create, webhook_delete
Mediaemoji_create, emoji_delete, sticker_create, sticker_delete, links

Run antinuke modules for the full, current list with descriptions.

Trust & Admins

CommandDescription
antinuke admin add/remove <user>Grant or remove antinuke admin access. Admins can configure antinuke; only the server owner can manage admins.
antinuke trust add/remove <user> [scope]Mark a user as trusted so their actions never trigger antinuke punishments.
antinuke ignore <category_id> <true/false>Exempt an entire channel category from channel-related modules.

Monitoring

CommandDescription
antinuke statusShow every enabled module, its threshold and punishment, plus whitelisted users and admins.
antinuke showShow detailed configuration for the server.
antinuke logsShow a history of antinuke actions taken.
antinuke resetDisable every module and clear all antinuke data for the server, including trust and whitelist entries.