Add memberCount in the Role #3306
Unanswered
GhostCoder0
asked this question in
API Feature Requests & Ideas
Replies: 2 comments
-
there's now an endpoint for getting role member counts (and endpoints for getting/setting role members) but bots can't use them yet: |
Beta Was this translation helpful? Give feedback.
0 replies
-
any updates on this? we're running into issues that would really benefit from this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When fetching the roles from a guild, it would be very useful if the role structure had a "memberCount" property, similar to the guild.memberCount property currently exposed.
Why This is Needed
This is needed so we can avoid fetching all members just to know if a role is used or not. Currently, the only way to know how a role is used / who a role is assigned to, is to fetch the members to check what roles are assigned to them.
Alternatives Considered
Although there is a workaround, i.e. fetch members and check their roles individually; It would be softer on the discord servers to avoid fetching members info just to obtain role related information.
Additional Details
This is purely to avoid unnecessary API calls. Thanks for considering it!
Beta Was this translation helpful? Give feedback.
All reactions