# Role Restrictions

This option allows you to restrict button interaction based on roles. Use the 2 selection menus to choose the appropriate roles. Options:

* Required role to interact
* Exclude a role from interacting

<figure><img src="https://1774748854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmtm6qMMlpBMQxEyJRV1d%2Fuploads%2FnhmNQwwao8f7xZSwlQCv%2Fimage.png?alt=media&#x26;token=45d482e8-4111-4036-ac4c-9db74513b45d" alt=""><figcaption><p>Role Restrictions Options</p></figcaption></figure>

Once you click the `Done` button, the embed is updated. When a member now presses the button, they will get one of the following responses:

<figure><img src="https://1774748854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmtm6qMMlpBMQxEyJRV1d%2Fuploads%2FJwpprdG15qTfC0iF1nsm%2Fimage.png?alt=media&#x26;token=f07c0adb-704f-40d5-ab62-59a7f7e43186" alt=""><figcaption><p>Add Restrictions Response Failed</p></figcaption></figure>

<figure><img src="https://1774748854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmtm6qMMlpBMQxEyJRV1d%2Fuploads%2Fzl73IlSktTjIgwv3flrI%2Fimage.png?alt=media&#x26;token=1583d472-cb98-4199-9119-c7f47673ff0c" alt=""><figcaption><p>Add Restrictions Response Success</p></figcaption></figure>


---

# 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.badbears.io/magic-embed-builder/magic-embed/components/role-restrictions.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.
