Skip to main content

Configuring the Antiraid System

The antiraid system protects your Discord server against raids, suspicious accounts, and join spam
It includes protection against:
  • Mass join raids
  • Newly created accounts
  • Accounts with default profile pictures
  • Suspicious activity spikes
To start using antiraid, first enable it
antiraid enable
This enables the system with default settings:
  • Minimum Account Age: 3 days
  • Default Avatar Protection: enabled
  • Punishment: ban
  • Mass Join Detection: disabled

Minimum Account Age

This module prevents newly created accounts from joining your server. Accounts younger than the configured age will automatically be punished.
antiraid age (days | on | off)

Options

days
Number of days an account must be old before joining.
on
Enables the age check with the default value (3 days).
off
Disables the age check.

Punishment Type

You can configure what action Omex should take when a suspicious account joins. Available punishments:
  • ban
  • kick
  • jail
antiraid penalty (ban | kick | jail)

Default Avatar Protection

Raid bots often use accounts without a profile picture.
This protection automatically punishes accounts that join without a custom avatar.
antiraid pfp (on | off)

Mass Join Detection

This protection detects when many accounts join within a short period of time. If the join rate exceeds the configured limit, Omex will automatically punish the accounts involved.
antiraid massjoin (on | off) [rate]

Options

rate
Maximum number of joins allowed within 5 seconds before triggering protection.
A safe value is usually between:
3 - 8 joins / 5 seconds

Logging Antiraid Events

You can configure a log channel to track antiraid actions such as bans, kicks, and raid detection.
antiraid logging (channel)
When configured, Omex will log:
  • Mass join detections
  • Account age violations
  • Default avatar punishments
  • Raid protection triggers

Whitelisting Users

Some users (such as staff, bots, or trusted members) may need to bypass antiraid checks. You can whitelist users so they are ignored by the system
antiraid ignore (user)
Running the command again will remove the user from the whitelist.

Viewing Whitelisted Users

To see all users currently bypassing antiraid:
antiraid whitelisted
This will display every whitelisted user in an embed.

Viewing Antiraid Configuration

To see the full configuration for your server:
antiraid status
This shows:
  • Account age protection status
  • Avatar protection status
  • Mass join detection
  • Punishment type
  • Log channel
  • Number of whitelisted users

Disabling Antiraid

If needed, you can completely disable the system.
antiraid off
This removes all configuration and cached settings.