mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add a few utility admin commands
Signed-off-by: Ske <voltasalt@gmail.com>
This commit is contained in:
parent
af5de7c892
commit
8740230c3d
9 changed files with 177 additions and 12 deletions
|
|
@ -8,6 +8,7 @@ namespace PluralKit.Core
|
|||
public class MemberPatch: PatchObject
|
||||
{
|
||||
public Partial<string> Name { get; set; }
|
||||
public Partial<string> Hid { get; set; }
|
||||
public Partial<string?> DisplayName { get; set; }
|
||||
public Partial<string?> AvatarUrl { get; set; }
|
||||
public Partial<string?> Color { get; set; }
|
||||
|
|
@ -28,6 +29,7 @@ namespace PluralKit.Core
|
|||
|
||||
public override UpdateQueryBuilder Apply(UpdateQueryBuilder b) => b
|
||||
.With("name", Name)
|
||||
.With("hid", Hid)
|
||||
.With("display_name", DisplayName)
|
||||
.With("avatar_url", AvatarUrl)
|
||||
.With("color", Color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue