Functionalities
Other
$roleCount
Returns the total number of roles that are in a guild/server.

FUNCTION USAGE

  • $roleCount
  • $roleCount[]
  • $roleCount[guildID]

Properties:

[] - Leave brackets empty to returns the total number of roles in the current server. Same as no brackets. guildID - Returns the total number of roles in the defined guild.
Bot must be in the server to read the data!

Example 1: returns the total number of roles in the current server.

1
bot.Command({
2
name: "roles",
3
code: `
4
Total roles: $roleCount
5
`
6
})
Copied!

Example 1: returns the ID of the current server owner.

1
bot.Command({
2
name: "roles",
3
code: `
4
Total roles in $serverName[653467456845674567]: $roleCount[653467456845674567]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: