Skip to main content

Antinuke

Protect your server from destructive actions with raze’s real-time antinuke system.

What is antinuke?

The antinuke system monitors your server’s audit log in real time. When an unwhitelisted member performs destructive actions beyond your configured threshold, raze automatically punishes them instantly.
You must run ;antinuke setup before enabling any antinuke modules.

Initial setup

Run this once before using any other antinuke commands.

Enable / disable

View configuration

Global settings

Punishment

Duration window

The time window in which actions are counted toward the threshold. Defaults to 5 minutes.

Log channel

Antinuke modules

Each module monitors a specific action type. Click a module to see its commands.
Triggers when a member bans others beyond the threshold within the duration window.
Triggers when a member kicks others beyond the threshold within the duration window.
Triggers when a member adds a bot that is not whitelisted.
Triggers when a member creates roles beyond the threshold.
Triggers when a member deletes roles beyond the threshold. Also triggers if a locked role is deleted.
Triggers when a member adds dangerous permissions to a role, or edits a locked role.
Triggers when a member assigns roles with dangerous permissions beyond the threshold.
Triggers when a member creates channels beyond the threshold.
Triggers when a member deletes channels beyond the threshold.
Triggers when a member creates webhooks beyond the threshold.
Triggers when a member creates, deletes, or updates emojis beyond the shared threshold.
Triggers when a member times out others beyond the threshold.
Triggers when a member changes the server’s vanity URL.

Whitelist

The whitelist has two levels: global and per-module.
  • A globally whitelisted user or role bypasses every antinuke module entirely.
  • A per-module whitelisted user or role only bypasses the specific modules you list — all other modules still apply.
Only whitelist users and roles you absolutely trust. A globally whitelisted member can perform any destructive action without being punished.

Global whitelist

Per-module whitelist

Whitelist a user or role for one or more specific modules. Pass the module names after the target — the same names used in ;antinuke <module> enable.
Valid module names: ban, botadd, channelcreate, channeldelete, editrole, emoji_add, emoji_remove, emoji_update, giverole, kick, mute, rolecreate, roledelete, vanity, webhook

View whitelist

Shows all entries. Global entries are labelled global; per-module entries show each module they cover.

Admins

Antinuke admins can manage antinuke settings and bypass antinuke checks.

Staff roles

Members with a configured staff role bypass antinuke punishment.

Role locks

Prevent a role from being deleted or having dangerous permissions added.

Restore a punished member

Clears the punishment flag and restores the member’s roles if the punishment was strip.

Set antinuke owner