Skip to main content

How to Check User's Roles

Prevent users without a specific role to run your command..

tip

Need help? Join our Discord server!


Resources

  • Role Message Mention: <@&ROLEID> (Replace ROLEID with the Role ID)

Video Tutorial

Parts

  • 0:00 - In this Video
  • 0:14 - Enabling Required Intents
  • 0:58 - Basic Example in a Slash Command
  • 3:40 - Turning it into a Custom Block
  • 5:53 - Using the Custom Block in any Interaction trigger
  • 7:00 - Ending
Video Thumbnail for How to Check User's Roles
This content is hosted on YouTube. By clicking on this section, you agree to YouTube's Privacy Policy.
Note

Leave a like on the video if you've found it helpful! 😄


Written Tutorial