diff --git a/src/Mewdeko/Controllers/BotStatus.cs b/src/Mewdeko/Controllers/BotStatus.cs index 3e40952ae..c05525881 100644 --- a/src/Mewdeko/Controllers/BotStatus.cs +++ b/src/Mewdeko/Controllers/BotStatus.cs @@ -24,9 +24,9 @@ public class BotStatus(DiscordShardedClient client, StatsService statsService, C [HttpGet] public async Task GetStatus() { + var clients = client.Shards; var rest = client.Rest; var curUser = await rest.GetUserAsync(client.CurrentUser.Id); - var guilds = await rest.GetGuildsAsync(); var toReturn = new BotStatusModel { BotName = client.CurrentUser.GlobalName ?? client.CurrentUser.Username, @@ -38,7 +38,7 @@ public async Task GetStatus() ModulesCount = commandService.Modules.Count(x => !x.IsSubmodule), DNetVersion = statsService.Library, BotStatus = client.Status.ToString(), - UserCount = client.Guilds.Select(x => x.Users.Count).Sum(), + UserCount = clients.Select(x => x.Guilds.Sum(g => g.Users.Count)).Sum(), CommitHash = GetCommitHash(), BotId = client.CurrentUser.Id };