Set up antinuke
Antinuke watches destructive server actions, including bans, kicks, channel or role changes, dangerous permission grants, webhooks and bot additions. It punishes the actor and restores what it can. Discord permissions, role hierarchy and available audit information still determine what Flanker can do.
- Prepare access
Use the server owner account and place Flanker above the roles it must manage.
- Enable protection
Run guided setup, then review modules, logs and trusted access.
- Check recovery
Understand panic, approvals and what happens when a role cannot be restored.
1. Prepare the server
Use the server owner account for initial setup. Antinuke admins can manage supported settings afterward. A Flanker Admin role, fake permission or Discord Administrator permission does not automatically make someone an antinuke admin.
In Discord → Server Settings → Roles, move Flanker’s highest role above the staff and member roles it must manage. It cannot manage the server owner or members above it.
- FlankerNeeds to sit above roles it protects and manages.
- Higher
- Staff roles
- Below Flanker
- Member roles
- Below Flanker
- @everyone
- Bottom
Flanker needs the specific permissions for the actions you enable, such as View Audit Log, Manage Roles, Manage Channels and the relevant moderation permissions. If an action is denied, its reply names the missing permissions. Check channel overrides as well as server permissions. See invite and permissions.
2. Run guided setup
On the dashboard
- Open the server picker, select your server and open Antinuke.
- Start setup as the owner. Choose Beginner for the recommended configuration, or Advanced to review optional hardening.
- Read each optional choice before enabling it. Review trusted bots, the backup role and other hardening choices separately.
- Review the protection state and module settings after setup completes.
With commands
/antinuke setup/antinuke configThe setup command offers Beginner and Advanced paths. Config shows enabled modules, thresholds, punishments, admins and trusted bots. Mentioning flanker before the command works too.
3. Understand a module
A module has an enabled state, a threshold and a punishment. Thresholds are limits within an action window, not a promise that an attacker can cause exactly that much damage before containment.
- Ban protection
- On
- ThresholdAn example limit. Choose limits for your server’s moderation activity.
- 3 actions
- Punishment
- Ban
- Count command actionsThe --command option also counts bans and kicks made through bot commands.
- Configurable
/antinuke run ban on --threshold 3 --do banReview the complete module syntax before changing thresholds. A lower threshold alone does not guarantee containment before another action.
4. Keep trusted access small
- Antinuke admins can change security settings and are not punished by antinuke. Add only people you trust with that access.
- Trusted bots still have action caps. Security bots retain their permissions; utility bots lose Administrator and Manage Webhooks.
- Backup owner approval is required for security-weakening changes when configured. Choose a separate trusted person.
- Flanker team site admins have an explicitly separate dashboard exception. Ordinary Flanker Admin roles do not gain it.
/antinuke trusted show/antinuke admin list/antinuke backupowner @trusted-personThe last command changes your configuration. The first two inspect it. Never use a broad whitelist simply to silence an unexplained alert.
5. Understand panic mode
With antinuke and ban protection enabled, strict native-ban protection can start panic on the first unknown native ban, even when the ban is legitimate. Known Flanker ban requests are excluded. Review this tradeoff before enabling it.
/antinuke panic show/antinuke panic nativebans on- Contain
Antinuke limits drop to one and dangerous permissions on manageable roles are paused.
- Pause bulk work
Long-running role and other bulk tasks wait while security responds.
- Owner recovery
The owner ends panic; failed role restoration is reported and saved for a later retry.
Only the owner ends panic, with backup-owner approval when configured:
/antinuke panic endPanic ends even if some roles cannot be restored. Flanker reports those roles and preserves their recovery data; it does not keep the server in panic solely because one restoration failed. Fix the role hierarchy or missing permissions, then retry saved recovery:
/antinuke panic recoverSaved permission pauses survive restarts. In-memory bulk tasks do not necessarily survive a bot restart.
Verify your setup
- Inspect
/antinuke configand the dashboard’s protection state. - Confirm Flanker’s role is above every role it must manage.
- Verify the configured log channel is visible and writable by Flanker.
- Review trusted bots and antinuke admins. Confirm the backup owner understands approval requests.
- Check the panic status without starting an attack. Use a controlled test server for destructive testing.
If something does not work
A role cannot be restored: check Manage Roles and role order, then use saved recovery. Deleted roles or roles above Flanker may need manual attention.
Someone cannot change a security setting: check their actual owner or antinuke-admin status. Fake permissions never unlock security controls.
An approval is pending: the backup owner must approve qualifying changes. Turning a setting off is not a way to bypass recovery.
You want to start over: /antinuke reset is owner-only, disables protection and follows backup-owner approval rules when configured. End panic first. Saved failed-role recovery is retained. A reset is not a recovery command.
Next: set up antiraid or browse all security commands.