> ## Documentation Index
> Fetch the complete documentation index at: https://docs.haunt.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Moderation

> Setup haunt's moderation commands for your server moderators

> [!NOTE]
>
> Haunt's prefix is set to `;` by default.

> [!NOTE]
>
> Use `;prefix set [character]` to change the prefix for your server.

## Setup

To get started use the `setup` command.\


> [!WARNING]
>
> Depending on how many channels you have in the server may take a while.

![](https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/setup.png?fit=max\&auto=format\&n=j_bNo7wXDbMFMIJ_\&q=85\&s=cea3dfa957c25525e2896122ce016263)

After you've used the command you should see 3 new channels and a new role.\

A category named `haunt moderation` and 2 channels named `mod-logs` and `cell`\

A new role named `detained`, this will be for detaining bad actors in your server.

> [!NOTE]
>
> You may change the names of the channel or the role to whatever you like!

## What commands are supported for mod logs?

* `ban`
* `unban`
* `kick`
* `lock`
* `unlock`
* `detain`
* `release`
* `mute`
* `unmute`
* `warn`
* `warn remove`
* `hide`
* `reveal`

![](https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/detain.png?fit=max\&auto=format\&n=j_bNo7wXDbMFMIJ_\&q=85\&s=788e1dbccadf26e7eaf5669ce3090643)

## What else can I do?

You can also use the `setup mute` command for moderation!\


![](https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/setup-mute.png?fit=max\&auto=format\&n=j_bNo7wXDbMFMIJ_\&q=85\&s=f5e6969bc21ca3322ed67523c6c98c4c)

After you've used the command you should see 2 new roles.\

A role named `reaction muted` and another role named `image muted`.

> [!NOTE]
>
> You may also change the names of the roles to whatever you like!

![](https://mintcdn.com/haunt-74016d1b/lyxfNB_DwncuNnq5/images/moderation/mute-reactions.png?fit=max\&auto=format\&n=lyxfNB_DwncuNnq5\&q=85\&s=cc4e55c921db8c6e05b36e1823284b4c)

Upon using the command `mute reactions` for example this will give the member a role.\


![](https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/bleh.png?fit=max\&auto=format\&n=j_bNo7wXDbMFMIJ_\&q=85\&s=dbd7c3ed71c98ef8e4c37b6476dafeb1)

They will no longer be able to react to messages across every channel.\

Problems may occur if the permissions are messed with or if they're an administrator.

## How can I change the message of a moderation command?

To set a custom message for **SOME** of the moderation commands.\

You would have to use the `invoke` command.

> [accordion] Setting a custom response message
>
> As an example I will be using the `invoke release` command.
>
> ```javascript Syntax theme={null}
> ;invoke release (message)
> ```
>
> ```javascript Example theme={null}
> ;invoke release {user} has been released for {reason}
> ```

> [accordion] View your custom message
>
> As an example I will be using the `invoke release view` command.
>
> ```javascript Syntax theme={null}
> ;invoke release view
> ```
>
> ```javascript Example theme={null}
> ;invoke release view
> ```

> [accordion] Clear the custom message
>
> As an example I will be using the `invoke release clear` command.
>
> ```javascript Syntax theme={null}
> ;invoke release clear
> ```
>
> ```javascript Example theme={null}
> ;invoke release clear
> ```

> [accordion] Setting a custom message for dms
>
> As an example I will be using the `invoke release dm` command.\\
>
> The commands for dms follow the same as the regular invoke commands.
>
> ```javascript Syntax theme={null}
> ;invoke release dm (message)
> ```
>
> ```javascript Example theme={null}
> ;invoke release dm hi {user}, you've been released
> ```

![](https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/invoke.png?fit=max\&auto=format\&n=j_bNo7wXDbMFMIJ_\&q=85\&s=81b6ebf7fd0ef22f4203fda9280fa460)

## What commands are supported for invoke?

* `ban`
* `ban dm`
* `unban`
* `kick`
* `kick dm`
* `detain`
* `detain dm`
* `release`
* `release dm`
* `mute`
* `mute dm`
* `unmute`
* `warn`
* `warn dm`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.