Skip to content

$guildRoles

$guildRoles will return all roles of a specific guild.

Usage

$guildRoles[guildID?;type?;sep?;removeManagedRoles?;fetch?]

Parameters

FieldTypeDescriptionRequired
guildID?numberThe ID of the guild.false
type?stringThe option on how to return the roles
1. name (default)
2. id
3. mention
false
sep?stringSeparator to separate multiple returned values.false
removeManagedRoles?booleanRemove Managed Roles from the result.false
fetch?booleanFetch all roles of the guild.false

Example(s)

This will return all roles of your guild:

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