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

# Button Roles

> Create self assignable roles with buttons in your server

## Create a Button Role

> [!WARNING]
>
> You cannot assign roles that have **dangerous permissions**.

Start by using the `buttons create` command.\

You can provide the **id**, **url** or reply to the message you want Haunt to use.

```javascript Syntax theme={null}
;buttons create (message) (role) (style) [emoji] [label]
```

```javascript Example theme={null}
;buttons create 1377039379180290189 @Flower blue 🌸 Flowers
```

```javascript Example with Message Link theme={null}
;buttons create https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 @Flower blue 🌸 Flowers
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/create.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=0c38a0f283273285470509f929b097b0)

If everything worked correctly, then you should see that the **message** you provided now has a **button** on it.\


![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/message.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=5e32443adec054d767440610ea0309ff)

## Delete a Button Role

Delete a **button role** with the `buttons delete` command.\

You can provide the **button Id** or the **role** that you used.

```javascript Syntax theme={null}
;buttons delete (message) (button|role)
```

```javascript Example theme={null}
;buttons delete 1377039379180290189 1
```

```javascript Example with Message Link theme={null}
;buttons delete https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 @Flower
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/delete.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=419dd4aef6eb95349c5b110142e87a1a)

## View every Button Role

There are 2 variants of this command.\

If you provide a **message** then you'll see the buttons under that message.

```javascript Syntax theme={null}
;buttons view [message]
```

```javascript Example theme={null}
;buttons view https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189
```

If you choose not to provide a **message** then it'll look like this.

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/view.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=e07bd259eefcfbb832f856b4c61d4871)

But if you chose to provide a **message** then you'll get to view the buttons under that message

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/view-message.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=b55474a5be1ff40c1827a3b140102985)

## Clear every Button Role

You can choose to clear every **button role** from a **message** or from the **entire server**.

```javascript Syntax theme={null}
;buttons clear [message]
```

```javascript Example theme={null}
;buttons clear https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/clear.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=7e6c093e86f94933ac70bd53a19a57c5)

## Update a Button Role

There are currently **5** subcommands for **updating** the features of a **button role**.\

Below are the **guides** to update a **button role** in the server.

### Update a Button Label

```javascript Syntax theme={null}
;buttons update label (message) (button) (label)
```

```javascript Example theme={null}
;buttons update label https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 1 Blooming
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/update-label.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=e08eaea5beb14eb4691fddf3e1edb8b5)

### Update a Button Style

```javascript Syntax theme={null}
;buttons update style (message) (button) (style)
```

```javascript Example theme={null}
;buttons update style https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 1 Red
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/update-style.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=c97b290b7e515a7ae013b3a58132034b)

### Update a Button emoji

```javascript Syntax theme={null}
;buttons update emoji (message) (button) (emoji)
```

```javascript Example theme={null}
;buttons update emoji https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 1 🌺
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/update-emoji.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=5b387483f2fbdf05e05e7e303ebdff51)

### Update the role in a Button Role

```javascript Syntax theme={null}
;buttons update role (message) (button) (role)
```

```javascript Example theme={null}
;buttons update role https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 1 @Blossoms
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/update-role.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=e938d9ee19954e5ba7fbeb5af10e6bc1)

### Move a Button Role to another Message

```javascript Syntax theme={null}
;buttons update message (message) (button) (new message)
```

```javascript Example theme={null}
;buttons update message https://discord.com/channels/1363969049700073663/1373299901122740266/1377039379180290189 1 https://discord.com/channels/1363969049700073663/1376219450545537074/1520630899668947005
```

![](https://mintcdn.com/haunt-74016d1b/csHSSgi2LjzCramD/images/configuration/buttons/update-message.png?fit=max\&auto=format\&n=csHSSgi2LjzCramD\&q=85\&s=9e9358995626f7c7b11a0103325cbbaa)


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