08afa2543b
This also refactors a large portion of the DI toolchain, since I discovered that you shouldn't be reusing IDbConnection objects. Instead, most services and stores are now declared transient, and the webhook cache has been moved to a database-independent storage singleton by itself.
12 lines
509 B
C#
12 lines
509 B
C#
namespace PluralKit.Bot {
|
|
public static class Limits {
|
|
public static readonly int MaxSystemNameLength = 100;
|
|
public static readonly int MaxSystemTagLength = 31;
|
|
public static readonly int MaxDescriptionLength = 1000;
|
|
public static readonly int MaxMemberNameLength = 50;
|
|
public static readonly int MaxPronounsLength = 100;
|
|
|
|
public static readonly long AvatarFileSizeLimit = 1024 * 1024;
|
|
public static readonly int AvatarDimensionLimit = 1000;
|
|
}
|
|
} |