$hasRole

Determines if a user possesses a specific role within the server. Returns true if the user has the role, and false otherwise.

Usage: $hasRole[userID;roleID]

  • userID: The ID of the user you want to check. You can use $authorID to check the message author.
  • roleID: The ID of the role you want to check for.

Example:

Checks if the message author has the role with the ID 99871..xx.

Member04/23/2025
!!exec $hasRole[$authorid;99871..xx]
Custom Command Bot 04/23/2025
false

Function Difficulty: Easy
Tags: has role