mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
Merge a3aa02e779 into 4a947c01fc
This commit is contained in:
commit
5fcbd1397f
14 changed files with 182 additions and 29 deletions
|
|
@ -32,7 +32,8 @@ public class MessageContext
|
|||
public Instant? LastSwitchTimestamp { get; }
|
||||
|
||||
public ulong? LogChannel { get; }
|
||||
public bool InBlacklist { get; }
|
||||
public bool InProxyBlacklist { get; }
|
||||
public bool InCommandBlacklist { get; }
|
||||
public bool InLogBlacklist { get; }
|
||||
public bool LogCleanupEnabled { get; }
|
||||
public bool RequireSystemTag { get; }
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace PluralKit.Core;
|
|||
internal class DatabaseMigrator
|
||||
{
|
||||
private const string RootPath = "PluralKit.Core.Database"; // "resource path" root for SQL files
|
||||
private const int TargetSchemaVersion = 52;
|
||||
private const int TargetSchemaVersion = 55;
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public DatabaseMigrator(ILogger logger)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ public class GuildConfig
|
|||
public ulong Id { get; }
|
||||
public ulong? LogChannel { get; }
|
||||
public ulong[] LogBlacklist { get; }
|
||||
public ulong[] Blacklist { get; }
|
||||
public ulong[] ProxyBlacklist { get; }
|
||||
public ulong[] CommandBlacklist { get; }
|
||||
public bool LogCleanupEnabled { get; }
|
||||
public bool InvalidCommandResponseEnabled { get; }
|
||||
public bool RequireSystemTag { get; }
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ public class GuildPatch: PatchObject
|
|||
{
|
||||
public Partial<ulong?> LogChannel { get; set; }
|
||||
public Partial<ulong[]> LogBlacklist { get; set; }
|
||||
public Partial<ulong[]> Blacklist { get; set; }
|
||||
public Partial<ulong[]> ProxyBlacklist { get; set; }
|
||||
public Partial<ulong[]> CommandBlacklist { get; set; }
|
||||
public Partial<bool> LogCleanupEnabled { get; set; }
|
||||
public Partial<bool> InvalidCommandResponseEnabled { get; set; }
|
||||
public Partial<bool> RequireSystemTag { get; set; }
|
||||
|
|
@ -15,7 +16,8 @@ public class GuildPatch: PatchObject
|
|||
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
||||
.With("log_channel", LogChannel)
|
||||
.With("log_blacklist", LogBlacklist)
|
||||
.With("blacklist", Blacklist)
|
||||
.With("proxy_blacklist", ProxyBlacklist)
|
||||
.With("command_blacklist", CommandBlacklist)
|
||||
.With("log_cleanup_enabled", LogCleanupEnabled)
|
||||
.With("invalid_command_response_enabled", InvalidCommandResponseEnabled)
|
||||
.With("require_system_tag", RequireSystemTag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue