fix: check member/group limits before creating

This commit is contained in:
spiral
2021-11-03 02:42:37 -04:00
parent 29b28ba742
commit e1a5310a3a
3 changed files with 15 additions and 2 deletions

View File

@@ -94,6 +94,8 @@ namespace PluralKit.API
public static PKError SameSwitchMembersError = new(400, 40004, "Member list identical to current fronter list.");
public static PKError SameSwitchTimestampError = new(400, 40005, "Switch with provided timestamp already exists.");
public static PKError InvalidSwitchId = new(400, 40006, "Invalid switch ID.");
public static PKError MemberLimitReached = new(400, 40007, "Member limit reached.");
public static PKError GroupLimitReached = new(400, 40008, "Group limit reached.");
public static PKError Unimplemented = new(501, 50001, "Unimplemented");
}