> For the complete documentation index, see [llms.txt](https://securitybot.gitbook.io/securitybot-knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://securitybot.gitbook.io/securitybot-knowledge-hub/bot-guide/chat-filters/discord-invite-filter.md).

# Discord Invite Filter

{% hint style="info" %}
**Available on all tiers** — Free tier: 10 filtered actions per day, 5 allowlisted invites. Premium: unlimited. [Compare plans →](/securitybot-knowledge-hub/plans-and-pricing/plans-and-pricing.md)
{% endhint %}

SecurityBot’s Invite Filter blocks messages that contain Discord invite links unless the invite has been explicitly approved. This stops users from self-promoting, redirecting members to scam servers, or spamming partner invites without permission.

***

## How to Manage Allowed Invites

### Add or remove a Discord invite

To allow a specific Discord invite, you must provide the **full invite URL**, not just the code.

```bash
/allow_invite [invite URL]
```

Example:

```bash
/allow_invite https://discord.gg/JWy9bSqpYJ 
```

* If the invite is **not already allowed**, it will be added to your allowlist.
* If the invite **is already allowed**, running the same command again will **remove it** from your allowlist.

{% hint style="info" %}
Once an invite to a server has been allowed ALL invites to that server will now be allowed by SecurityBot.
{% endhint %}

***

### View all allowed invites

To see which invites are currently allowed:

```
/chat_filters invite view
```

Select **“Allowed Invites”** from the list in the embed to view the full list of whitelisted Discord links.

***

### Best Practices

* Only allow invites to servers you own, have officially partnered with or know is safe.
* Routinely review your allowed invites using `/chat_filters invite view`.
* Combine this feature with a designated [**shill channel**](/securitybot-knowledge-hub/bot-guide/chat-filters/bypass-settings.md) (using `/settings shill_channel`) to restrict where invite links are posted.
* Monitor flagged or blocked invite attempts through your SecurityBot logs to stay ahead of misuse.

{% hint style="info" %}
Only users with the Admin role or Discord’s Administrator permission can manage allowed invites.
{% endhint %}

***

Next up: Learn how to fine-tune exceptions with [Bypass Settings](/securitybot-knowledge-hub/bot-guide/chat-filters/bypass-settings.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://securitybot.gitbook.io/securitybot-knowledge-hub/bot-guide/chat-filters/discord-invite-filter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
