Fix pk;msg erroring between shards

This commit is contained in:
acw0 2020-07-22 04:07:35 -04:00
parent 56e4f1c00c
commit 88c28c18c7

View File

@ -158,8 +158,7 @@ namespace PluralKit.Bot {
public async Task<DiscordEmbed> CreateMessageInfoEmbed(DiscordClient client, FullMessage msg) public async Task<DiscordEmbed> CreateMessageInfoEmbed(DiscordClient client, FullMessage msg)
{ {
var ctx = LookupContext.ByNonOwner; 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; var serverMsg = channel != null ? await channel.GetMessage(msg.Message.Mid) : null;
// Need this whole dance to handle cases where: // Need this whole dance to handle cases where: