From 1e8470e77f82e2fd7d8f5330685ca427cbe1de4d Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 25 Sep 2020 23:28:06 +0200 Subject: [PATCH] Potential quick fix for... something --- PluralKit.Bot/Services/WebhookCacheService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/WebhookCacheService.cs b/PluralKit.Bot/Services/WebhookCacheService.cs index d2f10e09..99caf97e 100644 --- a/PluralKit.Bot/Services/WebhookCacheService.cs +++ b/PluralKit.Bot/Services/WebhookCacheService.cs @@ -68,7 +68,7 @@ namespace PluralKit.Bot // 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. 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; }