Functionalities
Other
$usersWithRoleCount
Returns the amount of users wearing the defined role.

FUNCTION USAGE

  • $usersWithRoleCount[roleID]
  • $usersWithRoleCount[roleID;guildID]

Properties:

roleID - Supply a role ID to return the number of users wearing that role. guildID - The ID of the guild where the role can be found.
Example 1: If the role exists, the function will return the number of users wearing the role.
1
bot.Command({
2
name: "test",
3
code: `
4
$usersWithRoleCount[8239746589712364585]
5
`
6
})
Copied!
Example 2: If the role exists, the function will return the number of users wearing the role.
1
bot.Command({
2
name: "test",
3
code: `
4
$usersWithRoleCount[$findRole[$message[]]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: