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

# Reaction Roles

> Create self assignable roles with reactions in your server

<Note>Haunt's prefix is set to `;` by default.</Note>
<Info>Use `;prefix set [character]` to change the prefix for your server.</Info>

## Create a Reaction Role

<Warning>You cannot assign roles that have **dangerous permissions**.</Warning>

<p>
  Start by using the `reactions create` command.<br />
  You can provide the **id** or **url** of the message you want Haunt to use and react to.
</p>

<CodeGroup>
  ```javascript Syntax theme={null}
  ;reactions create (message) (emoji) (role)
  ```

  ```javascript Example theme={null}
  ;reactions create 1377039379180290189 🌸 @Flower
  ```

  ```javascript Example with Message Link theme={null}
  ;reactions create https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 🌸 @Flower
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/E65nyq0yyf09LUJ7/images/configuration/reactions/create.png?fit=max&auto=format&n=E65nyq0yyf09LUJ7&q=85&s=148beeac6704e057c95f2beaa9aab83d" width="743" height="359" data-path="images/configuration/reactions/create.png" />
</Frame>

<p>
  If Haunt has the correct permissions to **view the channel** and **react to messages**.<br />
  The message that you provided should have the emoji reacted onto it.
</p>

## Delete a Reaction Role

<p>
  Start by using the `reactions delete` command.<br />
  You can use either a **message Id** or a **message link** to provide the message.
</p>

<CodeGroup>
  ```javascript Syntax theme={null}
  ;reactions delete (message) (emoji)
  ```

  ```javascript Example theme={null}
  ;reactions delete 1439683697900126208 🌸
  ```

  ```javascript Example with Message Link theme={null}
  ;reactions delete https://discord.com/channels/1363969049700073663/1377425161061400637/1439683697900126208 🌸
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/E65nyq0yyf09LUJ7/images/configuration/reactions/delete.png?fit=max&auto=format&n=E65nyq0yyf09LUJ7&q=85&s=3d86635bb0d214bebbb231e89e96f4ea" width="507" height="173" data-path="images/configuration/reactions/delete.png" />
</Frame>

## Update a Reaction Role

<p>
  There are 2 subcommands to **update** a **reaction role**.<br />
  You can use the `reactions update role` command to update the role given from a reaction role.<br />
  Or you can use the `reactions update message` command to move a reaction role to another message.
</p>

### Updating the Role

<p>
  Start by using the `reactions update role` command.<br />
  You can use either a **message Id** or a **message link** to provide the message.
</p>

<CodeGroup>
  ```javascript Syntax theme={null}
  ;reactions update role (message) (emoji) (role)
  ```

  ```javascript Example theme={null}
  ;reactions update role 1439683697900126208 🌸 @Bloom
  ```

  ```javascript Example with Message Link theme={null}
  ;reactions update role https://discord.com/channels/1363969049700073663/1377425161061400637/1439683697900126208 🌸 @Bloom
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/E65nyq0yyf09LUJ7/images/configuration/reactions/update-role.png?fit=max&auto=format&n=E65nyq0yyf09LUJ7&q=85&s=050668996a7f12d48489ac0ce292899a" width="521" height="169" data-path="images/configuration/reactions/update-role.png" />
</Frame>

### Updating the Message

<p>
  Start by using the `reactions update role` command.<br />
  You can use either a **message Id** or a **message link** to provide the message.
</p>

<CodeGroup>
  ```javascript Syntax theme={null}
  ;reactions update role (message) (emoji) (new message)
  ```

  ```javascript Example theme={null}
  ;reactions update message 1377039351112007790 🌸 1476041691520827534
  ```

  ```javascript Example with Message Link theme={null}
  ;reactions update role https://discord.com/channels/1363969049700073663/1373299901122740266/1377039351112007790 🌸 https://discord.com/channels/1363969049700073663/1380285128751710259/1476041691520827534
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/E65nyq0yyf09LUJ7/images/configuration/reactions/update-message.png?fit=max&auto=format&n=E65nyq0yyf09LUJ7&q=85&s=f45b7bb380effce49f72a80e55727e1b" width="559" height="168" data-path="images/configuration/reactions/update-message.png" />
</Frame>
