Custom Command
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
Member
9/5/2026
!!exec $roleName[$highestRole]
Custom Command
APP
9/5/2026
Admin

Function difficulty: Easy

Tags: Role Highest Role Role Hierarchy

On this page