feat(bot): add proxy error config (#544)
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user