Add Extension Methods

This commit is contained in:
Fennel
2020-04-24 17:20:34 -04:00
committed by Astrid
parent c99784b9dc
commit 949dae6561
4 changed files with 10 additions and 4 deletions

View File

@@ -283,7 +283,7 @@ namespace PluralKit.Bot
// Fetch information about the guild early, as we need it for the logger cleanup
GuildConfig cachedGuild = default;
if (msg.Channel.Type == ChannelType.Text) await _cache.GetGuildDataCached(msg.Channel.GuildId);
if (msg.Channel.Type == ChannelType.Text) cachedGuild = await _cache.GetGuildDataCached(msg.Channel.GuildId);
// Pass guild bot/WH messages onto the logger cleanup service, but otherwise ignore
if (msg.Author.IsBot && msg.Channel.Type == ChannelType.Text)