2021-09-30 01:51:38 +00:00
|
|
|
using SqlKata;
|
|
|
|
|
2021-08-27 15:03:47 +00:00
|
|
|
namespace PluralKit.Core
|
2020-06-29 13:20:28 +00:00
|
|
|
{
|
|
|
|
public class GuildPatch: PatchObject
|
|
|
|
{
|
|
|
|
public Partial<ulong?> LogChannel { get; set; }
|
|
|
|
public Partial<ulong[]> LogBlacklist { get; set; }
|
|
|
|
public Partial<ulong[]> Blacklist { get; set; }
|
|
|
|
public Partial<bool> LogCleanupEnabled { get; set; }
|
|
|
|
|
2021-09-30 01:51:38 +00:00
|
|
|
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
2020-06-29 13:20:28 +00:00
|
|
|
.With("log_channel", LogChannel)
|
|
|
|
.With("log_blacklist", LogBlacklist)
|
|
|
|
.With("blacklist", Blacklist)
|
2021-09-30 01:51:38 +00:00
|
|
|
.With("log_cleanup_enabled", LogCleanupEnabled)
|
|
|
|
);
|
2020-06-29 13:20:28 +00:00
|
|
|
}
|
|
|
|
}
|