v5.0.0
$roleMembersCount
Returns the amount of users with given role ID.
This function will return the amount of users who have the given role using the role ID.
Raw usage: $roleMembersCount[Role ID]
Example:
1
bot.command({
2
name: "users",
3
code: `
4
There are $roleMembersCount[773353338854572073] users with mod role in dbd.js
5
`
6
})
Copied!
This count could not be exact, since this data is get from the cache and not the Discord API, this meaning if some user is not cached, the user will not count.
Last modified 1mo ago
Copy link
Edit on GitHub