mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
16 lines
No EOL
392 B
C#
16 lines
No EOL
392 B
C#
using Newtonsoft.Json.Linq;
|
|
|
|
using SqlKata;
|
|
|
|
namespace PluralKit.Core;
|
|
|
|
public class AbuseLogPatch: PatchObject
|
|
{
|
|
public Partial<string> Description { get; set; }
|
|
public Partial<bool> DenyBotUsage { get; set; }
|
|
|
|
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
|
.With("description", Description)
|
|
.With("deny_bot_usage", DenyBotUsage)
|
|
);
|
|
} |