Merge pull request #354 from spiralw/patch-2

add temporary info message about increased message character limit
This commit is contained in:
Astrid
2021-06-12 16:52:32 +02:00
committed by GitHub

View File

@@ -54,6 +54,9 @@ namespace PluralKit.Bot
if (!ShouldProxy(channel, message, ctx)) if (!ShouldProxy(channel, message, ctx))
return false; 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 // Fetch members and try to match to a specific member
await using var conn = await _db.Obtain(); await using var conn = await _db.Obtain();