Server Helpers
botCanManageRole
$botCanManageRole — Tells whether the bot can give or take a role: it must have Manage Roles (or Administrator) and its highest role must be above that role
Tells whether the bot can give or take a role: it must have Manage Roles (or Administrator) and its highest role must be above that role. This is the first…
Syntax
$botCanManageRole[roleID]
Parameters
- roleID (ID, required) — The role.
Return Value
trueorfalse.
Usage
$onlyIf[$botCanManageRole[$roleID[VIP]]==true;Move my role above VIP first.]
Important Notes
- The check is about the hierarchy and Manage Roles, not about roles managed by an integration.
Example
$sendMessage[$onlyIf[$botCanManageRole[$roleID[VIP]]==true;Move my role above VIP first.]]
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.