Server Helpers
hasAnyRole
$hasAnyRole — Tells whether a member has at least one of several roles
Tells whether a member has at least one of several roles. `$hasRole` only tests one.
Syntax
$hasAnyRole[userID;roleIDs;(separator)]
Parameters
- userID (ID, required) — The member.
- roleIDs (text, required) — The role IDs, joined by the separator.
- separator (text, optional) — Default:
,.
Return Value
trueorfalse.
Usage
$hasAnyRole[1;20,30] → "true"
Important Notes
@everyonecounts as held by every member.- An empty list gives
false.
Example
$sendMessage[$hasAnyRole[1;20,30]]
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.