Skip to main content

Invite Filter

The invite filter blocks Discord server invite links posted in your server. It supports whitelisting specific guilds and invite codes, and also detects Discord event URLs.

  • Default state: Disabled
  • Default action: DELETE_WARN

How It Works​

When enabled, the invite filter scans messages for Discord invite links in all their common formats (discord.gg/, discord.com/invite/, etc.). Detected invites are checked against the whitelist configuration to determine whether they should be allowed or blocked.

Invites are recognized even when ordinary text appears right before or after them in the same message (for example, "join us discord.gg/abc!"). Such messages are handled by the invite filter and are not mistaken for obfuscated links by the link filter.

Automatic Allowances​

  • Own server invites -- Invites pointing to the server where the message was posted are always allowed. Members can freely share your own server's invite links.

Whitelisting​

Two whitelisting mechanisms are available:

  • Whitelisted guild IDs -- Add the server IDs of partner or affiliated servers. Any invite resolving to one of these servers will be permitted.
  • Allowed invite codes -- Add specific invite codes (e.g., abc123 from discord.gg/abc123) that should always be allowed regardless of which server they belong to.

Event URL Detection​

The invite filter also detects Discord event URLs in the format /events/{guildId}/{eventId}. These are treated the same as standard invite links and are subject to the same whitelist rules.

note

The invite filter also powers detection of hidden invites -- links that redirect to a Discord invite. If you turn the invite filter off, Thrella stops resolving these redirects, so an invite hidden behind a redirect or link shortener will no longer be caught. Other link checks (blocklist, lookalike domains, authorization links, shortener unwrapping) keep running regardless.

Tier Limits​

The number of allowed invites (combined whitelisted guilds and allowed codes) depends on your subscription tier. For current limits, check Dashboard > Billing or visit thrella.com.

Configuration​

  1. Navigate to Dashboard > Security > Invite Filter
  2. Enable the filter
  3. Set the desired filter action
  4. Add any whitelisted guild IDs or allowed invite codes

Format Requirements​

Whitelisted Guild IDs:

  • Must be valid Discord Snowflake IDs (17-20 digits)
  • Example: 123456789012345678

Allowed Invite Codes:

  • Must be alphanumeric and hyphens only
  • Maximum length: 50 characters
  • Example: abc123 (from discord.gg/abc123)

The dashboard validates these formats when you add entries and displays an error if invalid.

For most communities, start with the default DELETE_WARN action. This removes the invite link and sends the user a DM explaining why their message was deleted. Add partner server IDs to the whitelist so members can share those invites freely.

If your server has a dedicated self-promotion or partner channel, consider using Discord's built-in channel permissions to allow invite links there rather than whitelisting broadly.