Kite

Anti-Raid

Pings a role of your choice when several members join at once, and flags suspicious new accounts.

Made byjackappleteamModeration1 event listenerAdded to 19 bots19 active
Runs when
A member joins the server

How it works

Every time a member joins, the bot counts it in a short window (30 seconds by default).

Raid alert: when the count in a window reaches your raid threshold (8 by default), the bot posts one alert in your alert channel. It pings your chosen role and lists the newest joiners. It won't ping again until a window passes without reaching the threshold.

Suspicion score: every new account gets a score from 0 to 6. Account age: under 1 day is 3 points, under your minimum age is 2, under 30 days is 1. Name: an invite or link in the name is 2 points. Avatar: a default avatar is 1 point.

Suspicious accounts: if the score reaches your suspicion threshold (3 by default), the account is posted to the alert channel without a ping.

Bots and the user IDs you list as allowed are ignored. Nothing is kicked, banned, timed out or locked. Your staff decide what to do.

Before you start

  1. 1Turn on the Server Members intent for your bot in the Discord Developer Portal, or Discord won’t tell it when someone joins.
  2. 2Pick a staff-only channel for alerts. The bot needs View Channel, Send Messages and Embed Links there.
  3. 3Make sure the bot can ping your chosen role. Either set the role to “Allow anyone to @mention this role”, or give the bot the “Mention @everyone, @here and All Roles” permission. Otherwise the alert posts but doesn’t ping.
  4. 4Optional: add the Discord IDs of staff alts or trusted accounts to “Allowed user IDs”, separated by commas, so they’re never flagged.

What's inside

Open one to see its blocks and what it costs.

Questions

Use this template

Create your bot in Kite for free, then add Anti-Raid from the Marketplace in your app and change anything you like in the editor.

Get started

Make your own Discord bot with Kite

Add templates or build commands with blocks and AI. Free to start, hosted 24/7.

Get started for free