mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): server config toggle for @silent proxied messages
This commit is contained in:
parent
2d36b8a7cc
commit
b88c1b7712
12 changed files with 50 additions and 3 deletions
|
|
@ -9,4 +9,5 @@ public class GuildConfig
|
|||
public bool LogCleanupEnabled { get; }
|
||||
public bool InvalidCommandResponseEnabled { get; }
|
||||
public bool RequireSystemTag { get; }
|
||||
public bool SuppressNotifications { get; }
|
||||
}
|
||||
|
|
@ -10,6 +10,7 @@ public class GuildPatch: PatchObject
|
|||
public Partial<bool> LogCleanupEnabled { get; set; }
|
||||
public Partial<bool> InvalidCommandResponseEnabled { get; set; }
|
||||
public Partial<bool> RequireSystemTag { get; set; }
|
||||
public Partial<bool> SuppressNotifications { get; set; }
|
||||
|
||||
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
||||
.With("log_channel", LogChannel)
|
||||
|
|
@ -18,5 +19,6 @@ public class GuildPatch: PatchObject
|
|||
.With("log_cleanup_enabled", LogCleanupEnabled)
|
||||
.With("invalid_command_response_enabled", InvalidCommandResponseEnabled)
|
||||
.With("require_system_tag", RequireSystemTag)
|
||||
.With("suppress_notifications", SuppressNotifications)
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue