diff --git a/Blink3.API/Controllers/GuildsController.cs b/Blink3.API/Controllers/GuildsController.cs index 11df7f3..268a416 100644 --- a/Blink3.API/Controllers/GuildsController.cs +++ b/Blink3.API/Controllers/GuildsController.cs @@ -48,7 +48,7 @@ public async Task>> GetC string cacheKey = $"guild_{id}_categories"; IReadOnlyCollection categories = await _cachingService.GetOrAddAsync(cacheKey, async () => { - RestGuild? guild = await _botClient.GetGuildAsync(id); + RestGuild guild = await _botClient.GetGuildAsync(id); IReadOnlyCollection? categories = await guild.GetCategoryChannelsAsync(); return categories .OrderBy(c => c.Position) @@ -80,7 +80,7 @@ public async Task>> GetC string cacheKey = $"guild_{id}_channels"; IReadOnlyCollection channels = await _cachingService.GetOrAddAsync(cacheKey, async () => { - RestGuild? guild = await _botClient.GetGuildAsync(id); + RestGuild guild = await _botClient.GetGuildAsync(id); IReadOnlyCollection? channels = await guild.GetTextChannelsAsync(); return channels .OrderBy(c => c.Position)