#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)
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
So you say when the bot is ready, memberCount reports 9, and later it reports 6?
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
Sounds like an outage
Well, only some of them are unavaillable, like 5 or so
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

If you use memberCount for analytics, maybe you want to measure the last available memberCount, not current memberCount
so what would you do?
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
and how can I get these?
You already have them. You just store them somewhere
well, also an idea xD