Skip to content

$hasRoles

$hasRoles check if the provided user has the roles listed in the roles argument.

Usage

$hasRoles[guildID;userID;...roles]

Parameters

FieldTypeDescriptionRequired
guildIDnumberID of the guild where the roles are present in.true
userIDnumberID of the user which has the roles.true
…rolesnumberThe roles that will be checked for.true

Example(s)

This will return true when the user has the listed roles:

1
client.command({
2
name: "hasRoles",
3
code: `
4
$hasRoles[$guildID;$authorID;$findRole[Owner]]
5
`
6
});