Entity Info
roleHasPerms
$roleHasPerms — Returns whether the role has all specified perms.
Returns whether the role has all specified perms.
Syntax
$roleHasPerms[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
$roleHasPerms[guildID;roleID;perms] → result
Example
$sendMessage[$roleHasPerms[10;71;SendMessages;ViewChannel]]
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.