PluralKit/PluralKit.Core/Models/Patch/AbuseLogPatch.cs

16 lines
392 B
C#
Raw Normal View History

2024-10-23 10:08:25 +13:00
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)
);
}