docsFunctionsRolesZlowestRoleWithPerms

ZlowestRoleWithPerms

Returns the ID of the lowest-position role in the guild that has all of the specified permissions.

Syntax

ZlowestRoleWithPerms{permission;...}

Arguments

NameTypeRequiredDefault
permissionpermissionYes-

Example

ZlowestRoleWithPerms{manageMessages}