# command x button roles

*this example guide helps you create a displayable list for all of your available roles to be triggered by users as needed, as well as the buttons for when users want to add that role to themselves or reset the roles from that menu*

<figure><img src="https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2FEfjR4nXV3QYrEJ2kCW6n%2Fimage.png?alt=media&#x26;token=a5613b28-8ab5-46e3-9873-9bfbacddfece" alt="" width="375"><figcaption><p>user-activated roles menu</p></figcaption></figure>

### ✎ buttonresponder commands

`/buttonresponder add name:addpink reply:{addrole:@pink}{embed} you now have the pink role! label::pink_heart: pink color:grey`\
\
`/buttonresponder add name:addblue reply:{addrole:@blue}{embed} you now have the blue role! label::blue_heart: blue color:grey`\
\
`/buttonresponder add name:addyellow reply:{addrole:@yellow}{embed} you now have the yellow role! label::yellow_heart: yellow color:grey`

`/buttonresponder add name:resetcolors reply:{removerole:@pink}{removerole:@blue}{removerole:@yellow}{embed} okie, i've taken away any color roles you had. label::red_x: reset roles color:red`

### ✎ autoresponder commands

`/autoresponder add trigger:.selfroles reply:{addbutton:addpink}{addbutton:addblue}{addbutton:addyellow}{addbutton:resetcolors}{embed} pick your color . . .` \
`@pink` \
`@blue` \
`@yellow`


---

# Agent Instructions: 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://docs.mimu.bot/autoresponder/resources/autoresponder-examples/manager-moderation-commands/self-assignable-roles/command-x-button-roles.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.
