> For the complete documentation index, see [llms.txt](https://discortics.com/llms.txt). A consolidated single-file corpus is available at [llms-full.txt](https://discortics.com/llms-full.txt). Markdown versions of documentation and comparison pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discortics.com/guides/anti-raid.md).

# Anti-Raid

Anti-Raid checks join bursts and individual accounts, alerts your staff, and takes the action you choose.

## Before you begin

- You need **Administrator** to open `/autopilot antiraid`.
- Discortics needs **View Channels**, **Send Messages**, and **Embed Links**, plus **Manage Roles**, **Timeout Members**, **Kick Members**, or **Ban Members** for the actions you choose.
- Keep the Discortics role above the members it may moderate.
- Set a [muted role](/guides/moderation) before you choose Mute.
- Set a modlog channel with `/settings moderation` to receive alerts.

## Set up Anti-Raid

Start with an alert or a reversible action. Move to Kick or Ban once the settings suit your normal joins.

### Dashboard Setup

1. Open **Dashboard → Moderator → AntiRaid**.
2. Set a join-rate limit above your normal join bursts.
3. Choose how to handle new accounts, accounts without avatars, and bots.
4. Save, then watch your modlog during a controlled join test.

Smart Detection, Global Bans, and the temporary whitelist are in `/autopilot antiraid`.

### Discord Command Setup

1. Run `/autopilot antiraid`.
2. Enable Anti-Raid.
3. Open **Smart Detection**.
4. Set the sensitivity, minimum joins, action, and raid-mode duration.
5. Review the join-rate and account checks.
6. Add expected members to **Temp Whitelist** before a planned event.
7. Test with a controlled join.

## Smart Detection

Smart Detection looks at join speed, account age, missing avatars, similar creation times, and similar usernames. If a burst looks legitimate, staff get an alert and no one is punished.

| Setting                | Options                                                    |
| ---------------------- | ---------------------------------------------------------- |
| **Sensitivity**        | `Low` triggers most easily, `High` needs stronger evidence |
| **Min Joins**          | 3 to 100                                                   |
| **Action**             | `None`, `Kick`, `Ban`, `Mute`, or `Timeout`                |
| **Punish Duration**    | Required for Mute and Timeout                              |
| **Raid Mode Duration** | 1 minute to 1 hour after the latest matching join          |
| **Sweep**              | Also applies the action to members from the original burst |

While raid mode is on, each new join gets the action unless the account is ignored or whitelisted.

## Join and account checks

| Check            | What to set                                              | Actions                                     |
| ---------------- | -------------------------------------------------------- | ------------------------------------------- |
| **Join rate**    | `limit/window`, such as `10/60s`                         | Kicks directly when Smart Detection is off  |
| **New accounts** | Minimum account age, such as `7d`                        | `None`, `Kick`, `Ban`, `Mute`, or `Timeout` |
| **No avatar**    | Accounts using Discord's default avatar                  | `None`, `Kick`, `Ban`, `Mute`, or `Timeout` |
| **Bots**         | **Allow All**, **Allow Verified Only**, or **Block All** | `None`, `Kick`, or `Ban`                    |
| **Global Bans**  | Discortics' shared global ban list                       | `None`, `Warn`, `Mute`, `Kick`, or `Ban`    |

**Fancy Names** replaces unsupported decorative characters in new members' nicknames where possible.

> [!NOTE]
> Many real members have a default avatar, so be careful with the **No avatar** check.

## Emergency Protection

Emergency Protection kicks every non-exempt new member for up to 30 minutes; existing members stay, and invites remain open. To stop it early, run `/autopilot antiraid`, open **Emergency Protection**, and turn it off. Add expected members to the temporary whitelist first.

> [!WARNING]
> Emergency Protection doesn't tell real members from raiders. Add expected members to the temporary whitelist first.

## Exceptions

- **Temp Whitelist** bypasses Anti-Raid for one user, from 1 second to 1 day. Select **Add** and send a mention or ID with a duration, such as `@member 1h30m`.
- **Ignored Users** bypass Anti-Raid permanently.

## Prepare for an event

Raise the join limit if the event will exceed your normal rate, and add known attendees to the temporary whitelist. Keep staff near the modlog while members arrive.

## Troubleshooting

**A fast join burst only created an alert.** Join speed is only one signal. Smart Detection alerts staff when the group doesn't look malicious.

**The action wasn't applied.** Check that the Discortics role is above the member and it has the matching permission.

**Restore the defaults.** Run `/autopilot antiraid` and select **Reset**, then **Yes, Reset**. Temporary whitelist entries stay until they expire or you remove them.

Compare plans and capabilities on the [Discord AutoMod & Anti-Raid overview](/features/autopilot).
