Docs
How to add Agni, set it up and use each feature, and exactly how its security works.
Security. No compromise.
Get started
- Add Agni to your server. You need the Manage Server permission there.
- Type
>helpin any channel to see what it can do. The default prefix is>. - Want a different prefix? Run
>prefix !(or any symbol). You can also mention the bot instead of using a prefix, like@Agni help. - About 85 commands also work as slash commands. Type
/in Discord to see them.
In the command list, <value> means you must fill it in and [value] means you can leave it out. All 465 commands are on the Commands page.
Dashboard
Sign in with Discord on the dashboard. You will see the servers you share with the bot. You can manage a server if you own it, or have Administrator or Manage Server there.
Most features can be set up from the dashboard instead of typing commands. Changes save on their own and the bot uses them straight away.
Permissions
The invite link asks for Administrator so every feature works without extra setup. If you give it fewer permissions, open Settings in the dashboard: the permission check shows what is missing and which feature needs it.
Move the Agni role to the top of the role list (Server Settings → Roles). Discord only lets a bot ban, kick or change roles of members below its own role, so anti-nuke and moderation need this.
How security works
Security. No compromise. Five layers, in the order they act.
Agni doesn't wait to notice damage. Discord writes every protected action to the server's audit log, and Agni receives each entry live, so it knows who did what to which channel, role or member within milliseconds. This is what a nuke looks like:
0 s
A hacked admin account deletes #general.
+ milliseconds
Discord's live audit log tells Agni who did it.
+ milliseconds
Not trusted → banned (or your chosen punishment).
+ ~1 s
#general is rebuilt with its permissions and category.
+ seconds
The log channel gets the full report; Agni keeps watching.
1. Watch everything, live
Agni reads Discord's audit log the moment an entry is written, so it knows who did what without guessing.
- Every protected action (deletes, bans, kicks, role and permission changes, webhooks, bots, server settings) arrives as a live audit-log entry. Agni matches it to the exact channel, role or member it touched.
- During a big attack Discord can fall seconds behind: Agni waits for the entry, and asks Discord's API as well while an attack is going on, so a lagging nuke isn't missed.
- If Agni was restarting, it reads what happened while it was away (up to 30 minutes back) the moment it is online again.
2. Trust only who you choose
The server owner, Extra Owners and members you whitelist for an action. Everyone else, admins included, is checked.
- Trust is per action: someone can be trusted to ban but not to delete channels.
- Roles that make people trusted (Extra Owner roles, whitelisted roles) can only be handed out by the owner or an Extra Owner. Anyone else who gives one has it taken back and is punished.
- Only the server owner chooses the Extra Owners.
3. Stop the attacker first
Ban, kick, timeout, jail or strip roles, your choice. If Discord refuses the softer one, Agni goes one step harder.
- The punishment comes before any repair, so the attacker can't keep going while the server is being fixed.
- Timeout fails on an Administrator? Agni removes their roles. That fails too? Ban. A nuking bot is always banned.
- A short DM can tell them why, without ever slowing the punishment down (at most one second).
4. Undo the damage
Channels, roles, permissions, members, nicknames, emojis and server settings come back on their own.
- Deleted channels and roles are rebuilt with their permissions, position and category; a role is given back to everyone who had it.
- Kicked and banned members are unbanned and brought back (members who verified on the web rejoin by themselves), with their roles.
- Hourly backups (and a fresh one after every change) mean even what was deleted while Agni was offline is rebuilt.
5. Close the side doors
Nobody can use Agni's own commands or dashboard to do what Anti-Nuke would stop.
- Actions done by Agni don't show the moderator in the audit log, so Agni's ban, kick, role delete and emoji commands follow the same trust as doing it by hand.
- Auto roles, reaction roles, custom roles and every other role Agni hands out can't be a staff role, or one above your own, unless you are the owner or an Extra Owner.
- Security pages on the dashboard open for the owner and Extra Owners only.
Everything it stops
Nukes
- Mass channel / role delete
- Mass ban, kick and prune
- Channel and role creation spam
- Permission overwrites (hiding channels, @everyone powers)
- Dangerous roles handed out
- Admin permissions added to a role
- Agni's own role being stripped
Sneaky moves
- Stealing a trusted (Extra Owner / whitelisted) role
- Timing out the staff before a nuke
- Mass renaming members
- Vanity link and server settings changes
- Switching off Discord's AutoMod rules
- Malicious bots, webhooks and integrations
- Leaked webhook links flooding a channel
Raids & spam
- Raid joins (invites paused, raid mode)
- Alt and throwaway accounts
- Ban evasion
- Copy-paste raids from many accounts
- Spam, repeats and walls of text
- @everyone, mention and emoji floods
- Hacked accounts (honeypot channel)
Scams & bad words
- Links, with or without https://
- Hidden invites (dsc.gg, d i s c o r d . g g)
- Blocked words spelled to dodge filters
- Edited messages and forwarded messages
- Shouting in caps
- Scam links in tickets you lock down
Trust
Who Anti-Nuke leaves alone, and how that can't be abused.
- Server owner
- Always trusted. Only the owner chooses Extra Owners.
- Extra Owners
- A member or a role you pick (
>extraowner, or Dashboard → Security → Extra Owners). Trusted for everything, and the only people besides you who can open the Security pages. - Whitelist
- Trust for one action at a time: bans, kicks, channel deletes, role edits… (
>whitelist, or per module on the Anti-Nuke page). Whitelist people for what they need, nothing more. - Everyone else
- Checked, including Administrators and other bots. A bot that nukes is always banned.
- Trusted roles are guarded
- Handing out an Extra Owner role or a whitelisted role makes someone trusted, so only the owner or an Extra Owner may do it. Anyone else who does has the role taken back and is punished.
Punishments
Chosen per server, and per module if you like.
- Ban (default)
- The attacker is gone and can't come back.
- Kick
- Removed, can rejoin. If Discord refuses, Agni bans instead.
- Timeout
- Silenced. Discord can't time out an Administrator, so then their roles are removed, and if that fails too, they are banned.
- Strip roles
- Every role below Agni's is taken away.
- Warn
- Recorded in Warnings & Cases. A warning ladder can mute, kick or ban at a count you choose.
The punishment always comes before the repair, never twice for the same attack, and a DM explaining why never delays it by more than a second.
Recovery
Auto Recovery, backups and Member Restore: the damage undone.
- Channels
- Rebuilt with their type, topic, permissions, position and category. Features that used the old channel (tickets, logs, welcome…) move to the new one.
- Roles
- Rebuilt with their permissions and colour, given back to every member who had them, with their channel permissions.
- Members
- Banned members are unbanned; kicked and banned members who verified on the web rejoin by themselves, with their roles.
- Edits
- Role permissions, channel permissions, nicknames, timeouts on staff, server name, icon, vanity link, verification level and other settings are put back.
- Emojis & stickers
- Uploaded again after a mass delete.
- Backups
- Taken every hour and a few minutes after channels or roles change. After a restart, whatever an untrusted member deleted while Agni was offline is rebuilt from the backup.
Something deleted by you or a trusted member is never brought back: that was on purpose.
Join Guard
Raids, alts and ban evasion, at the door.
Every member who joins gets a risk score from what Discord shows about the account: how new it is, a default avatar, an auto-made name, and the same name as someone banned here recently. At or over your limit, they are logged, given a role of your choice (Join Guard's own), timed out, kicked or banned.
Too many joins in a short time turns raid mode on: invites are paused, flagged joiners get the raid action, and you can choose to treat every new account (or everyone) as a raider until it ends.
Dashboard → Security → Join Guard. Start with "Log only" for a few days to see the scores.
Jail & bail
A punishment between a timeout and a ban: roles kept, everything hidden, a way back.
A jailed member gets the Arrested role and loses every other role (kept to give back). Every channel is hidden from them except the 🔒 𝐂𝐄𝐍𝐓𝐑𝐀𝐋 𝐉𝐀𝐈𝐋 category: a chat, a bail channel with an Apply for bail button, and a bail-requests forum only the wardens see. It is built (and rebuilt if deleted) by itself the first time someone is jailed.
- Jail
- Server owner and Extra Owners only (everyone else can use the case commands). /jail or >jail @member [1h30m] [reason]. Without a time a panel asks: 10 minutes, 1 hour, 6 hours, 1 day, 7 days, permanent or your own. Time up: they're let out with their roles back. Anti-Nuke, Automod, Honeypot and User Reports can jail too (punishment “Jail”).
- Bail
- The member writes a reason (in Discord or on the dashboard). One request at a time. Wardens press Approve or Reject on the post; approving asks how long the bail lasts (1, 3, 7 or 30 days, lifetime, or a free release) and gives the On Bail role for that time. Either way they get a DM and the post is deleted.
- Wardens
- The server owner, Extra Owners, and the members or roles they pick (>jail wardens or Security → Jail). Giving back staff roles still needs the owner or an Extra Owner.
- Case numbers
- Every arrest gets a case number, the same in every server (#1001, #1002 …). A server only finds its own cases.
- Records
- >jailview: the server's card and every jailed member (10 a page); a member's card with their cases; >caseview <number> for one case. /jailview and /caseview too.
- Your cases
- /mycases (or >mycases) in a server: your cases there, 10 a page, with every detail. Dashboard → User → Cases: your cases in every server. Apply for bail there, or ask a server to clear a finished case: its staff decide.
- Leaving doesn't help
- Rejoining brings back the same case, the time left and the On Bail role.
Dashboard → Security → Jail: Central Jail, wardens, who's in (release), clear requests, every case with search, and Clear case.
Automod filters
What each filter catches, and the tricks it sees through.
- Anti spam
- Fast messages, the same text again and again, walls of text, and the same message from many new accounts (a raid).
- Anti link
- Links with or without https://. GIFs, Spotify, link channels, the song-request channel and tickets that allow links are left alone.
- Anti invite
- Discord invites, including dsc.gg and invites hidden with spaces, look-alike dots or invisible characters.
- Mass mention / emoji spam
- Counted over a few seconds, so a flood split into small messages is still caught; @everyone and @here count.
- Anti caps
- Shouting, measured on letters only, so padding with spaces or emojis doesn't help.
- Blocked words
- Your list, caught even as s c a m, 5c4m, 𝐬𝐜𝐚𝐦 or with accents.
- Honeypot
- A trap channel nobody should write in. A hacked account that spams every channel writes there too, and is muted, kicked or banned, its recent messages removed everywhere.
- Editing a clean message into a scam
- Checked again when edited.
- Forwarding a scam instead of typing it
- The forwarded text is checked too.
- s c a m, 5c4m, 𝐬𝐜𝐚𝐦, scam
- Spaces, leetspeak, fancy fonts and invisible characters are undone first.
- google.com without https://
- Bare links count as links.
- Splitting a ping or emoji flood over messages
- Counted over a few seconds, not per message.
- Many new accounts posting the same text
- Treated as a raid: all removed and punished.
Locked side doors
Agni can't be used to do what Anti-Nuke stops.
When Agni bans, deletes a role or gives a role, the audit log shows Agni, not the moderator who asked. So with Anti-Nuke on:
- Agni's ban, kick, unban, role delete and emoji delete commands need the same trust as doing it by hand.
- Auto roles, reaction and self roles, custom roles, level rewards and other roles Agni gives can't be a staff role, a trusted role or one above your own, unless you are the owner or an Extra Owner.
- The warning ladder never kicks or bans the owner or an Extra Owner, and its kick / ban steps can only be changed by them.
- The Security pages and tools (Anti-Nuke, Automod, Verification, Join Guard, Recovery, mass role / nickname / message tools) open for the owner and Extra Owners only.
Checklist
The setup everything depends on.
- Put Agni's role at the very top. Discord only lets a bot act on members and roles below its own role. This is the one setting everything depends on.
- Turn on Anti-Nuke and Automod. Dashboard → Security. Every module is on by default; switch off only what you don't want.
- Keep trust small. Few Extra Owners, and whitelist people only for what they need (for example bans, not channel deletes).
- Pick a log channel. Every punishment, rebuild and raid alert is posted there, so you always know what happened.
- Turn on 2FA. For the owner and the staff. Many nukes start with a stolen admin account.
- Turn on Join Guard. Start with 'Log only' for a few days, then pick a stronger action.
What no bot can do: act on someone whose highest role is above its own, stop the server owner's own account, or react before the first action happens. That first action is undone; the rest never happen.
Anti-Nuke
Watches for mass bans, kicks, channel and role deletes, and punishes whoever did it. Trusted staff can be whitelisted.
In the dashboard: Anti-Nuke.
>antinuke enable|disableTurn anti-nuke on or off. Server owner only.>antinukeconfigOpen the panel to pick which actions anti-nuke watches.>whitelist [member]Let a trusted member do certain actions without being punished.>extraowner set|reset|view [member]Add a second owner who can manage anti-nuke and the whitelist.>emergencysituationStrip dangerous permissions from every emergency role right now.
Automod & Verification
Removes spam, invite links, caps and mass mentions, blocks the words you pick, and makes new members verify.
In the dashboard: Automod, Verification.
>automod enableTurn on automod: spam, links, invites, caps, mass mentions.>automod configPick which automod filters are on.>automod punishmentPick what happens to members who break the rules.>blacklistword add <word>Block a word in chat.>verification setupMake new members verify before they can see the server.
Moderation
The everyday tools: ban, mute, warn, clean up messages and lock channels.
>ban <user> [reason]Ban a member, with an optional reason.>mute <user> [time] [reason]Time out a member for a while.>warn <user> [reason]Warn a member.>clear <amount|member> [amount]Delete recent messages, or recent messages from one member.>lock [channel]Stop members sending messages in a channel.>snipeShow the last deleted message in this channel.
Music
Plays songs and playlists in voice, with a queue, loop and audio effects.
>play <query>Play a song or playlist by name or link.>skipSkip to the next song.>queueShow what's coming up.>loop [mode]Repeat the song or the queue.>filter enableAdd an audio effect: nightcore, bassboost, vaporwave, karaoke and more.
Voice Rooms
Join one channel to get your own voice room. The owner can lock it, rename it or set a limit.
In the dashboard: Temp VC, Voice Role.
>tempvcsetup [user_limit]Create a join-to-create channel. Joining it makes a voice room for you.>tempvcconfigChange the room name, size limit and control buttons.>voice lockStop anyone else joining your voice channel.>voice moveall <channel>Move everyone to another voice channel.
Leveling
Members earn XP for chatting. Give roles at set levels and show a leaderboard.
In the dashboard: Leveling.
>level enableTurn on XP for chatting.>level rank [member]Show your level and XP.>level leaderboardShow the most active members.>level rewards add <level> <role> [remove_previous]Give a role when members reach a level.
Tickets
Members click a button to open a private channel with your team. Close it and keep a transcript.
In the dashboard: Tickets.
>ticket setup <style> <channel>Post a ticket panel members click to open a private channel.>ticket claimTell the team you are handling this ticket.>ticket closeClose this ticket.>ticket transcriptSave a copy of the ticket's messages.
Welcome & Roles
Welcome new members, give them roles automatically, and let them pick their own.
In the dashboard: Welcome, Goodbye, Booster, Join DM, Auto Role, Reaction Roles, Vanity Roles, Custom Roles.
>autorole humans add <role>Give a role to every new member.>createrr <channel> <message_id> <emoji> <role>Give a role when someone reacts to a message.>vanityroles setup <vanity> <role> <channel>Give a role to members who put your server link in their status.>boost channel add <channel>Thank boosters in a channel.
Server Tools
Logs, giveaways, auto-replies, sticky messages and invite tracking.
In the dashboard: Logging, Invites, Auto React, Embed Builder.
>log setupPick the channels for server logs.>gstart <time> <winners> <prize>Start a giveaway: time, number of winners, prize.>autoresponder create <name> <message>Make the bot reply when someone says a trigger word.>stickymessage setup [channel]Keep a message pinned to the bottom of a channel.>invites [member]Show how many people a member invited.
Problems
- The bot doesn't reply
- Check the prefix: mention the bot and it will reply with it. Then check the channel isn't ignored with
>ignore channel show, and that the bot can see and send messages there. - Anti-nuke didn't punish someone
- The bot's role must be above theirs. Also check they aren't whitelisted with
>whitelisted(a whitelist is per action, like bans or channel deletes). The server owner is never punished. - Links or a channel weren't brought back
- Auto Recovery has to be on (Security → Recovery), and the person who deleted it must not be trusted: what you or your Extra Owners delete stays deleted.
- Automod didn't delete a link
- Automod and Anti link must be on, the channel can't be a link channel, the song-request channel or ignored, and the server owner's messages are never filtered (test with another account). If Agni says it can't delete, give it Manage Messages there.
- Music won't play
- Join a voice channel first, then use
>play. The bot needs Connect and Speak there. - I can't see my server in the dashboard
- You need to own it or have Administrator or Manage Server, and the bot has to be in it.
Still stuck? Ask in the support server, or use >report to send a bug report.