fix: add NormalizeLineEndSpacing to pk;edit
This commit is contained in:
parent
a165a42046
commit
b3a8432039
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user