Anti-raid
A raid almost always uses brand-new accounts created in bulk. Anti-raid keeps them out on arrival, or warns your team.
#Open it
Open All settings, Quick settings section, then Anti-raid. This setting is reserved for server administrators.
Anti-raid has two independent protections: new accounts and mass joins.
#New accounts
Tick "Block accounts that are too new", then set:
| Setting | What you choose |
|---|---|
| Minimum account age | In hours, from 1 hour to 1 year. 72 hours (3 days) by default. |
| Action | Kick automatically or Let them join + alert staff. |
| Alert channel | Only with the alert: the channel where the bot warns the team. Without a channel, the join is only noted in the logs. |
- Kick: the account gets a private message explaining why (if their DMs are open), then is kicked.
- Alert: the account joins normally, and your team decides.
#Mass joins
If many members join in a very short time, the server switches to raid mode for a few minutes. Tick "Detect mass joins", then set:
- the number of joins and the time window (10 joins in 30 seconds by default);
- the raid mode duration (10 minutes by default);
- raise Discord verification to the maximum during the raid (verified phone required), then put it back as it was;
- kick accounts that joined during the raid: they get a DM and can come back later;
- the team's alert channel.
During raid mode, the team is warned with the list of the latest joiners. Raid mode stops on its own at the end of the chosen duration.
To raise Discord verification, the bot needs the "Manage Server" permission. To kick, it needs "Kick Members". See Permissions.
#The /raid command
| Command | Effect |
|---|---|
/raid statut | Is raid mode active? Also shows the automatic detection setting. |
/raid debut | Starts raid mode right now, manually. |
/raid fin | Ends raid mode before its scheduled end. |
Reserved for members with "Manage Server".
#Follow what happened
Every kicked or flagged account and every start or end of raid mode appears in the logs, under the "Auto-moderation and anti-raid" category.