mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: add abuse handling
This commit is contained in:
parent
4bf60a47d7
commit
2dfb851246
17 changed files with 405 additions and 16 deletions
|
|
@ -8,10 +8,12 @@ public class AccountPatch: PatchObject
|
|||
{
|
||||
public Partial<ulong> DmChannel { get; set; }
|
||||
public Partial<bool> AllowAutoproxy { get; set; }
|
||||
public Partial<AbuseLogId?> AbuseLog { get; set; }
|
||||
|
||||
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
||||
.With("dm_channel", DmChannel)
|
||||
.With("allow_autoproxy", AllowAutoproxy)
|
||||
.With("abuse_log", AbuseLog)
|
||||
);
|
||||
|
||||
public JObject ToJson()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue