$lowestRoleWithPerms

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

Syntax

$lowestRoleWithPerms[Permissions;...]

Parameters

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

Example

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

example