-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Description
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.sizeVersions
[email protected]- Node.js 18.16.1
- Ubuntu 22.04 LTS
Issue priority
Low (slightly annoying)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds