> For the complete documentation index, see [llms.txt](https://accio15.gitbook.io/mr.crown/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://accio15.gitbook.io/mr.crown/set-up/admin-only/role-menus.md).

# Role-Menus

#### What are Role Menus?&#x20;

Find out more [here...](/mr.crown/features/role-menus.md)

## Info

The channel and role are tagged and a *role menu* is sent into the <mark style="background-color:blue;">#Channel</mark> of the admins choosing along with the tagged <mark style="background-color:purple;">@role</mark>.

*An example can be found below.*

{% hint style="warning" %} <mark style="color:orange;">`/Commands`</mark>do not exist for configuring the bot, the [*prefix*](/mr.crown/set-up/admin-only/basic-settings/server-prefix.md) must be used.
{% endhint %}

### Setup:

Navigate to a bot commands channel or any channel and type...

> <mark style="color:orange;">!rolemenu</mark> <mark style="color:red;">\<Channel></mark> <mark style="color:red;">\<Role></mark> <mark style="color:blue;">\<MessageID></mark>

#### Key :

* <mark style="color:red;">`<Channel>`</mark> => Tag a Channel for the dropdown menu to be sent in.
* <mark style="color:red;">`<Role>`</mark> => Tag a Role to be added into the dropdown menu.
* <mark style="color:blue;">`<MessageID>`</mark> => {<mark style="background-color:yellow;">OPTIONAL}</mark> Send a MessageID for the bot to add the menu to that message.

{% hint style="danger" %}
As you've probably noticed <mark style="color:red;">"</mark><mark style="color:blue;">`<MessageID>`</mark><mark style="color:red;">"</mark> is coloured blue, this means it is an {<mark style="background-color:yellow;">OPTIONAL}</mark> argument.

#### Read more [below...](#advanced-method-using-less-than-messageid-greater-than)

{% endhint %}

## Basic method (without Custom Message) :

### Setup :

* Run the following command
* <mark style="color:orange;">`!rolemenu`</mark><mark style="color:red;">`<Channel> <Role>`</mark>
* Repeat the same to add multiple roles, but include a <mark style="color:blue;">`<MessageID>`</mark>
* Copy the <mark style="color:blue;">`<MessageID>`</mark> of the <mark style="color:green;">Role Menu</mark> sent by `Mr. 👑`

![Example without \<MessageID>](/files/4h5996L8NLNE3Hk1fo3I)

* Result after deleting unwanted messages...

![](/files/uqssMvS4kCiiupmK1MYP)

## Advanced Method (using Custom Message) :

### Prerequisites :

* A [Custom Embed or Message](/mr.crown/features/custom-embeds-and-messages.md) sent by `Mr. 👑` should exist.
* If not so, Read more about how to send a custom message/embed [here...](/mr.crown/set-up/admin-only/embeds-and-messages.md)

### Setup :

* Copy the <mark style="color:blue;">`<MessageID>`</mark> of the Custom Message/Embed sent by `Mr. 👑`
* Run the following command replacing <mark style="color:blue;">`<MessageID>`</mark> by simply pasting the ID
* <mark style="color:orange;">`!rolemenu`</mark><mark style="color:red;">`<Channel> <Role>`</mark><mark style="color:blue;">`<MessageID`</mark>
* Repeat the same to add multiple roles.

![](/files/5tfx5FTaAuU5Yly6g7nV)

#### The only difference is that the Advanced method looks a lot nicer.

## Facing an issue?

Feel free to join our [**`Support Server`**](https://discord.gg/UVZKvqQUAW) or create a new issue/discussion over at [**`GitHub`**](https://github.com/Shilish/Mr.crown/issues)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://accio15.gitbook.io/mr.crown/set-up/admin-only/role-menus.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.
