Skip to content

@everyone role contains no members #9684

@GodderE2D

Description

@GodderE2D

Which package is this bug report for?

discord.js

Issue description

In discord.js@dev, the @everyone role contains no members.

To reproduce, simply run the code sample below and observe the number returned.

  • Expected: Should return the guild's member count
  • Actual result: No members are in the Collection, therefore 0 is returned

A simple workaround is to use Guild.memberCount, however this is still a bug and works in 14.11.0.


Could be related to:

Also see: https://discord.com/channels/222078108977594368/937420598383108167/1125273078453256283

Code sample

// The @everyone role id is identical to the guild id
<RoleManager>.cache.get(message.guild.id).members.size

Versions

Issue priority

Low (slightly annoying)

Which partials do you have configured?

No Partials

Which gateway intents are you subscribing to?

Guilds

I have tested this issue on a development release

75d91b5

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