$lowestRoleWithPerms

Returns the lowest role in the server that has all the provided permissions.

Usage

$lowestRoleWithPerms[permissions;...]

Parameters

  • permissions (Type: Permission || Flag: Required): The permissions that the role needs to have. (see permissions list). Use ; as a separator for multiple permissions

Example

$nomention
Lowest Role with Administrator:  $roleName[$lowestRoleWithPerms[admin]] ($lowestRoleWithPerms[admin])

example