fix(bot): channels can now have 15 webhooks (#601)

This commit is contained in:
Ouroboros 2024-01-27 00:57:11 +00:00 committed by GitHub
parent 7ef76a8e67
commit 36622905d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}