You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
did u fetch the members before checking cache size? maybe no members were cached so its showing 0. Also u should always use guild.memberCount instead of <RoleManager>.cache.get(message.guild.id).members.size or message.guild.members.cache.size as these methods only shows cached members
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.
A simple workaround is to use
Guild.memberCount
, however this is still a bug and works in 14.11.0.Could be related to:
members
getter #9529Also see: https://discord.com/channels/222078108977594368/937420598383108167/1125273078453256283
Code sample
Versions
[email protected]
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
The text was updated successfully, but these errors were encountered: