fix: add NormalizeLineEndSpacing to pk;edit

This commit is contained in:
spiral 2021-09-13 01:31:15 -04:00
parent a165a42046
commit b3a8432039
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -52,7 +52,7 @@ namespace PluralKit.Bot
if (_cache.GetRootChannel(msg.Message.Channel).Id != msg.Message.Channel) if (_cache.GetRootChannel(msg.Message.Channel).Id != msg.Message.Channel)
throw new PKError("PluralKit cannot edit messages in threads."); throw new PKError("PluralKit cannot edit messages in threads.");
var newContent = ctx.RemainderOrNull(); var newContent = ctx.RemainderOrNull().NormalizeLineEndSpacing();
var originalMsg = await _rest.GetMessage(msg.Message.Channel, msg.Message.Mid); var originalMsg = await _rest.GetMessage(msg.Message.Channel, msg.Message.Mid);
if (originalMsg == null) if (originalMsg == null)