2020-06-29 13:20:28 +00:00
|
|
|
|
#nullable enable
|
|
|
|
|
namespace PluralKit.Core
|
|
|
|
|
{
|
|
|
|
|
public class SystemGuildPatch: PatchObject
|
|
|
|
|
{
|
|
|
|
|
public Partial<bool> ProxyEnabled { get; set; }
|
|
|
|
|
public Partial<AutoproxyMode> AutoproxyMode { get; set; }
|
|
|
|
|
public Partial<MemberId?> AutoproxyMember { get; set; }
|
2021-08-02 21:22:06 +00:00
|
|
|
|
public Partial<string?> Tag { get; set; }
|
|
|
|
|
public Partial<bool?> TagEnabled { get; set; }
|
2020-06-29 13:20:28 +00:00
|
|
|
|
|
|
|
|
|
public override UpdateQueryBuilder Apply(UpdateQueryBuilder b) => b
|
|
|
|
|
.With("proxy_enabled", ProxyEnabled)
|
|
|
|
|
.With("autoproxy_mode", AutoproxyMode)
|
2021-08-02 21:22:06 +00:00
|
|
|
|
.With("autoproxy_member", AutoproxyMember)
|
|
|
|
|
.With("tag", Tag)
|
|
|
|
|
.With("tag_enabled", TagEnabled);
|
2020-06-29 13:20:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|