From 36622905d35c995bb7c47f3aa23f1b388b51b3df Mon Sep 17 00:00:00 2001 From: Ouroboros <66399070+vmorrisonwood@users.noreply.github.com> Date: Sat, 27 Jan 2024 00:57:11 +0000 Subject: [PATCH] fix(bot): channels can now have 15 webhooks (#601) --- PluralKit.Bot/Services/WebhookCacheService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Services/WebhookCacheService.cs b/PluralKit.Bot/Services/WebhookCacheService.cs index 8900d930..eff638f9 100644 --- a/PluralKit.Bot/Services/WebhookCacheService.cs +++ b/PluralKit.Bot/Services/WebhookCacheService.cs @@ -94,9 +94,9 @@ public class WebhookCacheService // We don't have one, so we gotta create a new one // but first, make sure we haven't hit the webhook cap yet... - if (webhooks.Length >= 10) + if (webhooks.Length >= 15) throw new PKError( - "This channel has the maximum amount of possible webhooks (10) already created. A server admin must delete one or more webhooks so PluralKit can create one for proxying."); + "This channel has the maximum amount of possible webhooks (15) already created. A server admin must delete one or more webhooks so PluralKit can create one for proxying."); return await DoCreateWebhook(channelId); }