$hasRoles
$hasRoles
check if the provided user has 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 which has the roles. | true |
…roles | number | The roles that will be checked for. | true |
Example(s)
This will return true
when the user has the listed roles: