mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
Fix newline rendering in embeds on iOS
This commit is contained in:
parent
456fe8f7af
commit
de141d629b
4 changed files with 14 additions and 6 deletions
|
|
@ -38,7 +38,7 @@ namespace PluralKit.Bot
|
|||
public async Task Description(Context ctx) {
|
||||
ctx.CheckSystem();
|
||||
|
||||
var newDescription = ctx.RemainderOrNull();
|
||||
var newDescription = ctx.RemainderOrNull()?.NormalizeLineEndSpacing();
|
||||
if (newDescription != null && newDescription.Length > Limits.MaxDescriptionLength) throw Errors.DescriptionTooLongError(newDescription.Length);
|
||||
|
||||
ctx.System.Description = newDescription;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue