Skip to content
Server Helpers hasAllRoles

$hasAllRoles — Tells whether a member has every role of a list

Tells whether a member has every role of a list.

Syntax

$hasAllRoles[userID;roleIDs;(separator)]

Parameters

  • userID (ID, required) — The member.
  • roleIDs (text, required) — The role IDs.
  • separator (text, optional) — Default: ,.

Return Value

  • true or false.

Usage

$hasAllRoles[1;20,40] → "true"

Example

$sendMessage[$hasAllRoles[1;20,40]]

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.