approximateMemberCount no longer showing
Since today Discord API (via discord.js) is not returning approximateMemberCount, which has been working for 5 years just fine.
We just call
await this.client.guilds.fetch(id, { withCounts: true, cache: true }), but now the guild object only gives null for approximateMemberCount.
Nothing on our end has changed, and the issue persists on local and production environments.
Intents are as follows:
Also the bot is only on one server. Updating to d,js 14.24 did not resolve the issue.
What might be the issue here?8 Replies
:method: GuildManager#fetch()
discord.js@14.24.2
Obtains one or multiple guilds from Discord, or the guild cache if it's already available.I did have older until it broke today after years of working, but yeah, now it's upgraded too
But right, I'll try checking that, one moment
like 13 iirc
mysterious:D
client.guilds.fetch({ guild: id, withCounts: true, cache: true })
but still I'm getting guild object with approximateMemberCount: null
I set cache property to false, it's still null
Yes, I get all other data from the Guild object such as memberCount: 1941,
Not sure why we use the approx number, maybe it's faster to fetch it vs. exact number of online users?
codebase hasn't been touched for ages:D
ah sorry I meant approximatePresenceCount
for the online members, but it's still null
Sorry for the confusion
I'm not sure what that meansI need a quick way to get online member count
let me see
alright, so that'll be the realtime data because I have that intent?
that works, thanks man!
The issue has been marked as solved by support staff