> ## 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>
<Info>Use `;prefix set [character]` to change the prefix for your server.</Info>

## Setup

<p>
  To get started use the `setup` command.<br />
</p>

<Warning>Depending on how many channels you have in the server may take a while.</Warning>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/setup.png?fit=max&auto=format&n=j_bNo7wXDbMFMIJ_&q=85&s=cea3dfa957c25525e2896122ce016263" width="583" height="202" data-path="images/moderation/setup.png" />
</Frame>

<p>
  After you've used the command you should see 3 new channels and a new role.<br />
  A category named `haunt moderation` and 2 channels named `mod-logs` and `cell`<br />
  A new role named `detained`, this will be for detaining bad actors in your server.
</p>

<Note>You may change the names of the channel or the role to whatever you like!</Note>

## What commands are supported for mod logs?

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

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/detain.png?fit=max&auto=format&n=j_bNo7wXDbMFMIJ_&q=85&s=788e1dbccadf26e7eaf5669ce3090643" width="400" height="226" data-path="images/moderation/detain.png" />
</Frame>

## What else can I do?

<p>
  You can also use the `setup mute` command for moderation!<br />
</p>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/setup-mute.png?fit=max&auto=format&n=j_bNo7wXDbMFMIJ_&q=85&s=f5e6969bc21ca3322ed67523c6c98c4c" width="525" height="197" data-path="images/moderation/setup-mute.png" />
</Frame>

<p>
  After you've used the command you should see 2 new roles.<br />
  A role named `reaction muted` and another role named `image muted`.
</p>

<Note>You may also change the names of the roles to whatever you like!</Note>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/lyxfNB_DwncuNnq5/images/moderation/mute-reactions.png?fit=max&auto=format&n=lyxfNB_DwncuNnq5&q=85&s=cc4e55c921db8c6e05b36e1823284b4c" width="568" height="169" data-path="images/moderation/mute-reactions.png" />
</Frame>

<p>
  Upon using the command `mute reactions` for example this will give the member a role.<br />
</p>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/bleh.png?fit=max&auto=format&n=j_bNo7wXDbMFMIJ_&q=85&s=dbd7c3ed71c98ef8e4c37b6476dafeb1" width="266" height="66" data-path="images/moderation/bleh.png" />
</Frame>

<p>
  They will no longer be able to react to messages across every channel.<br />
  Problems may occur if the permissions are messed with or if they're an administrator.
</p>

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

<p>
  To set a custom message for **SOME** of the moderation commands.<br />
  You would have to use the `invoke` command.
</p>

<AccordionGroup>
  <Accordion title="Setting a custom response message">
    As an example I will be using the `invoke release` command.

    <CodeGroup>
      ```javascript Syntax theme={null}
      ;invoke release (message)
      ```

      ```javascript Example theme={null}
      ;invoke release {user} has been released for {reason}
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="View your custom message">
    As an example I will be using the `invoke release view` command.

    <CodeGroup>
      ```javascript Syntax theme={null}
      ;invoke release view
      ```

      ```javascript Example theme={null}
      ;invoke release view
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Clear the custom message">
    As an example I will be using the `invoke release clear` command.

    <CodeGroup>
      ```javascript Syntax theme={null}
      ;invoke release clear
      ```

      ```javascript Example theme={null}
      ;invoke release clear
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Setting a custom message for dms">
    <p>
      As an example I will be using the `invoke release dm` command.<br />
      The commands for dms follow the same as the regular invoke commands.
    </p>

    <CodeGroup>
      ```javascript Syntax theme={null}
      ;invoke release dm (message)
      ```

      ```javascript Example theme={null}
      ;invoke release dm hi {user}, you've been released
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/j_bNo7wXDbMFMIJ_/images/moderation/invoke.png?fit=max&auto=format&n=j_bNo7wXDbMFMIJ_&q=85&s=81b6ebf7fd0ef22f4203fda9280fa460" width="639" height="360" data-path="images/moderation/invoke.png" />
</Frame>

## 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`
