feat: add limit reach warning to pk;group new

This commit is contained in:
spiral
2021-09-13 02:46:40 -04:00
parent b390c8ab62
commit dec228d5bd
3 changed files with 5 additions and 2 deletions

View File

@@ -7,8 +7,8 @@ namespace PluralKit.Core
public static readonly int MaxSystemNameLength = 100;
public static readonly int MaxSystemTagLength = MaxProxyNameLength - 1;
public static readonly int MaxMemberCount = 1000;
public static int MaxMembersWarnThreshold(int memberLimit) => memberLimit - 50;
public static readonly int MaxGroupCount = 250;
public static int WarnThreshold(int limit) => limit - 50;
public static readonly int MaxDescriptionLength = 1000;
public static readonly int MaxProxyTagLength = 100;
public static readonly int MaxSwitchMemberCount = 150;