Skip to content

$userRoles

$userRoles will return the roles of a specific user.

Usage

$userRoles[userID?;guildID?;option?;sep?]

Parameters

FieldTypeDescriptionRequired
userID?numberThe user ID.false
guildID?numberThe guild ID.false
option?stringHow to return the roles
1. name (default)
2. id
3. mention
false
sep?stringSeparator to separate multiple returned values.false

Example(s)

This will return your roles:

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