summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-06 00:40:00 +0200
committerGitHub <noreply@github.com>2022-08-06 00:40:00 +0200
commit7e34c5ce7420442a8a376db660231f9c1b3c2b7e (patch)
tree6b4e9b4c2e75557d8b5a0e8bb5d052dbd913fd32
parentMerge pull request #792 from fosscord/dev/local-cache (diff)
parentUpdate schemas.json (diff)
downloadserver-7e34c5ce7420442a8a376db660231f9c1b3c2b7e.tar.xz
Merge pull request #809 from Puyodead1/patch/user-modify
add discriminator to user modify schema
-rw-r--r--api/assets/schemas.json3
-rw-r--r--api/src/routes/users/@me/index.ts1
2 files changed, 4 insertions, 0 deletions
diff --git a/api/assets/schemas.json b/api/assets/schemas.json
index ca42e676..9c312123 100644
--- a/api/assets/schemas.json
+++ b/api/assets/schemas.json
@@ -12499,6 +12499,9 @@
                 "maxLength": 100,
                 "type": "string"
             },
+            "discriminator": {
+                "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