Custom Command
FunctionsRole Functions

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

Member
9/5/2026
!!exec $hasRole[$authorid;99871..xx]
Custom Command
APP
9/5/2026
false

Function Difficulty: Easy

Tags: Has Role

On this page