mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Revert "feat: remove 2000-character limit for proxied messages"
This reverts commit 7cc2aab1f0.
This commit is contained in:
parent
31a129dabf
commit
ddbf0e8691
3 changed files with 8 additions and 1 deletions
|
|
@ -56,6 +56,9 @@ public class ProxiedMessage
|
|||
|
||||
var newContent = ctx.RemainderOrNull().NormalizeLineEndSpacing();
|
||||
|
||||
if (newContent.Length > 2000)
|
||||
throw new PKError("PluralKit cannot proxy messages over 2000 characters in length.");
|
||||
|
||||
var originalMsg = await _rest.GetMessageOrNull(msg.Message.Channel, msg.Message.Mid);
|
||||
if (originalMsg == null)
|
||||
throw new PKError("Could not edit message.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue