mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
Potential quick fix for... something
This commit is contained in:
parent
969065724d
commit
1e8470e77f
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ namespace PluralKit.Bot
|
||||||
// It's possible to "move" a webhook to a different channel after creation
|
// It's possible to "move" a webhook to a different channel after creation
|
||||||
// Here, we ensure it's actually still pointing towards the proper channel, and if not, wipe and refetch one.
|
// Here, we ensure it's actually still pointing towards the proper channel, and if not, wipe and refetch one.
|
||||||
var webhook = await lazyWebhookValue.Value;
|
var webhook = await lazyWebhookValue.Value;
|
||||||
if (webhook.ChannelId != channel.Id) return await InvalidateAndRefreshWebhook(channel, webhook);
|
if (webhook.ChannelId != channel.Id && webhook.ChannelId != 0) return await InvalidateAndRefreshWebhook(channel, webhook);
|
||||||
return webhook;
|
return webhook;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue