summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2022-07-30 14:33:01 -0400
committerPuyodead1 <puyodead@protonmail.com>2022-07-30 14:33:01 -0400
commitf3b1e9b02641376177c4c358074e01f201ba0ff8 (patch)
tree6b97593f287c6c11da4d6fd534344ef0be00f729
parentfix: not being able to enable community (diff)
downloadserver-f3b1e9b02641376177c4c358074e01f201ba0ff8.tar.xz
add discriminator to user modify schema
-rw-r--r--api/assets/schemas.json5
-rw-r--r--api/src/routes/users/@me/index.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/api/assets/schemas.json b/api/assets/schemas.json
index ca42e676..f7efb888 100644
--- a/api/assets/schemas.json
+++ b/api/assets/schemas.json
@@ -12499,6 +12499,11 @@
                 "maxLength": 100,
                 "type": "string"
             },
+            "discriminator": {
+                "minLength": 4,
+                "maxLength": 4,
+                "type": "string"
+            },
             "avatar": {
                 "type": [
                     "null",
diff --git a/api/src/routes/users/@me/index.ts b/api/src/routes/users/@me/index.ts
index 1af413c4..7fc20457 100644
--- a/api/src/routes/users/@me/index.ts
+++ b/api/src/routes/users/@me/index.ts
@@ -11,6 +11,7 @@ export interface UserModifySchema {
 	 * @maxLength 100
 	 */
 	username?: string;
+	discriminator?: string;
 	avatar?: string | null;
 	/**
 	 * @maxLength 1024