fix(MatchRaw commands): don't skip matching flags when setting new value

This commit is contained in:
spiral
2021-09-26 17:30:30 -04:00
parent 65b4f0e370
commit e3fa0f3b32
3 changed files with 9 additions and 9 deletions

View File

@@ -145,7 +145,7 @@ namespace PluralKit.Bot
}
else
{
var newDisplayName = ctx.RemainderOrNull();
var newDisplayName = ctx.RemainderOrNull(skipFlags: false).NormalizeLineEndSpacing();
var patch = new GroupPatch { DisplayName = Partial<string>.Present(newDisplayName) };
await _db.Execute(conn => _repo.UpdateGroup(conn, target.Id, patch));
@@ -195,7 +195,7 @@ namespace PluralKit.Bot
}
else
{
var description = ctx.RemainderOrNull().NormalizeLineEndSpacing();
var description = ctx.RemainderOrNull(skipFlags: false).NormalizeLineEndSpacing();
if (description.IsLongerThan(Limits.MaxDescriptionLength))
throw Errors.StringTooLongError("Description", description.Length, Limits.MaxDescriptionLength);