Role command

how to make a command that count the ammount of users that has a specific role
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Parogo_72
Parogo_722y ago
Fetch the members of the guild using await guild.members.fetch(), and then check role.members.size
Ashura
AshuraOP2y ago
the "role" from role.members.size gotta be changed to the name of the role im checking?
Parogo_72
Parogo_722y ago
No, to the role object
Ashura
AshuraOP2y ago
kk , thx
Want results from more Discord servers?
Add your server