From 88c28c18c78336772427f6953fa3662edf11a131 Mon Sep 17 00:00:00 2001 From: acw0 Date: Wed, 22 Jul 2020 04:07:35 -0400 Subject: [PATCH] Fix pk;msg erroring between shards --- PluralKit.Bot/Services/EmbedService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index d4372d9f..b027cbfd 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -158,8 +158,7 @@ namespace PluralKit.Bot { public async Task CreateMessageInfoEmbed(DiscordClient client, FullMessage msg) { var ctx = LookupContext.ByNonOwner; - - var channel = await client.GetChannel(msg.Message.Channel); + var channel = await _client.GetChannel(msg.Message.Channel); var serverMsg = channel != null ? await channel.GetMessage(msg.Message.Mid) : null; // Need this whole dance to handle cases where: