Role command

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

Did you find this page helpful?