#Hi, my bot is loosing his guilds and its users, like I have 9mio users on start, but I now have on

1 messages · Page 1 of 1 (latest)

versed pumice
#

Sounds like a cache.get problem

glad bane
#

Well, so I'm not caching users, but I try to get the memberCount of each guild and reduce it

#

Also, some guilds seem to be not available anymore, but I still have their data

versed pumice
#

So you say when the bot is ready, memberCount reports 9, and later it reports 6?

glad bane
#

well, the total member count over all my shards goes down from 9000000 to 6000000

#

and guilds become unavaillable

#

and like that server still exists and it is joinable

versed pumice
glad bane
#

Well, only some of them are unavaillable, like 5 or so

versed pumice
#

Yes. Not all of them will become unavailable at once

#

Also, some clients can access them, others don't. Now you can, later you can't

glad bane
versed pumice
#

If you use memberCount for analytics, maybe you want to measure the last available memberCount, not current memberCount

glad bane
#

so what would you do?

versed pumice
#

What I wrote above, use the last available memberCount for any real analytics

#

Also, you can't confuse a guild being unavailable, with your bot being removed, since you would receive an event

#

guildDelete

versed pumice
#

You already have them. You just store them somewhere

glad bane
#

well, also an idea xD