Skip to Content
DocumentationAnti-Nuke & Security

🛡️ Anti-Nuke & Server Security

Alya provides an enterprise security layer to defend your Discord server against rogue administrators, compromised accounts, mass-raid attacks, and vanity URL hijacking.


🔒 Anti-Nuke Protection

Anti-Nuke actively monitors Discord audit logs for rapid destructive actions (mass bans, mass kicks, channel purges, and role stripping).

Configuration (/anticonfig, /antistatus)

  • /anticonfig: View quick overview of your antinuke configuration.
  • /antistatus: Open the full interactive Anti-Nuke overview panel.
  • /antilogs #channel: Route security alerts and incident summaries to a secure, private staff channel.

Punishment Modes (/antipunishment)

Choose what action Alya immediately executes against any account that triggers an anti-nuke threshold:

/antipunishment mode:ban /antipunishment mode:kick /antipunishment mode:removeroles
  • ban (Default & Recommended): Permanently bans the offending account and revokes active invites.
  • kick: Immediately kicks the offender from the server.
  • removeroles: Strips all administrative and moderation roles from the offending account.

Trusted Whitelist (/whitelist)

Server owners can designate trusted senior administrators who are exempt from anti-nuke triggers:

/whitelist add user:@HeadAdmin /whitelist remove user:@FormerAdmin /whitelist show

⚠️ Note: Only the Server Owner can manage the Anti-Nuke whitelist and punishment modes.


🔗 Vanity URL Guard (/vanityguard)

For Discord Partnered and Tier 3 Boosted servers with custom vanity invite codes (e.g. discord.gg/yourserver):

  • Automatic Restoral: If a rogue moderator or compromised bot changes the server’s vanity URL, Alya immediately detects the change and attempts to reclaim the registered vanity URL before third parties can snipe it.
  • Offender Ban: Automatically bans the account that tampered with the vanity invite.
/vanityguard enable /vanityguard disable /vanityguard status

🤖 Native Discord AutoMod Integration

Alya integrates directly with Discord’s native AutoMod engine for zero-latency enforcement:

  • /blacklistword: Create and manage blacklisted word lists directly from chat. Blocked messages are rejected by Discord before they appear in chat.
  • /antilink: Toggle automated detection and blocking of unauthorized invite links and scam domains.
  • /antimention: Prevent mass-mention attacks by configuring a maximum mention threshold per message.
Last updated on