Entity Info
roleHasAnyPerms
$roleHasAnyPerms — Returns whether the role has any of the specified perms.
Returns whether the role has any of the specified perms.
Syntax
$roleHasAnyPerms[guildID;roleID;perms]
Parameters
- guildID (id, required) — The guild to pull the role from
- roleID (id, required) — The role to get its perms
- perms (text, required) — The perms to check for
Return Value
- Boolean.
Usage
$roleHasAnyPerms[guildID;roleID;perms] → result
Example
$sendMessage[$roleHasAnyPerms[10;71;BanMembers;SendMessages]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.