Skip to content

$usersWithRole

$usersWithRole will return the users who have a specific role.

Usage

$usersWithRole[roleID;guildID?;option?;sep?]

Parameters

FieldTypeDescriptionRequired
roleIDnumberThe role ID.true
guildID?numberThe guild ID.false
option?stringHow to return the users
1. id (default)
2. mention
false
sep?stringSeparator to separate multiple returned values.false

Example(s)

This will return the users of a specific role, make sure to replace roleID:

1
client.command({
2
name: "usersWithRole",
3
code: `
4
$usersWithRole[roleID;$guildID;id;, ]
5
`
6
});