mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): add new guild settings command
This commit is contained in:
parent
f0436332c0
commit
0473bd8f01
15 changed files with 179 additions and 15 deletions
|
|
@ -8,11 +8,15 @@ public class GuildPatch: PatchObject
|
|||
public Partial<ulong[]> LogBlacklist { get; set; }
|
||||
public Partial<ulong[]> Blacklist { get; set; }
|
||||
public Partial<bool> LogCleanupEnabled { get; set; }
|
||||
public Partial<bool> InvalidCommandResponseEnabled { get; set; }
|
||||
public Partial<bool> RequireSystemTag { get; set; }
|
||||
|
||||
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
||||
.With("log_channel", LogChannel)
|
||||
.With("log_blacklist", LogBlacklist)
|
||||
.With("blacklist", Blacklist)
|
||||
.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