Restricting Commands on a Role-by-Role Basis

You don't just want anyone using custom role commands right? Here is an explanation of how to gate keep the commands for your approved roles.

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

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

  1. Click the Server Settings ⚙️ icon.

  2. Under Apps in the sidebar, click Integrations. You should see Hues under the section heading Bots and Apps as shown below.

  1. Click Manage which will take you to another user interface as shown here.

  1. Under ROLES & MEMBERS we would change @everyone to , 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.

One can set up a leveling bot to assign this role when a user has reached a specific level.

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

  2. Click on the /spotify_embeda menu should pop up.

  1. We just need to tick the @everyone to and that would allow everyone to use this command without being restricted by the role.

Last updated