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