Skip to content

$hasAnyRole

$hasAnyRole will check if the provided user has any of the roles listed in the roles argument.

Usage

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

Parameters

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

Example(s)

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

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