A raid score, not just a counter
Every burst gets a 0–100 score from the join rate, brand-new accounts, missing profile pictures, look-alike usernames and one shared invite link.
A raid is a wave of throwaway accounts joining at once to spam, ping and scare your members away. BotGG’s anti-raid mode recognises the wave from how the accounts look, not just how fast they arrive, then closes the doors until it is quiet again.

@Moderators
Every burst gets a 0–100 score from the join rate, brand-new accounts, missing profile pictures, look-alike usernames and one shared invite link.
Every channel @everyone can write in — or only the ones you pick — is locked, and the previous permission overwrites are restored exactly afterwards.
With Verification enabled, newcomers must solve its image captcha while the raid lasts. Without it, they are timed out or kicked on join, as you choose.
Accounts that share a name pattern or invite, or are new with no avatar, are listed in the alert with “Ban all listed”, “Kick all” and “Dismiss”.
Even outside raids, kick or time out accounts younger than a set number of days or still using the default avatar.
Each new join during the raid pushes the end back; after the calm period you choose, the lockdown lifts. Or end it with /lockdown end.
In the BotGG console open Moderation → Protection → Anti-raid and switch it on. The defaults work for most servers.
Set the classic rule (N joins in T seconds), the raid score threshold and minimum burst size, which signals count and what “young account” means for your server.
Pick channels to lock, the captcha gate or a join action, the minimum account age during a raid, what to do with the raid cluster, and who gets pinged.
When a raid hits, review the listed accounts in Discord and ban or kick them in one click — the console’s incident log can undo a bulk ban later.
Two rules run side by side. The rate rule fires when a set number of members join within a set number of seconds. Smart detection looks at smaller bursts too: if enough accounts join together and their raid score reaches your threshold, it is treated as a raid even when the pace is slower.
Usernames are normalised before they are compared — accents stripped, separators and trailing digits removed, look-alike digits folded — so raider_01, R4ider-02 and raider.03 end up in the same group. Every signal can be switched off if it doesn’t fit your community.
Anti-raid lives next to anti-nuke and phishing link protection in Moderation’s Protection tab, whose Protection score shows what is still missing. If things get out of hand, /panic start locks every channel and pauses invites for the whole server.
For new-member screening on calm days, pair it with Verification — see the Discord verification guide. The anti-nuke guide covers a full server hardening checklist.
Generated from the bot’s real command definitions. Full list on the commands page.
/banuserreason?delete_messages?duration?evidence?Ban a user — add a duration for a temporary ban/caseView, edit or delete a moderation case3 subcommands/case viewnumberShow a case/case editnumberreasonevidence?Change a case's reason (and add evidence links)/case deletenumberDelete a case/kickmemberreason?evidence?Kick a member from the server/lockchannel?reason?Lock a channel: members can no longer send messages/lockdownLock the whole server down during a raid2 subcommands/lockdown startreason?duration?Start a lockdown now/lockdown endEnd the lockdown and restore the channels/modlogmemberA member's moderation history/notemembertextAdd a private moderator note to a member/panicPanic button: lock the whole server right now2 subcommands/panic startquarantine?Lock every channel, pause invites and optionally quarantine a member/panic endEnd the panic: unlock channels and resume invites/purgecountuser?contains?bots?reason?Bulk-delete recent messages in this channel/slowmodedurationchannel?Set or turn off slowmode in a channel/softbanmemberreason?delete_messages?Ban and immediately unban to wipe a member's recent messages/timeoutmemberdurationreason?evidence?Time out a member for a while (e.g. 10m, 2h, 1d)/unbanuser_idreason?Unban a user/unlockchannel?reason?Unlock a locked channel/untimeoutmemberreason?Remove a member's timeout/warnmemberreason?evidence?Warn a member (counts toward automatic escalation)Lock down dangerous permissions, require 2FA, watch the audit log, keep backups and let anti-nuke and anti-raid react in seconds when something goes wrong.
Read the guideA step-by-step Discord verification setup — captcha, rules or questions, account-age gate, manual approval and an automatic anti-raid lockdown.
Read the guideCombine Discord’s native AutoMod with BotGG’s rules, automatic escalation, raid lockdowns, nuke alerts and logs, with settings for small and large servers.
Read the guideA raid is a coordinated wave of accounts — usually new alts or bots — joining a server at the same moment to spam messages, mass-ping members or post shock content. An anti-raid bot spots the wave and locks the server before the spam spreads.
Turn on anti-raid mode with channel lockdown and the captcha gate, enable Verification so newcomers can’t talk until they pass, raise Discord’s own verification level and add AutoMod spam and mention rules. The automod setup guide suggests starting values.
A popular stream can push many real people in at once. That is why the raid score weighs account age, avatars, names and invites, and why the raid cluster defaults to “list only”: you review the accounts and only then ban or kick them.
BotGG stores each channel’s previous overwrites and restores them exactly when the lockdown ends — after the calm period you set, or when someone runs /lockdown end.
Yes. Bulk bans from the alert ask for confirmation first, and the console’s incident log has an Undo action that unbans every account banned in that incident.
Add BotGG for free, then switch features on in the web console.