2021-11-27 02:10:56 +00:00
|
|
|
namespace PluralKit.Core;
|
|
|
|
|
|
|
|
public static class Limits
|
2021-08-27 15:03:47 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
public static readonly int MaxProxyNameLength = 80;
|
|
|
|
|
|
|
|
public static readonly int MaxSystemNameLength = 100;
|
|
|
|
public static readonly int MaxSystemTagLength = MaxProxyNameLength - 1;
|
|
|
|
public static readonly int MaxMemberCount = 1000;
|
|
|
|
public static readonly int MaxGroupCount = 250;
|
|
|
|
public static int WarnThreshold(int limit) => limit - 50;
|
2022-03-30 08:36:22 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
// May need to be set higher, I know there are URLs longer than this in prod (they can rehost, I guess...)
|
|
|
|
public static readonly int MaxUriLength = 256;
|
2019-08-14 05:16:48 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
public static readonly long AvatarFileSizeLimit = 1024 * 1024;
|
|
|
|
public static readonly int AvatarDimensionLimit = 1000;
|
2019-04-29 18:28:53 +00:00
|
|
|
}
|