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.
Last updated
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.
Last updated
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:
Click the Server Settings icon.
Under Apps in the sidebar, click Integrations. You should see Hues under the section heading Bots and Apps as shown below.
Click Manage which will take you to another user interface as shown here.
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.
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.
Click on the /spotify_embed
a menu should pop up.
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.
We just need to tick the @everyone to and that would allow everyone to use this command without being restricted by the role.