lint/fixes, add group patch validation

This commit is contained in:
spiral
2021-09-22 13:48:34 -04:00
parent bc2c198a82
commit c472a7f6df
6 changed files with 20 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ namespace PluralKit.Core
public new void AssertIsValid()
{
if (Name.IsPresent)
AssertValid(Name.Value, "display_name", Limits.MaxMemberNameLength);
AssertValid(Name.Value, "name", Limits.MaxMemberNameLength);
if (DisplayName.Value != null)
AssertValid(DisplayName.Value, "display_name", Limits.MaxMemberNameLength);
if (AvatarUrl.Value != null)