Skip to content

$roleCount

$roleCount will return a guild’s role count.

Usage

$roleCount[guildID?;fetchFirst?]

Parameters

FieldTypeDescriptionRequired
guildID?numberThe ID of the guild.false
fetchFirst?booleanFetch the roles first before returning the count?
1. true
2. false (default)
false

Example(s)

This will return the amount of roles your guild has:

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