lint/fixes, add group patch validation

This commit is contained in:
spiral 2021-09-22 13:48:34 -04:00
parent bc2c198a82
commit c472a7f6df
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
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)