add limits to switch members and proxy tag length

This commit is contained in:
spiral
2021-08-25 13:42:08 -04:00
parent 52efb3c70a
commit 603123777d
3 changed files with 6 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ namespace PluralKit.Core {
public static int MaxMembersWarnThreshold (int memberLimit) => memberLimit - 50;
public static readonly int MaxGroupCount = 250;
public static readonly int MaxDescriptionLength = 1000;
public static readonly int MaxProxyTagLength = 100;
public static readonly int MaxSwitchMemberCount = 150;
public static readonly int MaxMemberNameLength = 100; // Fair bit larger than MaxProxyNameLength for bookkeeping
public static readonly int MaxGroupNameLength = 100;
public static readonly int MaxPronounsLength = 100;