Safety
Raid protection
Spots join raids and acts on them: alerts staff, raises verification, pauses invites, times out or kicks raiders.
On this page
Raid protection watches for join raids, when a flood of accounts joins at once, usually to spam, and acts on them before they can do much. Its anti-nuke part stops anyone who suddenly starts wrecking the server. It alerts your staff and, if you want, raises the server's verification level, pauses invites, locks channels and times out or kicks the accounts that joined. When things calm down it puts everything back by itself. Raid protection starts off.
Set it up
- Open the dashboard, pick your server, then Modules, and turn on Raid protection.
- Under Join raids, pick how sensitive it should be. Normal suits most servers; use Relaxed for big servers that get lots of joins at once, and Strict for small ones.
- Under During a raid, choose what Keystone does while raid mode lasts.
- If you want, turn on Anti-nuke (it stays off otherwise) and pick trusted roles.
- Under Alerts, pick the channel for alerts (your mod log channel if you leave it) and a role to ping.
- Click Save.
How it works
Spotting a raid
Keystone counts members joining. Raid mode starts when too many join within a few seconds, or when too many brand-new accounts (younger than 7 days, or what you pick) join:
| Preset | Joins | or new accounts | within |
|---|---|---|---|
| Relaxed | 20 | 10 | 10 seconds |
| Normal | 10 | 6 | 10 seconds |
| Strict | 6 | 3 | 15 seconds |
Bots joining don't count.
During a raid
As soon as raid mode starts, staff get an alert listing what happened and what Keystone did, with an End raid button. Depending on your settings, Keystone also:
- Raises the verification level to High, so new members have to wait 10 minutes before they can talk.
- Pauses invites, so nobody new can join with an invite link.
- Locks down channels: the channels picked under Moderation → Lockdown, the same as
/lockdown start. - Times out (for 24 hours) or kicks every account that joins during the raid, including the ones that set it off.
Timeouts and kicks from a raid don't each get a case: the alert counts them instead, so a big raid doesn't flood your mod log.
Ending a raid
Raid mode ends by itself once joins slow down for 10 minutes (or what you pick). Staff can end it early with /raid end or the End raid button. Either way, Keystone puts the verification level back, resumes invites and unlocks the channels it locked, and the alert shows how long the raid lasted and how many accounts joined. /raid status shows whether a raid is going on.
Anti-nuke
A "nuke" is someone, often a compromised staff account or a rogue bot, deleting channels and roles or banning everyone as fast as they can. With Anti-nuke on, Keystone watches the audit log and counts these per person:
- channels deleted
- roles deleted
- members banned or kicked
- webhooks created
- roles given dangerous permissions (Administrator, Manage Server, Manage Roles, Manage Channels, Manage Webhooks, Ban or Kick Members, Mention @everyone)
When someone reaches the limit (5 actions within 30 seconds by default), Keystone takes away all the roles it can (or kicks or bans them, if you choose), kicks bots outright, posts an alert and DMs the server owner. Staff are included: that's the point. The server owner and Keystone are never stopped, and neither are your trusted roles and trusted people and bots, so add a backup bot there. Keystone can only act on someone whose highest role is below its own, so move its role near the top.
Permissions
Keystone needs Manage Server to raise the verification level and pause invites, Timeout Members or Kick Members to act on raiders, and Manage Roles to lock channels. Anti-nuke needs View Audit Log, Manage Roles and Kick Members (and Ban Members if it bans), with Keystone's role near the top. To post alerts it needs View Channel, Send Messages and Embed Links in the alert channel.
/raid needs Manage Server by default. Change that with Edit access on the Commands page.
Commands
<required> and [optional] show what each one takes. Server managers can turn any command off, or change who can use it, on the dashboard's Commands page.
/raid statusShow whether a raid is going on.
/raid endEnd the raid and undo what Keystone changed for it.
Every command in one place: command reference.
Troubleshooting
Raid mode started but the verification level didn't change
Keystone needs Manage Server. The alert says so when it's missing. Servers that added Keystone before raid protection existed may need to give its role that permission in Server Settings → Roles.
Raid mode starts when it shouldn't
Pick a less sensitive preset under Join raids. Events, giveaways and big invites can bring lots of real people at once.
Anti-nuke didn't stop someone
Check that Keystone has View Audit Log and that its role is above theirs. Trusted roles, trusted people and the server owner are never stopped.
Timeouts or kicks didn't happen for some accounts
Keystone can only act on members whose highest role is below its own. Accounts that left before Keystone got to them can't be acted on.