Skip to content

Commit

Permalink
update user modify for unique usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Sep 9, 2023
1 parent 7f8e0ed commit 99963e1
Show file tree
Hide file tree
Showing 8 changed files with 882 additions and 149 deletions.
6 changes: 5 additions & 1 deletion assets/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
"BASE_TYPE_CONSTANT": "This field must be {{value}}",
"EMAIL_TYPE_INVALID_EMAIL": "Not a well-formed email address",
"DATE_TYPE_PARSE": "Could not parse {{date}}. Should be ISO8601",
"BASE_TYPE_BAD_LENGTH": "Must be between {{length}} in length"
"BASE_TYPE_BAD_LENGTH": "Must be between {{length}} in length",
"PASSWORD_DOES_NOT_MATCH": "Password does not match.",
"DISCRIMINATOR_UPDATE_BLOCKED": "This discriminator cannot be updated",
"USERNAME_ALREADY_TAKEN": "Username is unavailable. Try adding numbers, letters, underscores _ , or periods.",
"INVALID_DISCRIMINATOR": "This discriminator is already in use."
},
"body": {
"INVALID_BODY": "Invalid Body",
Expand Down
4 changes: 2 additions & 2 deletions assets/locales/ur/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"EMAIL_INVALID": "Invalid Email",
"EMAIL_ALREADY_REGISTERED": "Email is already registered",
"DATE_OF_BIRTH_UNDERAGE": "You need to be {{years}} years or older",
"PASSWORD_REQUIREMENTS_MIN_LENGTH": "Must be at least {{min}} characters long.",
"CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.",
"PASSWORD_REQUIREMENTS_MIN_LENGTH": "Must be at least {{min}} characters long.",
"CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.",
"USERNAME_TOO_MANY_USERS": "Too many users have this username, please try another"
}
}
10 changes: 9 additions & 1 deletion assets/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4035,6 +4035,10 @@
"type": "integer",
"default": 1048576
},
"minUsername": {
"type": "integer",
"default": 2
},
"maxUsername": {
"type": "integer",
"default": 32
Expand All @@ -4047,7 +4051,8 @@
"required": [
"maxFriends",
"maxGuilds",
"maxUsername"
"maxUsername",
"minUsername"
]
},
"GuildLimits": {
Expand Down Expand Up @@ -5807,6 +5812,9 @@
"minLength": 4,
"maxLength": 4,
"type": "string"
},
"global_name": {
"type": "string"
}
}
},
Expand Down
Loading

0 comments on commit 99963e1

Please sign in to comment.