Add a few utility admin commands
Signed-off-by: Ske <voltasalt@gmail.com>
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -6,6 +6,7 @@ namespace PluralKit.Core
 | 
			
		||||
    public class SystemPatch: PatchObject
 | 
			
		||||
    {
 | 
			
		||||
        public Partial<string?> Name { get; set; }
 | 
			
		||||
        public Partial<string?> Hid { get; set; }
 | 
			
		||||
        public Partial<string?> Description { get; set; }
 | 
			
		||||
        public Partial<string?> Tag { get; set; }
 | 
			
		||||
        public Partial<string?> AvatarUrl { get; set; }
 | 
			
		||||
@@ -19,9 +20,12 @@ namespace PluralKit.Core
 | 
			
		||||
        public Partial<PrivacyLevel> FrontHistoryPrivacy { get; set; }
 | 
			
		||||
        public Partial<bool> PingsEnabled { get; set; }
 | 
			
		||||
        public Partial<int?> LatchTimeout { get; set; }
 | 
			
		||||
        public Partial<int?> MemberLimitOverride { get; set; }
 | 
			
		||||
        public Partial<int?> GroupLimitOverride { get; set; }
 | 
			
		||||
 | 
			
		||||
        public override UpdateQueryBuilder Apply(UpdateQueryBuilder b) => b
 | 
			
		||||
            .With("name", Name)
 | 
			
		||||
            .With("hid", Hid)
 | 
			
		||||
            .With("description", Description)
 | 
			
		||||
            .With("tag", Tag)
 | 
			
		||||
            .With("avatar_url", AvatarUrl)
 | 
			
		||||
@@ -34,7 +38,9 @@ namespace PluralKit.Core
 | 
			
		||||
            .With("front_privacy", FrontPrivacy)
 | 
			
		||||
            .With("front_history_privacy", FrontHistoryPrivacy)
 | 
			
		||||
            .With("pings_enabled", PingsEnabled)
 | 
			
		||||
            .With("latch_timeout", LatchTimeout);
 | 
			
		||||
            .With("latch_timeout", LatchTimeout)
 | 
			
		||||
            .With("member_limit_override", MemberLimitOverride)
 | 
			
		||||
            .With("group_limit_override", GroupLimitOverride);
 | 
			
		||||
 | 
			
		||||
        public new void CheckIsValid()
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user