mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add groups to pk;admin
This commit is contained in:
parent
889e1a8331
commit
c2b6e0eeed
3 changed files with 73 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ namespace PluralKit.Core
|
|||
public class GroupPatch: PatchObject
|
||||
{
|
||||
public Partial<string> Name { get; set; }
|
||||
public Partial<string> Hid { get; set; }
|
||||
public Partial<string?> DisplayName { get; set; }
|
||||
public Partial<string?> Description { get; set; }
|
||||
public Partial<string?> Icon { get; set; }
|
||||
|
|
@ -18,6 +19,7 @@ namespace PluralKit.Core
|
|||
|
||||
public override UpdateQueryBuilder Apply(UpdateQueryBuilder b) => b
|
||||
.With("name", Name)
|
||||
.With("hid", Hid)
|
||||
.With("display_name", DisplayName)
|
||||
.With("description", Description)
|
||||
.With("icon", Icon)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue