fix: add NormalizeLineEndSpacing to pk;edit

This commit is contained in:
spiral
2021-09-13 01:31:15 -04:00
parent a165a42046
commit b3a8432039

View File

@@ -52,7 +52,7 @@ namespace PluralKit.Bot
if (_cache.GetRootChannel(msg.Message.Channel).Id != msg.Message.Channel)
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);
if (originalMsg == null)