Skip to content

Add memberCount in the Role #2610

@GhostCoder0

Description

@GhostCoder0

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions