# Moderation Setup

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

## Initial Command

```
[prefix]setjail
```

Running this command will create two things:

1. A #jail-serenity channel
2. A @jail role.

The jailed channel can not be access by users without administrators or users who are jailed. To allow more users to see it, create channel overrides in the channel settings.

<figure><img src="/files/jCYokgZ1WMoKfqm38QjE" alt=""><figcaption></figcaption></figure>

This role should **only** be added to **jailed members**. You should never have to add it manually.

<figure><img src="/files/5n6MCfxGDyP5SIvZOule" alt=""><figcaption></figcaption></figure>

These additions can be utilized by using the `[prefix]jail` command. Using this command will remove all roles from a member (that the bot can manage) and add the jailed role to them. Doing this will only allow them to see the jailed channel.

{% hint style="info" %}
Category overrides will be created for every category **denying** the *View Channel* permission for the jailed role. This is essential for the jail module to function correctly.
{% endhint %}

### How do I unjail someone?

Easy! Use `[prefix]unjail [member]`. All roles will be restored to the member and they will no longer be able to see the jail channel.


---

# 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/get-started/moderation-setup.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.
