A Discord anti-raid bot that stops join floods

Voinly's Join guard is a free anti-raid bot for Discord. It checks every new account as it joins, and when too many people join at once it turns on raid mode: it alerts your staff, locks channels and deals with the new joins until the flood is over. Its nuke protection stops a member or bot that starts deleting channels and roles, and puts back what they deleted.

Checks every account the moment it joins

Raids and throwaway accounts tend to look alike: new, no profile picture, a name made of a word and a few digits. Join guard checks for those signs. Checks you leave off are skipped.

  • Minimum account age, up to a year. Accounts created more recently fail.
  • Require a profile picture, so accounts still on Discord's default avatar fail.
  • Auto-generated usernames, such as user_043, user284, 84629 or hello.273.
  • Suspicious names, up to 100 words or patterns with * and ?. They are checked against the username and display name, ignoring case and look-alike letters, so nitro catches freenitro99.
  • Accounts created on chosen days. Raid accounts are often made on the same day, so you can list up to 30 dates.
  • Server tags. Members showing one of up to 50 tags next to their name fail.
  • Unverified bots, for bots without Discord's verified badge.

Any check or all of them, and what happens next

Choose whether a member fails when any check fails, or only when every check you turned on fails. The second is gentler and suits servers where many real members are new to Discord.

Members who fail can be logged only, given a role, timed out, kicked or banned (for a set time or for good). Time out is the default because a check that misfires keeps the real person in your server, where you can let them in. A quarantine role that only sees a verification channel works the same way. Voinly can DM the member first so they know why.

Raid mode when too many people join at once

Set how many joins in how many seconds count as a raid, anywhere from 3 to 500 joins in up to an hour. The default is 10 joins in 15 seconds. When that happens, Voinly turns on raid mode:

  • It posts in your alert channel and pings up to 10 staff roles.
  • New members get the raid action you chose: a role, a timeout, a kick or a ban. It can also act on the members who joined in the flood that set it off.
  • It can raise the server's verification level, up to Highest, and put the old level back afterwards.
  • It locks up to 50 channels so @everyone can't send messages, then restores the previous permissions.
  • It ends by itself after the quiet time you set (up to 24 hours after the last flood of joins), or you can leave it on until someone runs /raid off.

Nuke protection when someone starts deleting

A raid isn't always new accounts. Sometimes a hacked admin account or a bad bot starts deleting channels and roles or banning members. Pick what Voinly does to them under Nuke protection in Join guard and it watches the audit log for one member or bot doing that faster than your limits (by default 4 channels or roles, or 10 bans or kicks, within a minute). Then it:

  • Stops them: it takes their roles away, or kicks or bans them. A bot whose own role can't be taken away is kicked. The alert has a button to give the roles back if it stopped the wrong person.
  • Makes the deleted channels and roles again with their names, places, permissions and settings, and gives each role back to the members who had it.
  • Lifts the bans they made, and can start raid mode as well.
  • Posts an alert, pings your staff roles, and then posts a list of what it put back.

The server owner, Voinly and your trusted list are never stopped, and bans of members who joined in the last day don't count. Messages in a deleted channel can't be brought back: Discord doesn't keep them.

Start and stop raid mode by hand

Moderators can run /raid on with an optional length in minutes and a reason when they see trouble coming, /raid off to end it, and /raid status to see whether raid mode is on and exactly what it changed. During a raid, /massban from the moderation commands bans up to 200 user IDs in one go.

Trusted users and trusted invites

Some people should never be stopped. Add up to 200 trusted users and they skip every check and raid action. Add up to 50 trusted invite codes, for example the one you give a partner community or an event, and anyone who joins with them skips the checks. Bots are skipped too unless you turn on the unverified bots check.

Every action goes to a log channel, and the Activity tab in the dashboard lists who was stopped and why, so you can spot a check that is too strict.

How to set up anti-raid protection in Discord

  1. Invite Voinly to your server

    Add Voinly and pick your server. Join guard uses Moderate Members, Kick Members and Ban Members for its actions, Manage Roles and Manage Channels for roles and locks, and Manage Server to raise the verification level and see which invite someone used.

  2. Open Join guard and pick your checks

    Under New member checks, start with a minimum account age, such as 7 days, and the profile picture check. Add name patterns later, once you've seen what raids on your server look like.

  3. Set the action and raid protection

    Under What happens, keep the timeout or pick a quarantine role. Under Raid protection, set the joins and seconds, an alert channel, the roles to ping and the channels to lock. Make sure Voinly's role is above any role it gives (role order).

  4. Test raid mode

    Run /raid on 5 test, check that the alert was posted and your channels are locked, then run /raid off and confirm everything is back to normal.

Anti-raid bot commands

CommandWhat it doesWho can use it
/raid on [minutes] [reason]Start raid mode by hand: lock down and act on new joins.Moderators
/raid offEnd raid mode and restore permissions.Moderators
/raid statusSee whether raid mode is on and what it changed.Moderators

See every Voinly command

Frequently asked questions

Is the Voinly anti-raid bot free?

Yes. Join checks, raid mode, lockdowns and the Activity tab are free, like every other Voinly module.

How do I stop a Discord raid that is already happening?

Run /raid on to lock your chosen channels and act on new joins, use /purge to clear the spam, and /massban with the raiders' IDs. Run /raid off when it's over and the old permissions come back.

Will Join guard kick real new members?

Only if you tell it to. The default action is a timeout, which keeps people in the server so you can undo it. Trusted invites, trusted users and failing only when every check fails all lower the chance of stopping someone real.

What permissions and role order does anti-raid need?

Moderate Members, Kick Members or Ban Members for the action you pick, Manage Channels to lock channels, and Manage Server to raise the verification level. Voinly's role must be above the roles it gives and the members it acts on.

Does Voinly have anti-nuke protection?

Yes. Join guard's nuke protection stops a member or bot that deletes channels or roles, or bans or kicks members, faster than your limits. It takes their roles away (or kicks or bans them), makes the deleted channels and roles again and lifts their bans. It needs the View Audit Log permission, and Voinly's role has to be above theirs.

What is the difference between Join guard and verification?

Join guard checks accounts automatically as they join and handles floods. Verification asks each person to prove they're human with a button, captcha or math question. Many servers use both.

Add Voinly to your server

Every Voinly module is free. The only paid extras are Custom bot and extra AI moderation scans (see pricing). Add it to Discord and set it up from the dashboard.

Add to Discord