2021-09-29 21:51:38 -04:00
|
|
|
using SqlKata;
|
|
|
|
|
|
2021-11-26 21:10:56 -05:00
|
|
|
namespace PluralKit.Core;
|
|
|
|
|
|
|
|
|
|
public class GuildPatch: PatchObject
|
2020-06-29 15:20:28 +02:00
|
|
|
{
|
2021-11-26 21:10:56 -05:00
|
|
|
public Partial<ulong?> LogChannel { get; set; }
|
|
|
|
|
public Partial<ulong[]> LogBlacklist { get; set; }
|
2026-01-12 15:31:23 -07:00
|
|
|
public Partial<ulong[]> ProxyBlacklist { get; set; }
|
2021-11-26 21:10:56 -05:00
|
|
|
public Partial<bool> LogCleanupEnabled { get; set; }
|
2024-11-10 15:46:36 +13:00
|
|
|
public Partial<bool> InvalidCommandResponseEnabled { get; set; }
|
|
|
|
|
public Partial<bool> RequireSystemTag { get; set; }
|
2024-12-30 04:33:17 +00:00
|
|
|
public Partial<bool> SuppressNotifications { get; set; }
|
2020-06-29 15:20:28 +02:00
|
|
|
|
2021-11-26 21:10:56 -05:00
|
|
|
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
|
|
|
|
.With("log_channel", LogChannel)
|
|
|
|
|
.With("log_blacklist", LogBlacklist)
|
2026-01-12 15:31:23 -07:00
|
|
|
.With("proxy_blacklist", ProxyBlacklist)
|
2021-11-26 21:10:56 -05:00
|
|
|
.With("log_cleanup_enabled", LogCleanupEnabled)
|
2024-11-10 15:46:36 +13:00
|
|
|
.With("invalid_command_response_enabled", InvalidCommandResponseEnabled)
|
|
|
|
|
.With("require_system_tag", RequireSystemTag)
|
2024-12-30 04:33:17 +00:00
|
|
|
.With("suppress_notifications", SuppressNotifications)
|
2021-11-26 21:10:56 -05:00
|
|
|
);
|
2020-06-29 15:20:28 +02:00
|
|
|
}
|