# Restricting Commands on a Role-by-Role Basis

Discord allows the owner of the server to make changes to who has access to the slash commands provided by Hues.&#x20;

We'll first need to head over to that user interface:

1. Click the **Server Settings** :gear: icon.
2. Under **Apps** in the sidebar, click **Integrations**. You should see Hues under the section heading **Bots and Apps** as shown below.

<figure><img src="https://3039952342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDPtaREG3CfwgGNSsV6fn%2Fuploads%2Fa86vOJhN5O6QSMo73DXa%2Fimage.png?alt=media&#x26;token=68980151-271f-493d-899a-b67229ae610d" alt=""><figcaption></figcaption></figure>

3. Click **Manage** which will take you to another user interface as shown here.&#x20;

<figure><img src="https://3039952342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDPtaREG3CfwgGNSsV6fn%2Fuploads%2FfoYFaSDC9xX2wEGBY4hS%2Fimage.png?alt=media&#x26;token=774ae3bb-d2c9-4ea9-97ca-174776a58eb3" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If this is your first time, you won't see any of these options ticked on your end. These are pre-ticked and setup for this guide.
{% endhint %}

4. Under **ROLES & MEMBERS** we would change **@everyone** to :x:, and then press **Add Roles or Members** where you would select a role. As shown in the image below, I’ve set it up to allow the **Custom Role** to use the commands.

{% hint style="info" %}
One can set up a leveling bot to assign this role when a user has reached a specific level.
{% endhint %}

<figure><img src="https://3039952342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDPtaREG3CfwgGNSsV6fn%2Fuploads%2FTJeoxBarf62SDh9SNvFr%2Fimage.png?alt=media&#x26;token=83d33732-3096-4497-81d9-6579728f86c3" alt=""><figcaption></figcaption></figure>

5. Setting it up this way effectively restricts all roles and users unless a user has the **Custom Role** role. The only exception is server administrators, who are not subject to these restrictions. So, this means that **spotify\_embed** or any other miscellaneous command can't be used. If we wanted to make any of the non-role related commands usable, we can set an override.
6. Click on the `/spotify_embed`a menu should pop up.

<figure><img src="https://3039952342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDPtaREG3CfwgGNSsV6fn%2Fuploads%2FgLJJX5Z5eKA5ugUObtrM%2Fimage.png?alt=media&#x26;token=73d3861d-3e13-40e8-911e-2132a4e63687" alt=""><figcaption></figcaption></figure>

7. We just need to tick the **@everyone** to :white\_check\_mark: and that would allow everyone to use this command without being restricted by the role.


---

# 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://hues-1.gitbook.io/docs/guides/restricting-commands-on-a-role-by-role-basis.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.
