$hasAnyRole
$hasAnyRole
will check if the provided user has any of the roles listed in the roles argument.
Usage
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: