$highestRoleWithPerms

Returns the highest role in the current server that has all the provided permissions.

Syntax

$highestRoleWithPerms[Permissions]

Parameters

  • Permissions (Type: Permission || Flag: Required): The permissions that the role needs to have.

Example

$nomention
Highest Role with Administrator: $roleName[$highestRoleWithPerms[admin]] ($highestRoleWithPerms[admin])

example