Finally retire the PKMember setters!
This commit is contained in:
@@ -100,10 +100,10 @@ namespace PluralKit.Bot
|
||||
var description = ctx.RemainderOrNull().NormalizeLineEndSpacing();
|
||||
if (description.IsLongerThan(Limits.MaxDescriptionLength))
|
||||
throw Errors.DescriptionTooLongError(description.Length);
|
||||
target.Description = description;
|
||||
|
||||
var patch = new MemberPatch {Description = Partial<string>.Present(description)};
|
||||
await _db.Execute(conn => conn.UpdateMember(target.Id, patch));
|
||||
|
||||
await ctx.Reply($"{Emojis.Success} Member description changed.");
|
||||
}
|
||||
}
|
||||
|
@@ -56,8 +56,6 @@ namespace PluralKit.Bot
|
||||
throw Errors.GenericCancelled();
|
||||
}
|
||||
|
||||
target.ProxyTags = new ProxyTag[] { };
|
||||
|
||||
var patch = new MemberPatch {ProxyTags = Partial<ProxyTag[]>.Present(new ProxyTag[0])};
|
||||
await _db.Execute(conn => conn.UpdateMember(target.Id, patch));
|
||||
|
||||
|
Reference in New Issue
Block a user