FunctionsRole Functions
$highestRole
Retrieves the highest role (in terms of hierarchy) a user has in the current guild.
Usage:
$highestRole[userID] - Returns the highest role of the user with the specified userID.
$highestRole - Returns the highest role of the command executor (the user who triggered the command).
Example:
This example shows how to use $highestRole with $roleName to output the role's name.
!!exec $roleName[$highestRole]Result:
(Assuming the user's highest role is "Admin")
Admin!!exec $roleName[$highestRole]
Admin
Function difficulty: Easy
Tags: Role Highest Role Role Hierarchy