mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): add proxy error config (#544)
This commit is contained in:
parent
020a6f99fe
commit
8187aa05b7
10 changed files with 93 additions and 7 deletions
|
|
@ -20,6 +20,7 @@ public class SystemConfig
|
|||
public DateTimeZone Zone => DateTimeZoneProviders.Tzdb.GetZoneOrNull(UiTz);
|
||||
|
||||
public bool CaseSensitiveProxyTags { get; set; }
|
||||
public bool ProxyErrorMessageEnabled { get; }
|
||||
}
|
||||
|
||||
public static class SystemConfigExt
|
||||
|
|
@ -37,6 +38,7 @@ public static class SystemConfigExt
|
|||
o.Add("member_limit", cfg.MemberLimitOverride ?? Limits.MaxMemberCount);
|
||||
o.Add("group_limit", cfg.GroupLimitOverride ?? Limits.MaxGroupCount);
|
||||
o.Add("case_sensitive_proxy_tags", cfg.CaseSensitiveProxyTags);
|
||||
o.Add("proxy_error_message_enabled", cfg.ProxyErrorMessageEnabled);
|
||||
|
||||
o.Add("description_templates", JArray.FromObject(cfg.DescriptionTemplates));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue