-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guild.memberCount doesn't update after refetch #997
Comments
Could you set the log level to TRACE and check the result from Discord to see whether the memberCount is there |
Set log level to trace, tried using It is a bit unfortunate that I have to use |
Was guild_count removed https://discord.com/developers/docs/resources/guild#guild-resource |
it's an extra field in the gateway event https://discord.com/developers/docs/events/gateway-events#guild-create-guild-create-extra-fields and there is also https://discord.com/developers/docs/resources/guild#get-guild |
Got the problem that member count is being
null
most of the time. The behavior that I got on a server with 700+ members:memberCount
isnull
memberCount
is set to actual one that is on the server.memberCount
becomesnull
, and doesn't recover from that even after several minutes.here is the code used.
tried using rest supplier, but
memberCount
is alwaysnull
. found out that by defaultwithCounts
inGuildService.getGuild
is false, and there is no place to tweak it. UsedGuildService
directly viakord.rest.guild
withwithCounts = true
, but thememberCount
isOptional.Missing
,Then reverted back to using code above, and tested leaving and joining the server, to test how fast
guild.memberCount
is updated. Found out that after 5 minutes it still doesn't update.Is there any workarounds to make it more "realtime"?
The text was updated successfully, but these errors were encountered: