Fix pk;msg erroring between shards
This commit is contained in:
parent
56e4f1c00c
commit
88c28c18c7
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user