fit-ctu-discord / honza-botner

Bot for FIT CTU Discord
https://discord.fit.cvut.cz/
MIT License
15 stars 10 forks source link

[Bug] Member counter acts really weird #466

Closed stepech closed 1 year ago

stepech commented 1 year ago

Especially the one counting members in the whole guild. Counter often returns value which is off by 1000+

stepech commented 1 year ago

We are using cached value by the framework, which rarely works well. Do a full refetch of the guild, with count enabled before we get this value. https://github.com/fit-ctu-discord/honza-botner/blob/dc7b15b8b6e6cd7fb6eff3f1fc8cf2f8b0777958/src/HonzaBotner.Discord.Services/Commands/MemberCommands.cs#L181