Skip to content

Commit 23e7538

Browse files
committed
update user modify for unique usernames
1 parent 02b42fc commit 23e7538

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
@@ -4028,6 +4028,10 @@
40284028
"type": "integer",
40294029
"default": 1048576
40304030
},
4031+
"minUsername": {
4032+
"type": "integer",
4033+
"default": 2
4034+
},
40314035
"maxUsername": {
40324036
"type": "integer",
40334037
"default": 32
@@ -4040,7 +4044,8 @@
40404044
"required": [
40414045
"maxFriends",
40424046
"maxGuilds",
4043-
"maxUsername"
4047+
"maxUsername",
4048+
"minUsername"
40444049
]
40454050
},
40464051
"GuildLimits": {
@@ -5791,6 +5796,9 @@
57915796
"minLength": 4,
57925797
"maxLength": 4,
57935798
"type": "string"
5799+
},
5800+
"global_name": {
5801+
"type": "string"
57945802
}
57955803
}
57965804
},

0 commit comments

Comments
 (0)