Skip to content

Commit 99963e1

Browse files
committed
update user modify for unique usernames
1 parent 7f8e0ed commit 99963e1

File tree

8 files changed

+882
-149
lines changed

8 files changed

+882
-149
lines changed

assets/locales/en/common.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
"BASE_TYPE_CONSTANT": "This field must be {{value}}",
1414
"EMAIL_TYPE_INVALID_EMAIL": "Not a well-formed email address",
1515
"DATE_TYPE_PARSE": "Could not parse {{date}}. Should be ISO8601",
16-
"BASE_TYPE_BAD_LENGTH": "Must be between {{length}} in length"
16+
"BASE_TYPE_BAD_LENGTH": "Must be between {{length}} in length",
17+
"PASSWORD_DOES_NOT_MATCH": "Password does not match.",
18+
"DISCRIMINATOR_UPDATE_BLOCKED": "This discriminator cannot be updated",
19+
"USERNAME_ALREADY_TAKEN": "Username is unavailable. Try adding numbers, letters, underscores _ , or periods.",
20+
"INVALID_DISCRIMINATOR": "This discriminator is already in use."
1721
},
1822
"body": {
1923
"INVALID_BODY": "Invalid Body",

assets/locales/ur/auth.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"EMAIL_INVALID": "Invalid Email",
1111
"EMAIL_ALREADY_REGISTERED": "Email is already registered",
1212
"DATE_OF_BIRTH_UNDERAGE": "You need to be {{years}} years or older",
13-
"PASSWORD_REQUIREMENTS_MIN_LENGTH": "Must be at least {{min}} characters long.",
14-
"CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.",
13+
"PASSWORD_REQUIREMENTS_MIN_LENGTH": "Must be at least {{min}} characters long.",
14+
"CONSENT_REQUIRED": "You must agree to the Terms of Service and Privacy Policy.",
1515
"USERNAME_TOO_MANY_USERS": "Too many users have this username, please try another"
1616
}
1717
}

assets/openapi.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -4035,6 +4035,10 @@
40354035
"type": "integer",
40364036
"default": 1048576
40374037
},
4038+
"minUsername": {
4039+
"type": "integer",
4040+
"default": 2
4041+
},
40384042
"maxUsername": {
40394043
"type": "integer",
40404044
"default": 32
@@ -4047,7 +4051,8 @@
40474051
"required": [
40484052
"maxFriends",
40494053
"maxGuilds",
4050-
"maxUsername"
4054+
"maxUsername",
4055+
"minUsername"
40514056
]
40524057
},
40534058
"GuildLimits": {
@@ -5807,6 +5812,9 @@
58075812
"minLength": 4,
58085813
"maxLength": 4,
58095814
"type": "string"
5815+
},
5816+
"global_name": {
5817+
"type": "string"
58105818
}
58115819
}
58125820
},

0 commit comments

Comments
 (0)