Security

Antiraid

Automatically detect potential raids and ongoing raids.


Note:

Slash commands for this page

Set this up in Discord with /configure feature:Anti-raid, or on the dashboard under Security › Antiraid.

Use the slash version of each command below. Prefix commands keep working until March 5, 2027. What is changing

  • ,lockdown joins → /lockdown joins
  • ,antiraid toggle → /configure feature:Anti-raid
  • ,antiraid shutters → /configure feature:Anti-raid
  • ,antiraid state → /configure feature:Anti-raid
  • ,antiraid whitelist → /configure feature:Anti-raid
  • ,antiraid shutters pause → /configure feature:Anti-raid
  • ,antiraid shutters lift → /configure feature:Anti-raid
  • ,security raidscan → @greed security raidscan
  • ,security pinglock → @greed security pinglock

Configuring the antiraid system

Firstly, toggle on antiraid using the ,antiraid toggle on command.

Warning:

Mass-join, account-age and default-avatar checks are free. Username filters, unverified-bot blocking, mass-mention protection and raid shutters require Server Premium. You need Manage Server to configure antiraid. The server owner and whitelisted users are exempt from enforcement.

Setting up antiraid modules

Raid shutters

You can also manage shutters from Security → Anti-raid → Raid shutters in the dashboard.

With Server Premium, greed can pause invites when a mass-join raid is detected. You can also pause direct messages between server members and temporarily raise the server's verification level to High.

Enable antiraid and its mass-join check first, then run:

,antiraid shutters on --duration 2h --dms on --verification on

Choose a duration from 5 minutes to 24 hours. Use --dms off or --verification off to leave either option out. Run ,antiraid shutters to see your settings.

  • ,antiraid shutters pause 1h: Pause invites immediately using your shutter settings.
  • ,antiraid shutters lift: Reopen invites and DMs early. This remains available if Premium expires.
  • ,antiraid shutters off: Stop automatic shutters for future raids.

When the pause ends, greed restores the previous verification level if it is still High. A verification change made by an administrator during the pause is left in place.

Antiraid consists of several modules that monitor join events to prevent raids.

Note:

Antiraid tracks join events with customizable thresholds and actions. The massmention module for raids uses a configurable timeframe to detect patterns. Use ,antiraid state to manually toggle lockdown when a raid is detected.

Available Modules

Detects when a large number of members join your server in a short period.

  • Usage:
    ,antiraid massjoin (status) [flags]

Detects members joining with the default Discord profile picture.

  • Usage:
    ,antiraid avatar (status) [flags]

Detects members joining with accounts created very recently.

  • Threshold: Age in days (e.g., 3 days).
  • Usage:
    ,antiraid age (status) [flags]

Detects and prevents mass mention raids from incoming members.

  • Usage:
    ,antiraid massmention [status] [flags]
Tip:

This module is part of greed premium.

Prevents unverified bots from joining your server.

  • Usage:
    ,antiraid unverifiedbots [status] [flags]
Tip:

This module is part of greed premium.

Filters members joining with specific username patterns.

  • Usage:
    ,antiraid username
Tip:

This module is part of greed premium.

Module Configuration

You can configure each module using the following commands:

,antiraid module [status]
,antiraid (module) threshold (value)
,antiraid (module) (status) (action)

Username Patterns

Tip:

Username patterns are part of greed premium.

You can manage username patterns to block specific types of accounts from joining.

,antiraid username add (pattern)
,antiraid username remove (pattern)
,antiraid username list
,antiraid username action (kick/ban)

Mass Mention

Configure thresholds for mass mention detection.

,antiraid (module) [status]

Unverified Bots

Set actions for unverified bots trying to join.

,antiraid unverifiedbots [status] [flags]

Raid pattern scan | free

,security raidscan on looks at everyone who joined in the last 10 minutes. When 5 or more new accounts (under 90 days old) were created within 6 hours of each other, or share a name pattern, greed treats them as one raid and applies your mass-join punishment to all of them, then pauses invites if raid shutters are on. Antiraid must be on. You can also turn it on in Security → Anti-nuke → Advanced or (server owner) in /configure → Anti-nuke → Limits.

Ping raids | free

,security pinglock 50 locks every channel when members send 50 mentions within 30 seconds. Use off to turn it off.

Join lock | free

During a raid, ,lockdown joins kick or ,lockdown joins ban removes everyone who joins. Add a duration such as ,lockdown joins kick 30m to turn it off automatically, or run ,lockdown joins off. Whitelisted users can still join. Requires Manage Server. You can also start and stop it (without a duration) in Security → Anti-nuke → Advanced, and the server owner can set it in /configure → Anti-nuke → Limits.

Lockdown State

If your server is under an active raid, you can manually toggle lockdown mode to quickly restrict access.

,antiraid state

Whitelisting

You can whitelist specific users from being affected by antiraid.

,antiraid whitelist [user]

To remove an antiraid whitelisted , you simply use the same ,antiraid whitelist command.

,antiraid whitelist [user]

Using the dashboard assistant

You can change antiraid by chatting with the assistant in the dashboard. Ask something like "kick accounts younger than 7 days" or "lock channels when 15 people join at once", and it shows you the exact before and after to approve first.

Turn antiraid on or off, change the mass join, avatar, account age, mass mention and unverified bot filters, add or remove username patterns, add or remove members on the antiraid whitelist, and show you the current settings.

Only the server owner or an antinuke admin. Anyone else is refused and cannot see the settings.

Mass mention, unverified bot and username pattern filters need Server Premium, just like the commands. Regex patterns that are invalid or too slow to run are refused. The assistant will not help test, probe or get around antiraid.