$hasAnyRole
$hasAnyRole
will check if the provided user has any of the roles listed in the roles argument.
Usage
$hasAnyRole[guildID;userID;...roles]
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID | number | ID of the guild where the roles are present in. | true |
userID | number | ID of the user. | true |
…roles | number | The roles that will be checked for. | true |
Example(s)
This will return true
when the user has any of the listed roles:
1client.command({2 name: "hasAnyRole",3 code: `4 $hasAnyRole[$guildID;$authorID;$findRole[Owner];$findRole[Admin]]5 `6});