From c75451a57287833513c590a4ee13ce25afaf572b Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 12 Jun 2021 14:45:21 +0000 Subject: [PATCH] add temporary info message about increased message character limit --- PluralKit.Bot/Proxy/ProxyService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.Bot/Proxy/ProxyService.cs b/PluralKit.Bot/Proxy/ProxyService.cs index bb0f6232..c2305644 100644 --- a/PluralKit.Bot/Proxy/ProxyService.cs +++ b/PluralKit.Bot/Proxy/ProxyService.cs @@ -54,6 +54,9 @@ namespace PluralKit.Bot if (!ShouldProxy(channel, message, ctx)) return false; + // this is hopefully temporary, so not putting it into a separate method + if (message.Content != null && message.Content.Length > 2000) throw new PKError("PluralKit cannot proxy messages over 2000 characters in length."); + // Fetch members and try to match to a specific member await using var conn = await _db.Obtain();