# Filter Joins

{% hint style="info" %}
Replace `[prefix]` with your server's prefix.
{% endhint %}

## Filter Joins Enable

Enabling the join filter will punish members who join in a group. To enable the filter, run the following command:

```
[prefix]filter invites enable
```

Once you run that command, serenity will prompt you with an embed confirming it enabled the join filter.

<figure><img src="https://2138524749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKC3Q8gA6avaSjTCmPTwv%2Fuploads%2FpVgkITMRNOd4C4uNn4l6%2Fimage.png?alt=media&#x26;token=2b980914-5e31-4f40-b8d4-debccfb4cf5d" alt=""><figcaption></figcaption></figure>

#### **Already Enabled**

If you get a message saying "Mass join protection is already enabled", it means what it says. The filter for mass joining is already enabled in your server.

## Set the Rate

You can modify the number of allowed members to join per 5 seconds before triggering the join filter.

```
[prefix]filter joins rate [rate]
```

Once you run that command, serenity will set the new rate of allowed joins and send you a confirmation embed.

<figure><img src="https://2138524749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKC3Q8gA6avaSjTCmPTwv%2Fuploads%2FPjlsGKOfFcvY9DLbXohl%2Fimage.png?alt=media&#x26;token=ce38c66d-b352-4ab1-b8d2-f2a301ab12f1" alt=""><figcaption></figcaption></figure>

## Disable the Join Filter

You can disable the join filter by using the following command:

```
[prefix]filter joins disable
```

Running this command will allow members to join at an infinite rate.

Once you have ran this command, serenity will send an embed confirming that the join filter has been disabled.

<figure><img src="https://2138524749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKC3Q8gA6avaSjTCmPTwv%2Fuploads%2FVNb6ga4n0z65bIaOkhSv%2Fimage.png?alt=media&#x26;token=1a6463e6-c271-4ac7-9bf0-f29f7bc4a61d" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.serenity.wtf/security-setup/automod/filter-joins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
