diff --git a/assets/locales/en/auth.json b/assets/locales/en/auth.json index 2415c657c..a4595662b 100644 --- a/assets/locales/en/auth.json +++ b/assets/locales/en/auth.json @@ -15,7 +15,8 @@ "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", "GUESTS_DISABLED": "Guest users are disabled", - "TOO_MANY_REGISTRATIONS": "Too many registrations, please try again later" + "TOO_MANY_REGISTRATIONS": "Too many registrations, please try again later", + "UNIQUE_USERNAMES_DISABLED": "The Unique Usernames feature is disabled on this instance" }, "password_reset": { "EMAIL_DOES_NOT_EXIST": "Email does not exist.", diff --git a/assets/locales/en/common.json b/assets/locales/en/common.json index edcafa1da..dcb97ec0b 100644 --- a/assets/locales/en/common.json +++ b/assets/locales/en/common.json @@ -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", diff --git a/assets/locales/ur/auth.json b/assets/locales/ur/auth.json index 1dac24744..93631abcf 100644 --- a/assets/locales/ur/auth.json +++ b/assets/locales/ur/auth.json @@ -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" } } diff --git a/assets/openapi.json b/assets/openapi.json index da2b20f10..0705f4ffe 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -1359,6 +1359,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -1524,6 +1530,9 @@ "$ref": "#/components/schemas/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -1557,6 +1566,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -3486,6 +3496,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -3946,25 +3959,31 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": "string", + "default": null, "nullable": true }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": "string", + "nullable": true } }, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -4027,6 +4046,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -4039,7 +4062,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -5705,6 +5729,17 @@ "ticket" ] }, + "UniqueUsernameAttemptSchema": { + "type": "object", + "properties": { + "username": { + "type": "string" + } + }, + "required": [ + "username" + ] + }, "UserDeleteSchema": { "type": "object", "properties": { @@ -5813,6 +5848,9 @@ "minLength": 4, "maxLength": 4, "type": "string" + }, + "global_name": { + "type": "string" } } }, @@ -6355,6 +6393,9 @@ "discriminator": { "type": "string" }, + "global_name": { + "type": "string" + }, "id": { "type": "string" }, @@ -6615,6 +6656,12 @@ "username": { "type": "string" }, + "global_name": { + "type": [ + "null", + "string" + ] + }, "discriminator": { "type": "string" }, @@ -6636,6 +6683,7 @@ "avatar", "avatar_url", "discriminator", + "global_name", "id", "status", "username" @@ -6997,6 +7045,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7089,6 +7140,108 @@ "$ref": "#/components/schemas/BackupCode" } }, + "PrivateUserResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ] + }, + "PublicUserResponse": { + "$ref": "#/components/schemas/PublicUser" + }, "UserUpdateResponse": { "type": "object", "properties": { @@ -7114,6 +7267,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7273,6 +7429,10 @@ "autoCreateBotUsers": { "type": "boolean", "default": false + }, + "uniqueUsernames": { + "type": "boolean", + "default": false } }, "required": [ @@ -7284,7 +7444,8 @@ "instanceDescription", "instanceId", "instanceName", - "tosPage" + "tosPage", + "uniqueUsernames" ] }, "APIChannelArray": { @@ -7845,6 +8006,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -7965,6 +8129,17 @@ "days" ] }, + "UniqueUsernameAttemptResponse": { + "type": "object", + "properties": { + "taken": { + "type": "boolean" + } + }, + "required": [ + "taken" + ] + }, "VerifyEmailSchema": { "type": "object", "properties": { @@ -8070,6 +8245,9 @@ { "name": "track" }, + { + "name": "unique-username" + }, { "name": "updates" }, @@ -8374,6 +8552,121 @@ ] } }, + "/users/@me/pomelo/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "description": "Claims a unique username for the user. Returns the updated user object on success. Fires a User Update Gateway event.", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptSchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PrivateUserResponse" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "users" + ] + } + }, + "/users/@me/pomelo-suggestions/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "description": "Returns a suggested unique username string based on the current user's username.", + "responses": { + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "users" + ] + } + }, + "/users/@me/pomelo-attempt/": { + "post": { + "security": [ + { + "bearer": [] + } + ], + "description": "Checks whether a unique username is available for the user to claim.", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptSchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptResponse" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "users" + ] + } + }, "/users/@me/notes/{id}": { "get": { "security": [ @@ -9715,6 +10008,76 @@ ] } }, + "/unique-username/username-suggestions-unauthed/": { + "get": { + "description": "Returns a suggested unique username string based on the current user's username.", + "responses": { + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "parameters": [ + { + "name": "global_name", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "tags": [ + "unique-username" + ] + } + }, + "/unique-username/username-attempt-unauthed/": { + "post": { + "description": "Checks whether a unique username is available for the user to claim.", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptSchema" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UniqueUsernameAttemptResponse" + } + } + } + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "tags": [ + "unique-username" + ] + } + }, "/track/": { "post": { "responses": { @@ -10230,6 +10593,15 @@ } } }, + "parameters": [ + { + "name": "client_id", + "in": "query", + "schema": { + "type": "string" + } + } + ], "tags": [ "oauth2" ] @@ -10306,6 +10678,30 @@ ] } }, + "/oauth2/applications/@me/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Application" + } + } + } + } + }, + "tags": [ + "oauth2" + ] + } + }, "/invites/{code}": { "get": { "security": [ @@ -13935,71 +14331,6 @@ ] } }, - "/guilds/{guild_id}/bans/@me": { - "put": { - "security": [ - { - "bearer": [] - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BanCreateSchema" - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Ban" - } - } - } - }, - "400": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIErrorResponse" - } - } - } - }, - "403": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/APIErrorResponse" - } - } - } - } - }, - "parameters": [ - { - "name": "guild_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "guild_id" - } - ], - "tags": [ - "guilds" - ] - } - }, "/guilds/{guild_id}/audit-logs/": { "get": { "security": [ @@ -16348,7 +16679,7 @@ }, "/auth/generate-registration-tokens/": { "get": { - "x-right-required": "OPERATOR", + "x-right-required": "CREATE_REGISTRATION_TOKENS", "security": [ { "bearer": [] diff --git a/assets/schemas.json b/assets/schemas.json index ab8e0a3f4..b27dc2c78 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -1490,6 +1490,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -1655,6 +1661,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -1689,6 +1698,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -3650,6 +3660,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -4127,28 +4140,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -4213,6 +4234,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -4226,7 +4251,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -5709,6 +5735,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -5874,6 +5906,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -5908,6 +5943,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -7869,6 +7905,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -8346,28 +8385,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -8432,6 +8479,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -8445,7 +8496,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -9928,6 +9980,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -10093,6 +10151,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -10127,6 +10188,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -12088,6 +12150,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -12565,28 +12630,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -12651,6 +12724,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -12664,7 +12741,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -14142,6 +14220,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -14307,6 +14391,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -14341,6 +14428,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -16302,6 +16390,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -16779,28 +16870,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -16865,6 +16964,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -16878,7 +16981,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -18392,6 +18496,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -18557,6 +18667,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -18591,6 +18704,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -20552,6 +20666,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -21029,28 +21146,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -21115,6 +21240,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -21128,7 +21257,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -22611,6 +22741,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -22776,6 +22912,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -22810,6 +22949,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -24771,6 +24911,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -25248,28 +25391,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -25334,6 +25485,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -25347,7 +25502,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -26821,6 +26977,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -26986,6 +27148,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -27020,6 +27185,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -28981,6 +29147,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -29458,28 +29627,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -29544,6 +29721,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -29557,7 +29738,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -31034,6 +31216,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -31199,6 +31387,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -31233,6 +31424,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -33194,6 +33386,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -33671,28 +33866,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -33757,6 +33960,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -33770,7 +33977,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -35256,6 +35464,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -35421,6 +35635,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -35455,6 +35672,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -37416,6 +37634,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -37893,28 +38114,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -37979,6 +38208,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -37992,7 +38225,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -39466,6 +39700,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -39631,6 +39871,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -39665,6 +39908,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -41626,6 +41870,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -42103,28 +42350,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -42189,6 +42444,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -42202,7 +42461,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -43676,6 +43936,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -43841,6 +44107,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -43875,6 +44144,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -45836,6 +46106,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -46313,28 +46586,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -46399,6 +46680,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -46412,7 +46697,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -47905,6 +48191,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -48070,6 +48362,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -48104,6 +48399,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -50065,6 +50361,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -50542,28 +50841,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -50628,6 +50935,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -50641,7 +50952,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -52118,6 +52430,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -52283,6 +52601,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -52317,6 +52638,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -54278,6 +54600,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -54755,28 +55080,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -54841,6 +55174,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -54854,7 +55191,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -56391,6 +56729,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -56556,6 +56900,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -56590,6 +56937,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -58551,6 +58899,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -59028,28 +59379,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -59114,6 +59473,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -59127,7 +59490,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -60623,6 +60987,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -60788,6 +61158,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -60822,6 +61195,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -62783,6 +63157,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -63260,28 +63637,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -63346,6 +63731,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -63359,7 +63748,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -64996,6 +65386,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -65161,6 +65557,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -65195,6 +65594,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -67156,6 +67556,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -67633,28 +68036,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -67719,6 +68130,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -67732,7 +68147,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -69227,6 +69643,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -69392,6 +69814,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -69426,6 +69851,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -71387,6 +71813,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -71864,28 +72293,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -71950,6 +72387,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -71963,7 +72404,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -73468,6 +73910,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -73633,6 +74081,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -73667,6 +74118,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -75628,6 +76080,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -76105,28 +76560,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -76191,6 +76654,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -76204,7 +76671,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -77691,6 +78159,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -77856,6 +78330,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -77890,6 +78367,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -79851,6 +80329,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -80328,28 +80809,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -80414,6 +80903,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -80427,7 +80920,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -81920,6 +82414,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -82085,6 +82585,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -82119,6 +82622,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -84080,6 +84584,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -84557,28 +85064,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -84643,6 +85158,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -84656,7 +85175,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -86139,6 +86659,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -86304,6 +86830,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -86338,6 +86867,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -88299,6 +88829,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -88776,28 +89309,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -88862,6 +89403,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -88875,7 +89420,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -90346,6 +90892,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -90511,6 +91063,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -90545,6 +91100,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -92506,6 +93062,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -92983,28 +93542,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -93069,6 +93636,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -93082,7 +93653,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -94671,6 +95243,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -94836,6 +95414,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -94870,6 +95451,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -96831,6 +97413,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -97308,28 +97893,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -97394,6 +97987,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -97407,7 +98004,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -98993,6 +99591,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -99158,6 +99762,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -99192,6 +99799,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -101153,6 +101761,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -101630,28 +102241,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -101716,6 +102335,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -101729,7 +102352,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -103203,6 +103827,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -103368,6 +103998,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -103402,6 +104035,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -105363,6 +105997,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -105840,28 +106477,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -105926,6 +106571,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -105939,7 +106588,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -107421,6 +108071,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -107586,6 +108242,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -107620,6 +108279,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -109581,6 +110241,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -110058,28 +110721,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -110144,6 +110815,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -110157,7 +110832,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -111632,6 +112308,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -111797,6 +112479,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -111831,6 +112516,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -113792,6 +114478,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -114269,28 +114958,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -114355,6 +115052,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -114368,7 +115069,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -115843,6 +116545,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -116008,6 +116716,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -116042,6 +116753,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -118003,6 +118715,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -118480,28 +119195,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -118566,6 +119289,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -118579,7 +119306,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -120089,6 +120817,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -120254,6 +120988,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -120288,6 +121025,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -122249,6 +122987,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -122726,28 +123467,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -122812,6 +123561,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -122825,7 +123578,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -124300,6 +125054,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -124465,6 +125225,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -124499,6 +125262,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -126460,6 +127224,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -126937,28 +127704,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -127023,6 +127798,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -127036,7 +127815,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -128510,6 +129290,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -128675,6 +129461,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -128709,6 +129498,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -130670,6 +131460,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -131147,28 +131940,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -131233,6 +132034,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -131246,7 +132051,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -132735,6 +133541,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -132900,6 +133712,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -132934,6 +133749,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -134895,6 +135711,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -135372,28 +136191,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -135458,6 +136285,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -135471,7 +136302,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -136949,6 +137781,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -137114,6 +137952,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -137148,6 +137989,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -139109,6 +139951,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -139586,28 +140431,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -139672,6 +140525,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -139685,7 +140542,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -141237,6 +142095,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -141402,6 +142266,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -141436,6 +142303,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -143397,6 +144265,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -143874,28 +144745,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -143960,6 +144839,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -143973,7 +144856,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -145447,6 +146331,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -145612,6 +146502,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -145646,6 +146539,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -147607,6 +148501,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -148084,28 +148981,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -148170,6 +149075,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -148183,7 +149092,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -149657,6 +150567,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -149822,6 +150738,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -149856,6 +150775,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -151817,6 +152737,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -152294,28 +153217,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -152380,6 +153311,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -152393,7 +153328,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -153864,6 +154800,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -154029,6 +154971,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -154063,6 +155008,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -156024,6 +156970,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -156501,28 +157450,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -156587,6 +157544,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -156600,7 +157561,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -158077,6 +159039,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -158242,6 +159210,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -158276,6 +159247,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -160237,6 +161209,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -160714,28 +161689,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -160800,6 +161783,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -160813,7 +161800,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -162300,6 +163288,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -162465,6 +163459,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -162499,6 +163496,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -164460,6 +165458,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -164937,28 +165938,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -165023,6 +166032,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -165036,7 +166049,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -165374,16 +166388,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserDeleteSchema": { + "UniqueUsernameAttemptSchema": { "type": "object", "properties": { - "user_id": { + "username": { "type": "string" } }, "additionalProperties": false, "required": [ - "user_id" + "username" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -166507,6 +167521,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -166672,6 +167692,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -166706,6 +167729,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -168667,6 +169691,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -169144,28 +170171,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -169230,6 +170265,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -169243,7 +170282,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -169581,66 +170621,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserGuildSettingsSchema": { + "UserDeleteSchema": { "type": "object", "properties": { - "channel_overrides": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - "version": { - "type": "integer" - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "enum": [ - 0 - ], - "type": "number" + "user_id": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "user_id" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -170763,6 +171754,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -170928,6 +171925,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -170962,6 +171962,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -172923,6 +173924,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -173400,28 +174404,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -173486,6 +174498,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -173499,7 +174515,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -173837,49 +174854,63 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserModifySchema": { + "UserGuildSettingsSchema": { "type": "object", "properties": { - "username": { - "minLength": 1, - "maxLength": 100, - "type": "string" + "channel_overrides": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } }, - "avatar": { - "type": [ - "null", - "string" + "version": { + "type": "integer" + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } ] }, - "bio": { - "maxLength": 1024, - "type": "string" + "muted": { + "type": "boolean" }, - "accent_color": { - "type": "integer" + "suppress_everyone": { + "type": "boolean" }, - "banner": { + "suppress_roles": { + "type": "boolean" + }, + "guild_id": { "type": [ "null", "string" ] }, - "password": { - "type": "string" - }, - "new_password": { - "type": "string" + "flags": { + "type": "integer" }, - "code": { - "type": "string" + "mute_scheduled_events": { + "type": "boolean" }, - "email": { - "type": "string" + "hide_muted_channels": { + "type": "boolean" }, - "discriminator": { - "minLength": 4, - "maxLength": 4, - "type": "string" + "notify_highlights": { + "enum": [ + 0 + ], + "type": "number" } }, "additionalProperties": false, @@ -175005,6 +176036,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -175170,6 +176207,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -175204,6 +176244,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -177165,6 +178206,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -177642,28 +178686,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -177728,6 +178780,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -177741,7 +178797,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -178079,17 +179136,55 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserNoteUpdateSchema": { + "UserModifySchema": { "type": "object", "properties": { - "note": { + "username": { + "minLength": 1, + "maxLength": 100, + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "bio": { + "maxLength": 1024, + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": [ + "null", + "string" + ] + }, + "password": { + "type": "string" + }, + "new_password": { + "type": "string" + }, + "code": { + "type": "string" + }, + "email": { + "type": "string" + }, + "discriminator": { + "minLength": 4, + "maxLength": 4, + "type": "string" + }, + "global_name": { "type": "string" } }, "additionalProperties": false, - "required": [ - "note" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -179212,6 +180307,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -179377,6 +180478,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -179411,6 +180515,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -181372,6 +182477,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -181849,28 +182957,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -181935,6 +183051,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -181948,7 +183068,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -182286,42 +183407,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileModifySchema": { + "UserNoteUpdateSchema": { "type": "object", "properties": { - "bio": { - "type": "string" - }, - "accent_color": { - "type": [ - "null", - "integer" - ] - }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "pronouns": { + "note": { "type": "string" - }, - "theme_colors": { - "items": [ - { - "type": "integer" - }, - { - "type": "integer" - } - ], - "type": "array", - "minItems": 2, - "maxItems": 2 } }, "additionalProperties": false, + "required": [ + "note" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -183444,6 +184540,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -183609,6 +184711,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -183643,6 +184748,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -185604,6 +186710,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -186081,28 +187190,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -186167,6 +187284,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -186180,7 +187301,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -186518,128 +187640,39 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserSettingsSchema": { + "UserProfileModifySchema": { "type": "object", "properties": { - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "bio": { "type": "string" }, - "afk_timeout": { - "type": "integer" - }, - "allow_accessibility_detection": { - "type": "boolean" - }, - "animate_emoji": { - "type": "boolean" - }, - "animate_stickers": { - "type": "integer" + "accent_color": { + "type": [ + "null", + "integer" + ] }, - "contact_sync_enabled": { - "type": "boolean" + "banner": { + "type": [ + "null", + "string" + ] }, - "convert_emoticons": { - "type": "boolean" + "pronouns": { + "type": "string" }, - "custom_status": { - "anyOf": [ + "theme_colors": { + "items": [ { - "$ref": "#/definitions/CustomStatus" + "type": "integer" }, { - "type": "null" + "type": "integer" } - ] - }, - "default_guilds_restricted": { - "type": "boolean" - }, - "detect_platform_accounts": { - "type": "boolean" - }, - "developer_mode": { - "type": "boolean" - }, - "disable_games_tab": { - "type": "boolean" - }, - "enable_tts_command": { - "type": "boolean" - }, - "explicit_content_filter": { - "type": "integer" - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean" - }, - "gif_auto_play": { - "type": "boolean" - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - } - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - } - }, - "inline_attachment_media": { - "type": "boolean" - }, - "inline_embed_media": { - "type": "boolean" - }, - "locale": { - "type": "string" - }, - "message_display_compact": { - "type": "boolean" - }, - "native_phone_integration_enabled": { - "type": "boolean" - }, - "render_embeds": { - "type": "boolean" - }, - "render_reactions": { - "type": "boolean" - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - } - }, - "show_current_game": { - "type": "boolean" - }, - "stream_notifications_enabled": { - "type": "boolean" - }, - "theme": { - "enum": [ - "dark", - "light" ], - "type": "string" - }, - "timezone_offset": { - "type": "integer" + "type": "array", + "minItems": 2, + "maxItems": 2 } }, "additionalProperties": false, @@ -187765,6 +188798,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -187930,6 +188969,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -187964,6 +189006,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -189925,6 +190968,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -190402,28 +191448,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -190488,6 +191542,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -190501,7 +191559,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -190839,13 +191898,128 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VanityUrlSchema": { + "UserSettingsSchema": { "type": "object", "properties": { - "code": { - "minLength": 1, - "maxLength": 20, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "allow_accessibility_detection": { + "type": "boolean" + }, + "animate_emoji": { + "type": "boolean" + }, + "animate_stickers": { + "type": "integer" + }, + "contact_sync_enabled": { + "type": "boolean" + }, + "convert_emoticons": { + "type": "boolean" + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ] + }, + "default_guilds_restricted": { + "type": "boolean" + }, + "detect_platform_accounts": { + "type": "boolean" + }, + "developer_mode": { + "type": "boolean" + }, + "disable_games_tab": { + "type": "boolean" + }, + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { + "type": "integer" + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + } + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { + "type": "boolean" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], "type": "string" + }, + "timezone_offset": { + "type": "integer" } }, "additionalProperties": false, @@ -191971,6 +193145,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -192136,6 +193316,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -192170,6 +193353,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -194131,6 +195315,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -194608,28 +195795,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -194694,6 +195889,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -194707,7 +195906,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -195045,55 +196245,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceIdentifySchema": { + "VanityUrlSchema": { "type": "object", "properties": { - "server_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "session_id": { - "type": "string" - }, - "token": { + "code": { + "minLength": 1, + "maxLength": 20, "type": "string" - }, - "video": { - "type": "boolean" - }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "rid": { - "type": "string" - }, - "quality": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "quality", - "rid", - "type" - ] - } } }, "additionalProperties": false, - "required": [ - "server_id", - "session_id", - "token", - "user_id" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -196216,6 +197377,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -196381,6 +197548,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -196415,6 +197585,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -198376,6 +199547,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -198853,28 +200027,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -198939,6 +200121,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -198952,7 +200138,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -199290,42 +200477,54 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceStateUpdateSchema": { + "VoiceIdentifySchema": { "type": "object", "properties": { - "guild_id": { + "server_id": { "type": "string" }, - "channel_id": { + "user_id": { "type": "string" }, - "self_mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "preferred_region": { + "session_id": { "type": "string" }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" + "token": { + "type": "string" }, - "suppress": { + "video": { "type": "boolean" }, - "flags": { - "type": "integer" + "streams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "rid": { + "type": "string" + }, + "quality": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "quality", + "rid", + "type" + ] + } } }, "additionalProperties": false, "required": [ - "self_deaf", - "self_mute" + "server_id", + "session_id", + "token", + "user_id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -200449,6 +201648,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -200614,6 +201819,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -200648,6 +201856,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -202609,6 +203818,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -203086,28 +204298,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -203172,6 +204392,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -203185,7 +204409,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -203523,94 +204748,42 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceVideoSchema": { + "VoiceStateUpdateSchema": { "type": "object", "properties": { - "audio_ssrc": { - "type": "integer" + "guild_id": { + "type": "string" }, - "video_ssrc": { - "type": "integer" + "channel_id": { + "type": "string" }, - "rtx_ssrc": { - "type": "integer" + "self_mute": { + "type": "boolean" }, - "user_id": { + "self_deaf": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "preferred_region": { "type": "string" }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "enum": [ - "audio", - "video" - ], - "type": "string" - }, - "rid": { - "type": "string" - }, - "ssrc": { - "type": "integer" - }, - "active": { - "type": "boolean" - }, - "quality": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" - }, - "max_bitrate": { - "type": "integer" - }, - "max_framerate": { - "type": "integer" - }, - "max_resolution": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "height", - "type", - "width" - ] - } - }, - "additionalProperties": false, - "required": [ - "active", - "max_bitrate", - "max_framerate", - "max_resolution", - "quality", - "rid", - "rtx_ssrc", - "ssrc", - "type" - ] - } + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "suppress": { + "type": "boolean" + }, + "flags": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "audio_ssrc", - "video_ssrc" + "self_deaf", + "self_mute" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -204734,6 +205907,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -204899,6 +206078,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -204933,6 +206115,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -206894,6 +208077,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -207371,28 +208557,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -207457,6 +208651,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -207470,7 +208668,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -207808,16 +209007,94 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateWebAuthnCredentialsSchema": { + "VoiceVideoSchema": { "type": "object", "properties": { - "password": { + "audio_ssrc": { + "type": "integer" + }, + "video_ssrc": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "user_id": { "type": "string" + }, + "streams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "enum": [ + "audio", + "video" + ], + "type": "string" + }, + "rid": { + "type": "string" + }, + "ssrc": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "max_bitrate": { + "type": "integer" + }, + "max_framerate": { + "type": "integer" + }, + "max_resolution": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "height", + "type", + "width" + ] + } + }, + "additionalProperties": false, + "required": [ + "active", + "max_bitrate", + "max_framerate", + "max_resolution", + "quality", + "rid", + "rtx_ssrc", + "ssrc", + "type" + ] + } } }, "additionalProperties": false, "required": [ - "password" + "audio_ssrc", + "video_ssrc" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -208941,6 +210218,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -209106,6 +210389,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -209140,6 +210426,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -211101,6 +212388,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -211578,28 +212868,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -211664,6 +212962,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -211677,7 +212979,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -212015,24 +213318,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CreateWebAuthnCredentialSchema": { + "GenerateWebAuthnCredentialsSchema": { "type": "object", "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { + "password": { "type": "string" } }, "additionalProperties": false, "required": [ - "credential", - "name", - "ticket" + "password" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -213156,6 +214451,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -213321,6 +214622,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -213355,6 +214659,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -215316,6 +216621,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -215793,28 +217101,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -215879,6 +217195,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -215892,7 +217212,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -216230,14 +217551,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnPostSchema": { - "anyOf": [ - { - "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" }, - { - "$ref": "#/definitions/CreateWebAuthnCredentialSchema" + "name": { + "type": "string" + }, + "ticket": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -217361,6 +218692,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -217526,6 +218863,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -217560,6 +218900,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -219521,6 +220862,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -219998,28 +221342,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -220084,6 +221436,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -220097,7 +221453,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -220435,20 +221792,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnTotpSchema": { - "type": "object", - "properties": { - "code": { - "type": "string" + "WebAuthnPostSchema": { + "anyOf": [ + { + "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" }, - "ticket": { - "type": "string" + { + "$ref": "#/definitions/CreateWebAuthnCredentialSchema" } - }, - "additionalProperties": false, - "required": [ - "code", - "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -221572,6 +222923,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -221737,6 +223094,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -221771,6 +223131,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -223732,6 +225093,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -224209,28 +225573,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -224295,6 +225667,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -224308,7 +225684,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -224646,20 +226023,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateSchema": { + "WebAuthnTotpSchema": { "type": "object", "properties": { - "name": { - "maxLength": 80, + "code": { "type": "string" }, - "avatar": { + "ticket": { "type": "string" } }, "additionalProperties": false, "required": [ - "name" + "code", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -225783,6 +227160,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -225948,6 +227331,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -225982,6 +227368,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -227943,6 +229330,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -228420,28 +229810,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -228506,6 +229904,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -228519,7 +229921,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -228857,20 +230260,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WidgetModifySchema": { + "WebhookCreateSchema": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "name": { + "maxLength": 80, + "type": "string" }, - "channel_id": { + "avatar": { "type": "string" } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -229994,6 +231397,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -230159,6 +231568,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -230193,6 +231605,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -232154,6 +233567,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -232631,28 +234047,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -232717,6 +234141,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -232730,7 +234158,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -233068,52 +234497,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorResponse": { + "WidgetModifySchema": { "type": "object", "properties": { - "code": { - "type": "integer" + "enabled": { + "type": "boolean" }, - "message": { + "channel_id": { "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } } }, "additionalProperties": false, "required": [ - "code", - "errors", - "message" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -234237,6 +235634,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -234402,6 +235805,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -234436,6 +235842,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -236397,6 +237804,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -236874,28 +238284,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -236960,6 +238378,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -236973,7 +238395,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -237311,24 +238734,52 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CaptchaRequiredResponse": { + "APIErrorResponse": { "type": "object", "properties": { - "captcha_key": { - "type": "string" + "code": { + "type": "integer" }, - "captcha_sitekey": { + "message": { "type": "string" }, - "captcha_service": { - "type": "string" + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } } }, "additionalProperties": false, "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" + "code", + "errors", + "message" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -238452,6 +239903,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -238617,6 +240074,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -238651,6 +240111,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -240612,6 +242073,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -241089,28 +242553,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -241175,6 +242647,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -241188,7 +242664,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -241526,14 +243003,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorOrCaptchaResponse": { - "anyOf": [ - { - "$ref": "#/definitions/APIErrorResponse" + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" }, - { - "$ref": "#/definitions/CaptchaRequiredResponse" + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -242657,6 +244144,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -242822,6 +244315,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -242856,6 +244352,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -244817,6 +246314,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -245294,28 +246794,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -245380,6 +246888,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -245393,7 +246905,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -245731,20 +247244,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BackupCodesChallengeResponse": { - "type": "object", - "properties": { - "nonce": { - "type": "string" + "APIErrorOrCaptchaResponse": { + "anyOf": [ + { + "$ref": "#/definitions/APIErrorResponse" }, - "regenerate_nonce": { - "type": "string" + { + "$ref": "#/definitions/CaptchaRequiredResponse" } - }, - "additionalProperties": false, - "required": [ - "nonce", - "regenerate_nonce" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -246868,6 +248375,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -247033,6 +248546,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -247067,6 +248583,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -249028,6 +250545,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -249505,28 +251025,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -249591,6 +251119,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -249604,7 +251136,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -249942,31 +251475,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "DiscoverableGuildsResponse": { + "BackupCodesChallengeResponse": { "type": "object", "properties": { - "total": { - "type": "integer" - }, - "guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "offset": { - "type": "integer" + "nonce": { + "type": "string" }, - "limit": { - "type": "integer" + "regenerate_nonce": { + "type": "string" } }, "additionalProperties": false, "required": [ - "guilds", - "limit", - "offset", - "total" + "nonce", + "regenerate_nonce" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -251090,6 +252612,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -251255,6 +252783,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -251289,6 +252820,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -253250,6 +254782,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -253727,28 +255262,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -253813,6 +255356,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -253826,7 +255373,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -254164,45 +255712,31 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayBotResponse": { + "DiscoverableGuildsResponse": { "type": "object", "properties": { - "url": { - "type": "string" + "total": { + "type": "integer" }, - "shards": { + "guilds": { + "type": "array", + "items": { + "$ref": "#/definitions/Guild" + } + }, + "offset": { "type": "integer" }, - "session_start_limit": { - "type": "object", - "properties": { - "total": { - "type": "integer" - }, - "remaining": { - "type": "integer" - }, - "reset_after": { - "type": "integer" - }, - "max_concurrency": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "max_concurrency", - "remaining", - "reset_after", - "total" - ] + "limit": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "session_start_limit", - "shards", - "url" + "guilds", + "limit", + "offset", + "total" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -255326,6 +256860,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -255491,6 +257031,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -255525,6 +257068,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -257486,6 +259030,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -257963,28 +259510,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -258049,6 +259604,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -258062,7 +259621,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -258400,15 +259960,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayResponse": { + "GatewayBotResponse": { "type": "object", "properties": { "url": { "type": "string" + }, + "shards": { + "type": "integer" + }, + "session_start_limit": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "remaining": { + "type": "integer" + }, + "reset_after": { + "type": "integer" + }, + "max_concurrency": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "max_concurrency", + "remaining", + "reset_after", + "total" + ] } }, "additionalProperties": false, "required": [ + "session_start_limit", + "shards", "url" ], "definitions": { @@ -259533,6 +261122,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -259698,6 +261293,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -259732,6 +261330,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -261693,6 +263292,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -262170,28 +263772,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -262256,6 +263866,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -262269,7 +263883,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -262607,19 +264222,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateRegistrationTokensResponse": { + "GatewayResponse": { "type": "object", "properties": { - "tokens": { - "type": "array", - "items": { - "type": "string" - } + "url": { + "type": "string" } }, "additionalProperties": false, "required": [ - "tokens" + "url" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -263743,6 +265355,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -263908,6 +265526,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -263942,6 +265563,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -265903,6 +267525,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -266380,28 +268005,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -266466,6 +268099,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -266479,7 +268116,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -266817,48 +268455,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildBansResponse": { + "GenerateRegistrationTokensResponse": { "type": "object", "properties": { - "reason": { - "type": "string" - }, - "user": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "public_flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "discriminator", - "id", - "public_flags", - "username" - ] + "tokens": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "reason", - "user" + "tokens" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -267982,6 +269591,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -268147,6 +269762,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -268181,6 +269799,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -270142,6 +271761,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -270619,28 +272241,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -270705,6 +272335,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -270718,7 +272352,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -271056,16 +272691,51 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildCreateResponse": { + "GuildBansResponse": { "type": "object", "properties": { - "id": { + "reason": { "type": "string" + }, + "user": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "public_flags", + "username" + ] } }, "additionalProperties": false, "required": [ - "id" + "reason", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -272189,6 +273859,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -272354,6 +274030,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -272388,6 +274067,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -274349,6 +276029,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -274826,28 +276509,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -274912,6 +276603,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -274925,7 +276620,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -275263,95 +276959,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildDiscoveryRequirementsResponse": { + "GuildCreateResponse": { "type": "object", "properties": { - "uild_id": { + "id": { "type": "string" - }, - "safe_environment": { - "type": "boolean" - }, - "healthy": { - "type": "boolean" - }, - "health_score_pending": { - "type": "boolean" - }, - "size": { - "type": "boolean" - }, - "nsfw_properties": {}, - "protected": { - "type": "boolean" - }, - "sufficient": { - "type": "boolean" - }, - "sufficient_without_grace_period": { - "type": "boolean" - }, - "valid_rules_channel": { - "type": "boolean" - }, - "retention_healthy": { - "type": "boolean" - }, - "engagement_healthy": { - "type": "boolean" - }, - "age": { - "type": "boolean" - }, - "minimum_age": { - "type": "integer" - }, - "health_score": { - "type": "object", - "properties": { - "avg_nonnew_participators": { - "type": "integer" - }, - "avg_nonnew_communicators": { - "type": "integer" - }, - "num_intentful_joiners": { - "type": "integer" - }, - "perc_ret_w1_intentful": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avg_nonnew_communicators", - "avg_nonnew_participators", - "num_intentful_joiners", - "perc_ret_w1_intentful" - ] - }, - "minimum_size": { - "type": "integer" } }, "additionalProperties": false, "required": [ - "age", - "engagement_healthy", - "health_score", - "health_score_pending", - "healthy", - "minimum_age", - "minimum_size", - "nsfw_properties", - "protected", - "retention_healthy", - "safe_environment", - "size", - "sufficient", - "sufficient_without_grace_period", - "uild_id", - "valid_rules_channel" + "id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -276475,6 +278092,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -276640,6 +278263,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -276674,6 +278300,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -278635,6 +280262,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -279112,28 +280742,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -279198,6 +280836,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -279211,7 +280853,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -279549,23 +281192,95 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildMessagesSearchResponse": { + "GuildDiscoveryRequirementsResponse": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildMessagesSearchMessage" - } + "uild_id": { + "type": "string" }, - "total_results": { + "safe_environment": { + "type": "boolean" + }, + "healthy": { + "type": "boolean" + }, + "health_score_pending": { + "type": "boolean" + }, + "size": { + "type": "boolean" + }, + "nsfw_properties": {}, + "protected": { + "type": "boolean" + }, + "sufficient": { + "type": "boolean" + }, + "sufficient_without_grace_period": { + "type": "boolean" + }, + "valid_rules_channel": { + "type": "boolean" + }, + "retention_healthy": { + "type": "boolean" + }, + "engagement_healthy": { + "type": "boolean" + }, + "age": { + "type": "boolean" + }, + "minimum_age": { + "type": "integer" + }, + "health_score": { + "type": "object", + "properties": { + "avg_nonnew_participators": { + "type": "integer" + }, + "avg_nonnew_communicators": { + "type": "integer" + }, + "num_intentful_joiners": { + "type": "integer" + }, + "perc_ret_w1_intentful": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avg_nonnew_communicators", + "avg_nonnew_participators", + "num_intentful_joiners", + "perc_ret_w1_intentful" + ] + }, + "minimum_size": { "type": "integer" } }, "additionalProperties": false, "required": [ - "messages", - "total_results" + "age", + "engagement_healthy", + "health_score", + "health_score_pending", + "healthy", + "minimum_age", + "minimum_size", + "nsfw_properties", + "protected", + "retention_healthy", + "safe_environment", + "size", + "sufficient", + "sufficient_without_grace_period", + "uild_id", + "valid_rules_channel" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -280689,6 +282404,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -280854,6 +282575,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -280888,6 +282612,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -282849,6 +284574,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -283326,28 +285054,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -283412,6 +285148,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -283425,7 +285165,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -283763,16 +285504,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPruneResponse": { + "GuildMessagesSearchResponse": { "type": "object", "properties": { - "pruned": { + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildMessagesSearchMessage" + } + }, + "total_results": { "type": "integer" } }, "additionalProperties": false, "required": [ - "pruned" + "messages", + "total_results" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -284896,6 +286644,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -285061,6 +286815,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -285095,6 +286852,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -287056,6 +288814,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -287533,28 +289294,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -287619,6 +289388,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -287632,7 +289405,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -287970,16 +289744,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPurgeResponse": { + "GuildPruneResponse": { "type": "object", "properties": { - "purged": { + "pruned": { "type": "integer" } }, "additionalProperties": false, "required": [ - "purged" + "pruned" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -289103,6 +290877,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -289268,6 +291048,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -289302,6 +291085,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -291263,6 +293047,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -291740,28 +293527,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -291826,6 +293621,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -291839,7 +293638,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -292177,23 +293977,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildRecommendationsResponse": { + "GuildPurgeResponse": { "type": "object", "properties": { - "recommended_guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "load_id": { - "type": "string" + "purged": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "load_id", - "recommended_guilds" + "purged" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -293317,6 +295110,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -293482,6 +295281,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -293516,6 +295318,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -295477,6 +297280,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -295954,28 +297760,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -296040,6 +297854,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -296053,7 +297871,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -296391,20 +298210,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlResponse": { - "anyOf": [ - { - "$ref": "#/definitions/GuildVanityUrl" - }, - { - "$ref": "#/definitions/GuildVanityUrlNoInvite" - }, - { + "GuildRecommendationsResponse": { + "type": "object", + "properties": { + "recommended_guilds": { "type": "array", "items": { - "$ref": "#/definitions/GuildVanityUrl" + "$ref": "#/definitions/Guild" } + }, + "load_id": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "load_id", + "recommended_guilds" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -297528,6 +299350,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -297693,6 +299521,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -297727,6 +299558,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -299688,6 +301520,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -300165,28 +302000,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -300251,6 +302094,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -300264,7 +302111,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -300602,16 +302450,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlCreateResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" + "GuildVanityUrlResponse": { + "anyOf": [ + { + "$ref": "#/definitions/GuildVanityUrl" + }, + { + "$ref": "#/definitions/GuildVanityUrlNoInvite" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/GuildVanityUrl" + } } - }, - "additionalProperties": false, - "required": [ - "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -301735,6 +303587,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -301900,6 +303758,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -301934,6 +303795,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -303895,6 +305757,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -304372,28 +306237,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -304458,6 +306331,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -304471,7 +306348,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -304809,91 +306687,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetJsonResponse": { + "GuildVanityUrlCreateResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "instant_invite": { + "code": { "type": "string" - }, - "channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "position" - ] - } - }, - "members": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "status": { - "$ref": "#/definitions/ClientStatus" - }, - "avatar_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "avatar_url", - "discriminator", - "id", - "status", - "username" - ] - } - }, - "presence_count": { - "type": "integer" } }, "additionalProperties": false, "required": [ - "channels", - "id", - "instant_invite", - "members", - "name", - "presence_count" + "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -306017,6 +307820,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -306182,6 +307991,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -306216,6 +308028,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -308177,6 +309990,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -308654,28 +310470,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -308740,6 +310564,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -308753,7 +310581,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -309091,27 +310920,98 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetSettingsResponse": { + "GuildWidgetJsonResponse": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "id": { + "type": "string" }, - "channel_id": { - "anyOf": [ - { - "$ref": "#/definitions/Snowflake" + "name": { + "type": "string" + }, + "instant_invite": { + "type": "string" + }, + "channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { + "type": "integer" + } }, - { - "type": "null" - } - ] + "additionalProperties": false, + "required": [ + "id", + "name", + "position" + ] + } + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "status": { + "$ref": "#/definitions/ClientStatus" + }, + "avatar_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "avatar_url", + "discriminator", + "global_name", + "id", + "status", + "username" + ] + } + }, + "presence_count": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "channels", + "id", + "instant_invite", + "members", + "name", + "presence_count" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -310235,6 +312135,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -310400,6 +312306,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -310434,6 +312343,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -312395,6 +314305,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -312872,28 +314785,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -312958,6 +314879,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -312971,7 +314896,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -313309,28 +315235,27 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceDomainsResponse": { + "GuildWidgetSettingsResponse": { "type": "object", "properties": { - "cdn": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "defaultApiVersion": { - "type": "string" + "enabled": { + "type": "boolean" }, - "apiEndpoint": { - "type": "string" + "channel_id": { + "anyOf": [ + { + "$ref": "#/definitions/Snowflake" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, "required": [ - "apiEndpoint", - "cdn", - "defaultApiVersion", - "gateway" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -314454,6 +316379,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -314619,6 +316550,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -314653,6 +316587,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -316614,6 +318549,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -317091,28 +319029,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -317177,6 +319123,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -317190,7 +319140,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -317528,78 +319479,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstancePingResponse": { + "InstanceDomainsResponse": { "type": "object", "properties": { - "ping": { - "type": "string", - "enum": [ - "pong!" - ] + "cdn": { + "type": "string" }, - "instance": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ] - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ] - }, - "frontPage": { - "type": [ - "null", - "string" - ] - }, - "tosPage": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "correspondenceEmail", - "correspondenceUserID", - "description", - "frontPage", - "id", - "image", - "name", - "tosPage" - ] + "gateway": { + "type": "string" + }, + "defaultApiVersion": { + "type": "string" + }, + "apiEndpoint": { + "type": "string" } }, "additionalProperties": false, "required": [ - "instance", - "ping" + "apiEndpoint", + "cdn", + "defaultApiVersion", + "gateway" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -318723,6 +320624,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -318888,6 +320795,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -318922,6 +320832,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -320883,6 +322794,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -321360,28 +323274,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -321446,6 +323368,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -321459,7 +323385,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -321797,37 +323724,78 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceStatsResponse": { + "InstancePingResponse": { "type": "object", "properties": { - "counts": { + "ping": { + "type": "string", + "enum": [ + "pong!" + ] + }, + "instance": { "type": "object", "properties": { - "user": { - "type": "integer" + "id": { + "type": "string" }, - "guild": { - "type": "integer" + "name": { + "type": "string" }, - "message": { - "type": "integer" + "description": { + "type": [ + "null", + "string" + ] }, - "members": { - "type": "integer" + "image": { + "type": [ + "null", + "string" + ] + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ] + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ] + }, + "frontPage": { + "type": [ + "null", + "string" + ] + }, + "tosPage": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "guild", - "members", - "message", - "user" + "correspondenceEmail", + "correspondenceUserID", + "description", + "frontPage", + "id", + "image", + "name", + "tosPage" ] } }, "additionalProperties": false, "required": [ - "counts" + "instance", + "ping" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -322951,6 +324919,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -323116,6 +325090,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -323150,6 +325127,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -325111,6 +327089,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -325588,28 +327569,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -325674,6 +327663,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -325687,7 +327680,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -326025,43 +328019,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "LocationMetadataResponse": { + "InstanceStatsResponse": { "type": "object", "properties": { - "consent_required": { - "type": "boolean" - }, - "country_code": { - "type": "string" - }, - "promotional_email_opt_in": { + "counts": { "type": "object", "properties": { - "required": { - "type": "boolean", - "enum": [ - true - ] + "user": { + "type": "integer" }, - "pre_checked": { - "type": "boolean", - "enum": [ - false - ] + "guild": { + "type": "integer" + }, + "message": { + "type": "integer" + }, + "members": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "pre_checked", - "required" + "guild", + "members", + "message", + "user" ] } }, "additionalProperties": false, "required": [ - "consent_required", - "country_code", - "promotional_email_opt_in" + "counts" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -327185,6 +329173,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -327350,6 +329344,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -327384,6 +329381,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -329345,6 +331343,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -329822,28 +331823,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -329908,6 +331917,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -329921,7 +331934,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -330259,37 +332273,43 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberJoinGuildResponse": { + "LocationMetadataResponse": { "type": "object", "properties": { - "guild": { - "$ref": "#/definitions/Guild" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } + "consent_required": { + "type": "boolean" }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } + "country_code": { + "type": "string" }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } + "promotional_email_opt_in": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "enum": [ + true + ] + }, + "pre_checked": { + "type": "boolean", + "enum": [ + false + ] + } + }, + "additionalProperties": false, + "required": [ + "pre_checked", + "required" + ] } }, "additionalProperties": false, "required": [ - "emojis", - "guild", - "roles", - "stickers" + "consent_required", + "country_code", + "promotional_email_opt_in" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -331413,6 +333433,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -331578,6 +333604,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -331612,6 +333641,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -333573,6 +335603,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -334050,28 +336083,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -334136,6 +336177,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -334149,7 +336194,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -334487,16 +336533,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "OAuthAuthorizeResponse": { + "MemberJoinGuildResponse": { "type": "object", "properties": { - "location": { - "type": "string" + "guild": { + "$ref": "#/definitions/Guild" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } } }, "additionalProperties": false, "required": [ - "location" + "emojis", + "guild", + "roles", + "stickers" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -335620,6 +337687,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -335785,6 +337858,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -335819,6 +337895,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -337780,6 +339857,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -338257,28 +340337,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -338343,6 +340431,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -338356,7 +340448,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -338694,44 +340787,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifResponse": { + "OAuthAuthorizeResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { + "location": { "type": "string" } }, "additionalProperties": false, "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" + "location" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -339855,6 +341920,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -340020,6 +342091,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -340054,6 +342128,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -342015,6 +344090,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -342492,28 +344570,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -342578,6 +344664,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -342591,7 +344681,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -342929,56 +345020,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorTrendingResponse": { + "TenorGifResponse": { "type": "object", "properties": { - "categories": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "searchterm": { - "type": "string" - }, - "path": { - "type": "string" - }, - "image": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "image", - "name", - "path", - "searchterm" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "tags" - ] + "id": { + "type": "string" }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" - } + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" } }, "additionalProperties": false, "required": [ - "categories", - "gifs" + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -344102,6 +346181,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -344267,6 +346352,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -344301,6 +346389,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -346262,6 +348351,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -346739,28 +348831,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -346825,6 +348925,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -346838,7 +348942,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -347176,11 +349281,57 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifsResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" + "TenorTrendingResponse": { + "type": "object", + "properties": { + "categories": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { + "searchterm": { + "type": "string" + }, + "path": { + "type": "string" + }, + "image": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "image", + "name", + "path", + "searchterm" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "tags" + ] + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" + } + } }, + "additionalProperties": false, + "required": [ + "categories", + "gifs" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -348303,6 +350454,16949 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TenorGifsResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" + }, + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "parent_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer" + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "guild_ids", + "id", + "name" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ], + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "parent_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer" + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "guild_ids", + "id", + "name" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TokenOnlyResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "token" + ], + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "parent_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer" + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "guild_ids", + "id", + "name" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "extended_settings": { + "type": "string", + "default": "{}" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "session_id": { + "type": "string" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "client": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "client", + "os", + "version" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "id", + "mention_channels", + "mention_roles", + "mentions", + "reactions", + "timestamp", + "type" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "number", + "enum": [ + 0 + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "user", + "user_id" + ] + }, + "WebhookType": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "Attachment_1": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "public_ack": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "mention_count": { + "type": "integer" + }, + "manual": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "id", + "last_message_id", + "manual", + "mention_count", + "notifications_cursor", + "public_ack", + "user", + "user_id" + ] + }, + "Ban": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/definitions/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "ip", + "user", + "user_id" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, + "GuildMessagesSearchMessage": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment_1" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "pinned": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "tts": { + "type": "boolean" + }, + "timestamp": { + "type": "string" + }, + "edited_timestamp": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": {} + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ] + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ] + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "code": { + "type": "string" + }, + "consumed": { + "type": "boolean" + }, + "expired": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "consumed", + "expired", + "id", + "user" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "toJSON": { + "type": "object", + "additionalProperties": false + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "assign": { + "type": "object", + "additionalProperties": false + }, + "hasId": { + "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.", + "type": "object", + "additionalProperties": false + }, + "save": { + "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.", + "type": "object", + "additionalProperties": false + }, + "remove": { + "description": "Removes current entity from the database.", + "type": "object", + "additionalProperties": false + }, + "softRemove": { + "description": "Records the delete date of current entity.", + "type": "object", + "additionalProperties": false + }, + "recover": { + "description": "Recovers a given entity in the database.", + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ], + "default": null + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "avatar": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "global_name", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "string" + }, + "is_primary": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "GuildVoiceRegion": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + }, + "optimal": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "minUsername": { + "type": "integer", + "default": 2 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername", + "minUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "UserProfile": { + "type": "object", + "properties": { + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TokenWithBackupCodesResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "backup_codes": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" + } + } + }, + "additionalProperties": false, + "required": [ + "backup_codes", + "token" + ], + "definitions": { + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "ConnectedAccountTokenData": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ] + }, + "ChannelModifySchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" + }, + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "topic": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "parent_id": { + "type": "string" + }, + "id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ActivitySchema": { + "type": "object", + "properties": { + "afk": { + "type": "boolean" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ] + }, + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "album_id", + "artist_ids" + ] + }, + "session_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "ActivityType": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer" + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "guild_ids", + "id", + "name" + ] + }, + "GenerateWebAuthnCredentialsSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ] + }, + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ticket": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" + ] + }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string" + }, + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": "string" + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "type": "integer" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -348468,6 +367562,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -348502,6 +367599,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -350463,6 +369561,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -350940,28 +370041,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -351026,6 +370135,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -351039,7 +370152,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -351377,20 +370491,227 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenResponse": { + "APIGuild": { "type": "object", "properties": { - "token": { + "name": { "type": "string" }, - "settings": { - "$ref": "#/definitions/UserSettings" + "id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "_do_validate": { + "type": "object", + "additionalProperties": false + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "banner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "settings", - "token" + "_do_validate", + "assign", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", + "hasId", + "id", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "recover", + "reload", + "remove", + "roles", + "save", + "softRemove", + "stickers", + "toJSON", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -352514,6 +371835,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -352679,6 +372006,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -352713,6 +372043,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -354674,6 +374005,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -355151,28 +374485,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -355237,6 +374579,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -355250,7 +374596,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -355588,17 +374935,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenOnlyResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "token" - ], + "APIPublicUser": { + "$ref": "#/definitions/PublicUser", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -356721,6 +376059,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -356886,6 +376230,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -356920,6 +376267,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -358881,6 +378229,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -359358,28 +378709,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -359444,6 +378803,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -359457,7 +378820,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -359795,23 +379159,104 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenWithBackupCodesResponse": { + "APIPrivateUser": { "type": "object", "properties": { - "token": { + "id": { "type": "string" }, - "backup_codes": { + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { "type": "array", "items": { - "$ref": "#/definitions/BackupCode" + "type": "integer" } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "backup_codes", - "token" + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -360935,6 +380380,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -361100,6 +380551,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -361134,6 +380588,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -363095,6 +382550,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -363572,28 +383030,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -363658,6 +383124,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -363671,7 +383141,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -364009,228 +383480,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuild": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "_do_validate": { - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - } + "APIGuildArray": { + "type": "array", + "items": { + "$ref": "#/definitions/APIGuild" }, - "additionalProperties": false, - "required": [ - "_do_validate", - "assign", - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "hasId", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "recover", - "reload", - "remove", - "roles", - "save", - "softRemove", - "stickers", - "toJSON", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -365353,6 +384607,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -365518,6 +384778,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -365552,6 +384815,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -367513,6 +386777,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -367990,28 +387257,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -368076,6 +387351,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -368089,7 +387368,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -368427,8 +387707,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicUser": { - "$ref": "#/definitions/PublicUser", + "APIDMChannelArray": { + "type": "array", + "items": { + "$ref": "#/definitions/DmChannelDTO" + }, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -369551,6 +388834,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -369716,6 +389005,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -369750,6 +389042,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -371711,6 +391004,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -372188,28 +391484,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -372274,6 +391578,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -372287,7 +391595,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -372625,102 +391934,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPrivateUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "mfa_enabled": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } + "APIBackupCodeArray": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -373843,6 +393061,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -374008,6 +393232,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -374042,6 +393269,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -376003,6 +395231,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -376480,28 +395711,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -376566,6 +395805,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -376579,7 +395822,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -376917,11 +396161,105 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildArray": { - "type": "array", - "items": { - "$ref": "#/definitions/APIGuild" + "PrivateUserResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -378044,6 +397382,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -378209,6 +397553,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -378243,6 +397590,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -380204,6 +399552,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -380681,28 +400032,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -380767,6 +400126,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -380780,7 +400143,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -381118,11 +400482,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDMChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/DmChannelDTO" - }, + "PublicUserResponse": { + "$ref": "#/definitions/PublicUser", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -382245,6 +401606,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -382410,6 +401777,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -382444,6 +401814,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -384405,6 +403776,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -384882,28 +404256,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -384968,6 +404350,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -384981,7 +404367,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -385319,11 +404706,108 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIBackupCodeArray": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" + "UserUpdateResponse": { + "type": "object", + "properties": { + "newToken": { + "type": "string" + }, + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -386446,6 +405930,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -386611,6 +406101,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -386645,6 +406138,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -388606,6 +408100,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -389083,28 +408580,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -389169,6 +408674,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -389182,7 +408691,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -389520,105 +409030,9 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserUpdateResponse": { - "type": "object", - "properties": { - "newToken": { - "type": "string" - }, - "id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "mfa_enabled": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ], + "ApplicationDetectableResponse": { + "type": "array", + "items": {}, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -390741,6 +410155,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -390906,6 +410326,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -390940,6 +410363,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -392901,6 +412325,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -393378,28 +412805,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -393464,6 +412899,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -393477,7 +412916,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -393815,7 +413255,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationDetectableResponse": { + "ApplicationEntitlementsResponse": { "type": "array", "items": {}, "definitions": { @@ -394940,6 +414380,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -395105,6 +414551,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -395139,6 +414588,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -397100,6 +416550,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -397577,28 +417030,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -397663,6 +417124,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -397676,7 +417141,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -398014,7 +417480,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationEntitlementsResponse": { + "ApplicationSkusResponse": { "type": "array", "items": {}, "definitions": { @@ -399139,6 +418605,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -399304,6 +418776,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -399338,6 +418813,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -401299,6 +420775,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -401776,28 +421255,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -401862,6 +421349,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -401875,7 +421366,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -402213,9 +421705,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationSkusResponse": { + "APIApplicationArray": { "type": "array", - "items": {}, + "items": { + "$ref": "#/definitions/Application" + }, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -403338,6 +422832,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -403503,6 +423003,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -403537,6 +423040,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -405498,6 +425002,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -405975,28 +425482,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -406061,6 +425576,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -406074,7 +425593,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -406412,10 +425932,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIApplicationArray": { + "APIInviteArray": { "type": "array", "items": { - "$ref": "#/definitions/Application" + "$ref": "#/definitions/Invite" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -407539,6 +427059,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -407704,6 +427230,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -407738,6 +427267,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -409699,6 +429229,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -410176,28 +429709,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -410262,6 +429803,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -410275,7 +429820,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -410613,10 +430159,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIInviteArray": { + "APIMessageArray": { "type": "array", "items": { - "$ref": "#/definitions/Invite" + "$ref": "#/definitions/Message" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -411740,6 +431286,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -411905,6 +431457,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -411939,6 +431494,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -413900,6 +433456,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -414377,28 +433936,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -414463,6 +434030,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -414476,7 +434047,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -414814,10 +434386,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIMessageArray": { + "APIWebhookArray": { "type": "array", "items": { - "$ref": "#/definitions/Message" + "$ref": "#/definitions/Webhook" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -415941,6 +435513,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -416106,6 +435684,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -416140,6 +435721,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -418101,6 +437683,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -418578,28 +438163,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -418664,6 +438257,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -418677,7 +438274,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -419015,10 +438613,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIWebhookArray": { + "APIDiscoveryCategoryArray": { "type": "array", "items": { - "$ref": "#/definitions/Webhook" + "$ref": "#/definitions/Categories" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -420142,6 +439740,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -420307,6 +439911,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -420341,6 +439948,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -422302,6 +441910,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -422779,28 +442390,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -422865,6 +442484,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -422878,7 +442501,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -423216,11 +442840,80 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDiscoveryCategoryArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Categories" + "APIGeneralConfiguration": { + "type": "object", + "properties": { + "instanceName": { + "type": "string", + "default": "Spacebar Instance" + }, + "instanceDescription": { + "type": [ + "null", + "string" + ], + "default": "This is a Spacebar instance made in the pre-release days" + }, + "frontPage": { + "type": [ + "null", + "string" + ], + "default": null + }, + "tosPage": { + "type": [ + "null", + "string" + ], + "default": null + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ], + "default": null + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ], + "default": null + }, + "image": { + "type": [ + "null", + "string" + ], + "default": null + }, + "instanceId": { + "type": "string" + }, + "autoCreateBotUsers": { + "type": "boolean", + "default": false + }, + "uniqueUsernames": { + "type": "boolean", + "default": false + } }, + "additionalProperties": false, + "required": [ + "autoCreateBotUsers", + "correspondenceEmail", + "correspondenceUserID", + "frontPage", + "image", + "instanceDescription", + "instanceId", + "instanceName", + "tosPage", + "uniqueUsernames" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -424343,6 +444036,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -424508,6 +444207,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -424542,6 +444244,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -426503,6 +446206,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -426980,28 +446686,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -427066,6 +446780,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -427079,7 +446797,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -427417,75 +447136,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGeneralConfiguration": { - "type": "object", - "properties": { - "instanceName": { - "type": "string", - "default": "Spacebar Instance" - }, - "instanceDescription": { - "type": [ - "null", - "string" - ], - "default": "This is a Spacebar instance made in the pre-release days" - }, - "frontPage": { - "type": [ - "null", - "string" - ], - "default": null - }, - "tosPage": { - "type": [ - "null", - "string" - ], - "default": null - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ], - "default": null - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ], - "default": null - }, - "image": { - "type": [ - "null", - "string" - ], - "default": null - }, - "instanceId": { - "type": "string" - }, - "autoCreateBotUsers": { - "type": "boolean", - "default": false - } + "APIChannelArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" }, - "additionalProperties": false, - "required": [ - "autoCreateBotUsers", - "correspondenceEmail", - "correspondenceUserID", - "frontPage", - "image", - "instanceDescription", - "instanceId", - "instanceName", - "tosPage" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -428608,6 +448263,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -428773,6 +448434,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -428807,6 +448471,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -430768,6 +450433,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -431245,28 +450913,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -431331,6 +451007,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -431344,7 +451024,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -431682,10 +451363,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIChannelArray": { + "APIEmojiArray": { "type": "array", "items": { - "$ref": "#/definitions/Channel" + "$ref": "#/definitions/Emoji" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -432809,6 +452490,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -432974,6 +452661,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -433008,6 +452698,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -434969,6 +454660,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -435446,28 +455140,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -435532,6 +455234,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -435545,7 +455251,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -435883,10 +455590,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIEmojiArray": { + "APIMemberArray": { "type": "array", "items": { - "$ref": "#/definitions/Emoji" + "$ref": "#/definitions/Member" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -437010,6 +456717,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -437175,6 +456888,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -437209,6 +456925,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -439170,6 +458887,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -439647,28 +459367,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -439733,6 +459461,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -439746,7 +459478,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -440084,11 +459817,58 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIMemberArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" + "APIPublicMember": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "nick": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + } }, + "required": [ + "deaf", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -441211,6 +460991,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -441376,6 +461162,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -441410,6 +461199,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -443371,6 +463161,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -443848,28 +463641,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -443934,6 +463735,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -443947,7 +463752,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -444285,57 +464091,246 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicMember": { - "additionalProperties": false, + "APIGuildWithJoinedAt": { "type": "object", "properties": { - "id": { + "joined_at": { "type": "string" }, - "guild_id": { + "afk_channel_id": { "type": "string" }, - "nick": { - "type": "string" + "afk_channel": { + "$ref": "#/definitions/Channel" }, - "joined_at": { - "type": "string", - "format": "date-time" + "afk_timeout": { + "type": "integer" }, - "pending": { - "type": "boolean" + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } }, - "deaf": { - "type": "boolean" + "banner": { + "type": "string" }, - "mute": { - "type": "boolean" + "default_message_notifications": { + "type": "integer" }, - "premium_since": { + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { "type": "integer" }, - "avatar": { + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { "type": "string" }, - "user": { - "$ref": "#/definitions/PublicUser" + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } }, "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { "type": "array", "items": { "type": "string" } + }, + "id": { + "type": "string" } }, + "additionalProperties": false, "required": [ - "deaf", - "guild_id", + "bans", + "channel_ordering", + "channels", + "emojis", + "features", "id", + "invites", "joined_at", - "mute", - "pending", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", "roles", - "user" + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -445459,6 +465454,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -445624,6 +465625,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -445658,6 +465662,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -447619,6 +467624,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -448096,28 +468104,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -448182,6 +468198,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -448195,7 +468215,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -448533,247 +468554,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildWithJoinedAt": { - "type": "object", - "properties": { - "joined_at": { - "type": "string" - }, - "afk_channel_id": { - "type": "string" - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - } + "APIRoleArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", - "id", - "invites", - "joined_at", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -449896,6 +469681,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -450061,6 +469852,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -450095,6 +469889,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -452056,6 +471851,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -452533,28 +472331,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -452619,6 +472425,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -452632,7 +472442,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -452970,10 +472781,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIRoleArray": { + "APIStickerArray": { "type": "array", "items": { - "$ref": "#/definitions/Role" + "$ref": "#/definitions/Sticker" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -454097,6 +473908,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -454262,6 +474079,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -454296,6 +474116,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -456257,6 +476078,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -456734,28 +476558,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -456820,6 +476652,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -456833,7 +476669,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -457171,10 +477008,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIStickerArray": { + "APITemplateArray": { "type": "array", "items": { - "$ref": "#/definitions/Sticker" + "$ref": "#/definitions/Template" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -458298,6 +478135,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -458463,6 +478306,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -458497,6 +478343,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -460458,6 +480305,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -460935,28 +480785,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -461021,6 +480879,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -461034,7 +480896,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -461372,10 +481235,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APITemplateArray": { + "APIGuildVoiceRegion": { "type": "array", "items": { - "$ref": "#/definitions/Template" + "$ref": "#/definitions/GuildVoiceRegion" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -462499,6 +482362,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -462664,6 +482533,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -462698,6 +482570,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -464659,6 +484532,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -465136,28 +485012,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -465222,6 +485106,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -465235,7 +485123,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -465573,11 +485462,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildVoiceRegion": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildVoiceRegion" + "APILimitsConfiguration": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/UserLimits" + }, + "guild": { + "$ref": "#/definitions/GuildLimits" + }, + "message": { + "$ref": "#/definitions/MessageLimits" + }, + "channel": { + "$ref": "#/definitions/ChannelLimits" + }, + "rate": { + "$ref": "#/definitions/RateLimits" + }, + "absoluteRate": { + "$ref": "#/definitions/GlobalRateLimits" + } }, + "additionalProperties": false, + "required": [ + "absoluteRate", + "channel", + "guild", + "message", + "rate", + "user" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -466700,6 +486615,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -466865,6 +486786,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -466899,6 +486823,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -468860,6 +488785,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -469337,28 +489265,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -469423,6 +489359,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -469436,7 +489376,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -469774,37 +489715,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APILimitsConfiguration": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/UserLimits" - }, - "guild": { - "$ref": "#/definitions/GuildLimits" - }, - "message": { - "$ref": "#/definitions/MessageLimits" - }, - "channel": { - "$ref": "#/definitions/ChannelLimits" - }, - "rate": { - "$ref": "#/definitions/RateLimits" - }, - "absoluteRate": { - "$ref": "#/definitions/GlobalRateLimits" - } + "APIStickerPackArray": { + "type": "array", + "items": { + "$ref": "#/definitions/StickerPack" }, - "additionalProperties": false, - "required": [ - "absoluteRate", - "channel", - "guild", - "message", - "rate", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -470927,6 +490842,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -471092,6 +491013,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -471126,6 +491050,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -473087,6 +493012,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -473564,28 +493492,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -473650,6 +493586,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -473663,7 +493603,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -474001,11 +493942,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIStickerPackArray": { - "type": "array", - "items": { - "$ref": "#/definitions/StickerPack" + "UpdatesResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pub_date": { + "type": "string" + }, + "url": { + "type": "string" + }, + "notes": { + "type": [ + "null", + "string" + ] + } }, + "additionalProperties": false, + "required": [ + "name", + "notes", + "pub_date", + "url" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -475128,6 +495090,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -475293,6 +495261,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -475327,6 +495298,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -477288,6 +497260,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -477765,28 +497740,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -477851,6 +497834,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -477864,7 +497851,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -478202,31 +498190,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UpdatesResponse": { + "UserNoteResponse": { "type": "object", "properties": { - "name": { + "note": { "type": "string" }, - "pub_date": { + "note_user_id": { "type": "string" }, - "url": { + "user_id": { "type": "string" - }, - "notes": { - "type": [ - "null", - "string" - ] } }, "additionalProperties": false, "required": [ - "name", - "notes", - "pub_date", - "url" + "note", + "note_user_id", + "user_id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -479350,6 +499331,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -479515,6 +499502,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -479549,6 +499539,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -481510,6 +501501,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -481987,28 +501981,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -482073,6 +502075,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -482086,7 +502092,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -482424,24 +502431,136 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserNoteResponse": { + "UserProfileResponse": { "type": "object", "properties": { - "note": { - "type": "string" + "user": { + "$ref": "#/definitions/PublicUser" }, - "note_user_id": { - "type": "string" + "connected_accounts": { + "$ref": "#/definitions/PublicConnectedAccount" }, - "user_id": { - "type": "string" + "premium_guild_since": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "mutual_guilds": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + "premium_type": { + "type": "integer" + }, + "profile_themes_experiment_bucket": { + "type": "integer" + }, + "user_profile": { + "$ref": "#/definitions/UserProfile" + }, + "guild_member": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "nick": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { + "type": "boolean" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, + "avatar": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "deaf", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" + ] + }, + "guild_member_profile": { + "additionalProperties": false, + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "accent_color": { + "type": "null" + } + }, + "required": [ + "accent_color", + "banner", + "bio", + "guild_id" + ] } }, "additionalProperties": false, "required": [ - "note", - "note_user_id", - "user_id" + "connected_accounts", + "mutual_guilds", + "premium_type", + "profile_themes_experiment_bucket", + "user", + "user_profile" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -483565,6 +503684,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -483730,6 +503855,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -483764,6 +503892,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -485725,6 +505854,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -486202,28 +506334,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -486288,6 +506428,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -486301,7 +506445,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -486599,177 +506744,78 @@ "mfa", "sms", "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" + "token" ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserProfileResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/PublicUser" - }, - "connected_accounts": { - "$ref": "#/definitions/PublicConnectedAccount" - }, - "premium_guild_since": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "mutual_guilds": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - }, - "premium_type": { - "type": "integer" - }, - "profile_themes_experiment_bucket": { - "type": "integer" - }, - "user_profile": { - "$ref": "#/definitions/UserProfile" }, - "guild_member": { - "additionalProperties": false, + "WebAuthnResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "premium_since": { - "type": "integer" - }, - "avatar": { + "webauthn": { "type": "string" }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "deaf", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ] - }, - "guild_member_profile": { - "additionalProperties": false, - "type": "object", - "properties": { - "guild_id": { + "ticket": { "type": "string" }, - "banner": { - "type": "string" + "mfa": { + "type": "boolean", + "enum": [ + true + ] }, - "bio": { - "type": "string" + "sms": { + "type": "boolean", + "enum": [ + false + ] }, - "accent_color": { + "token": { "type": "null" } }, + "additionalProperties": false, "required": [ - "accent_color", - "banner", - "bio", - "guild_id" + "mfa", + "sms", + "ticket", + "token", + "webauthn" ] } }, - "additionalProperties": false, - "required": [ - "connected_accounts", - "mutual_guilds", - "premium_type", - "profile_themes_experiment_bucket", - "user", - "user_profile" - ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserRelationsResponse": { + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + }, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -487892,6 +507938,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -488057,6 +508109,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -488091,6 +508146,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -490052,6 +510108,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -490529,28 +510588,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -490615,6 +510682,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -490628,7 +510699,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -490966,35 +511038,29 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } + "UserRelationshipsResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "nickname": { + "type": "null" + }, + "user": { + "$ref": "#/definitions/PublicUser" + } }, + "additionalProperties": false, + "required": [ + "id", + "nickname", + "type", + "user" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -492117,6 +512183,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -492282,6 +512354,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -492316,6 +512391,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -494277,6 +514353,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -494754,28 +514833,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -494840,6 +514927,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -494853,7 +514944,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -495191,28 +515283,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationshipsResponse": { + "WebAuthnCreateResponse": { "type": "object", "properties": { - "id": { + "name": { "type": "string" }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "nickname": { - "type": "null" - }, - "user": { - "$ref": "#/definitions/PublicUser" + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ "id", - "nickname", - "type", - "user" + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -496336,6 +516420,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -496501,6 +516591,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -496535,6 +516628,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -498496,6 +518590,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -498973,28 +519070,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -499059,6 +519164,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -499072,7 +519181,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -499410,20 +519520,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnCreateResponse": { + "WebhookCreateResponse": { "type": "object", "properties": { - "name": { - "type": "string" + "user": { + "$ref": "#/definitions/User" }, - "id": { - "type": "string" + "hook": { + "$ref": "#/definitions/Webhook" } }, "additionalProperties": false, "required": [ - "id", - "name" + "hook", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -500547,6 +520657,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -500712,6 +520828,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -500746,6 +520865,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -502707,6 +522827,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -503184,28 +523307,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -503270,6 +523401,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -503283,7 +523418,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -503621,21 +523757,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "hook": { - "$ref": "#/definitions/Webhook" - } - }, - "additionalProperties": false, - "required": [ - "hook", - "user" - ], + "ActivitySchema": { + "$ref": "#/definitions/ActivitySchema", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -504758,6 +524881,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -504923,6 +525052,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -504957,6 +525089,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -506918,6 +527051,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -507395,28 +527531,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -507481,6 +527625,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -507494,7 +527642,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -507832,8 +527981,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ActivitySchema": { - "$ref": "#/definitions/ActivitySchema", + "BulkDeleteSchema": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "messages" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -508956,6 +529117,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -509121,6 +529288,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -509155,6 +529325,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -511116,6 +531287,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -511593,28 +531767,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -511679,6 +531861,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -511692,7 +531878,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -512030,19 +532217,34 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BulkDeleteSchema": { + "MFAResponse": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "type": "string" - } + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" } }, "additionalProperties": false, "required": [ - "messages" + "mfa", + "sms", + "ticket", + "token" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -513166,6 +533368,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -513331,6 +533539,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -513365,6 +533576,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -515326,6 +535538,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -515803,28 +536018,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -515889,6 +536112,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -515902,7 +536129,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -516240,9 +536468,12 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MFAResponse": { + "WebAuthnResponse": { "type": "object", "properties": { + "webauthn": { + "type": "string" + }, "ticket": { "type": "string" }, @@ -516267,7 +536498,8 @@ "mfa", "sms", "ticket", - "token" + "token", + "webauthn" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -517391,6 +537623,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -517556,6 +537794,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -517590,6 +537831,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -519551,6 +539793,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -520028,28 +540273,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -520114,6 +540367,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -520127,7 +540384,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -520465,38 +540723,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] + "LoginResponse": { + "anyOf": [ + { + "$ref": "#/definitions/TokenResponse" }, - "sms": { - "type": "boolean", - "enum": [ - false - ] + { + "$ref": "#/definitions/MFAResponse" }, - "token": { - "type": "null" + { + "$ref": "#/definitions/WebAuthnResponse" } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -521620,6 +541857,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -521785,6 +542028,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -521819,6 +542065,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -523780,6 +544027,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -524257,28 +544507,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -524343,6 +544601,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -524356,7 +544618,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -524694,17 +544957,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "LoginResponse": { - "anyOf": [ - { - "$ref": "#/definitions/TokenResponse" - }, - { - "$ref": "#/definitions/MFAResponse" - }, - { - "$ref": "#/definitions/WebAuthnResponse" + "MemberNickChangeSchema": { + "type": "object", + "properties": { + "nick": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "nick" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -525828,6 +546090,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -525993,6 +546261,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -526027,6 +546298,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -527988,6 +548260,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -528465,28 +548740,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -528551,6 +548834,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -528564,7 +548851,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -528902,16 +549190,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberNickChangeSchema": { + "PruneSchema": { "type": "object", "properties": { - "nick": { - "type": "string" + "days": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "nick" + "days" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -530035,6 +550323,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -530200,6 +550494,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -530234,6 +550531,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -532195,6 +552493,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -532672,28 +552973,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -532758,6 +553067,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -532771,7 +553084,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -533109,16 +553423,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "PruneSchema": { + "UniqueUsernameAttemptResponse": { "type": "object", "properties": { - "days": { - "type": "integer" + "taken": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "days" + "taken" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -534242,6 +554556,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -534407,6 +554727,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -534441,6 +554764,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -536402,6 +556726,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -536879,28 +557206,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -536965,6 +557300,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -536978,7 +557317,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { @@ -538455,6 +558795,12 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, + "legacy_username": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -538620,6 +558966,9 @@ "$ref": "#/definitions/SecurityKey" } }, + "tag": { + "type": "string" + }, "id": { "type": "string" } @@ -538654,6 +559003,7 @@ "sessions", "settings", "system", + "tag", "username", "verified", "webauthn_enabled" @@ -540615,6 +560965,9 @@ "username": { "type": "string" }, + "global_name": { + "type": "string" + }, "discriminator": { "type": "string" }, @@ -541092,28 +561445,36 @@ "MinimalPublicUserDTO": { "type": "object", "properties": { - "avatar": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "global_name": { "type": [ "null", "string" - ] + ], + "default": null }, "discriminator": { "type": "string" }, - "id": { - "type": "string" - }, "public_flags": { "type": "integer" }, - "username": { - "type": "string" + "avatar": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ "discriminator", + "global_name", "id", "public_flags", "username" @@ -541178,6 +561539,10 @@ "type": "integer", "default": 1048576 }, + "minUsername": { + "type": "integer", + "default": 2 + }, "maxUsername": { "type": "integer", "default": 32 @@ -541191,7 +561556,8 @@ "required": [ "maxFriends", "maxGuilds", - "maxUsername" + "maxUsername", + "minUsername" ] }, "GuildLimits": { diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index 9e41b453f..e3af8bf71 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -54,6 +54,7 @@ export const NO_AUTHORIZATION_ROUTES = [ /\/guilds\/\d+\/widget\.(json|png)/, // Connections /\/connections\/\w+\/callback/, + "/unique-username/", ]; export const API_PREFIX = /^\/api(\/v\d+)?/; diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts index 6fa86021c..f832721f0 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts @@ -111,7 +111,7 @@ router.post( }) .catch((e) => { console.error( - `Failed to send password reset email to ${user.username}#${user.discriminator}: ${e}`, + `Failed to send password reset email to ${user.tag}: ${e}`, ); throw new HTTPError("Failed to send password reset email", 500); }); diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index de1cbd3d8..33fc60620 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -50,9 +50,18 @@ router.post( }), async (req: Request, res: Response) => { const body = req.body as RegisterSchema; - const { register, security, limits } = Config.get(); + const { register, security, limits, general } = Config.get(); const ip = getIpAdress(req); + if (!general.uniqueUsernames && body.unique_username_registration) { + throw FieldErrors({ + unique_username_registration: { + code: "UNIQUE_USERNAMES_DISABLED", + message: req.t("auth:register.UNIQUE_USERNAMES_DISABLED"), + }, + }); + } + // Reg tokens // They're a one time use token that bypasses registration limits ( rates, disabled reg, etc ) let regTokenUsed = false; diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts index 5ca645c00..ed2670ca1 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts @@ -43,6 +43,7 @@ router.post( username: "", avatar: "", discriminator: "", + global_name: "", public_flags: 64, }, attachments: [], diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index a5bfcfd73..6741790c8 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -171,11 +171,13 @@ router.get( if ((y.user_ids || []).includes(req.user_id)) y.me = true; delete y.user_ids; }); + const { uniqueUsernames } = Config.get().general; if (!x.author) x.author = User.create({ id: "4", - discriminator: "0000", - username: "Spacebar Ghost", + discriminator: uniqueUsernames ? "0" : "0000", + username: "spacebarghost", + global_name: "Spacebar Ghost", public_flags: 0, }); x.attachments?.forEach((y: Attachment) => { diff --git a/src/api/routes/experiments.ts b/src/api/routes/experiments.ts index cd206d79f..019ee2c58 100644 --- a/src/api/routes/experiments.ts +++ b/src/api/routes/experiments.ts @@ -16,14 +16,26 @@ along with this program. If not, see . */ -import { Router, Response, Request } from "express"; import { route } from "@spacebar/api"; +import { Config, Experiments } from "@spacebar/util"; +import { Request, Response, Router } from "express"; const router = Router(); router.get("/", route({}), (req: Request, res: Response) => { - // TODO: - res.send({ fingerprint: "", assignments: [], guild_experiments: [] }); + const { uniqueUsernames } = Config.get().general; + + const data: Experiments = { + fingerprint: "fingerprint", + assignments: [], + guild_experiments: [], + }; + // this enables the pomelo/unique usernames UI in the official clients + if (uniqueUsernames) { + // hash, revision, bucket, override, population, hash_result, as_mode + data.assignments.push([268309827, 0, 1, -1, 7, 8062, 0, 0]); + } + res.send(data); }); export default router; diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index 9aeb27f0e..87fcc7f17 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -70,6 +70,7 @@ router.get( user: { username: user.username, discriminator: user.discriminator, + global_name: user.global_name, id: user.id, avatar: user.avatar, public_flags: user.public_flags, diff --git a/src/api/routes/guilds/#guild_id/messages/search.ts b/src/api/routes/guilds/#guild_id/messages/search.ts index 637d1e438..158c83f31 100644 --- a/src/api/routes/guilds/#guild_id/messages/search.ts +++ b/src/api/routes/guilds/#guild_id/messages/search.ts @@ -149,6 +149,7 @@ router.get( avatar: x.author?.avatar, avatar_decoration: null, discriminator: x.author?.discriminator, + global_name: x.author?.global_name, public_flags: x.author?.public_flags, }, attachments: x.attachments, diff --git a/src/api/routes/oauth2/authorize.ts b/src/api/routes/oauth2/authorize.ts index 2f2351f38..b7d1cb71b 100644 --- a/src/api/routes/oauth2/authorize.ts +++ b/src/api/routes/oauth2/authorize.ts @@ -89,6 +89,7 @@ router.get( "username", "avatar", "discriminator", + "global_name", "public_flags", ], }); @@ -137,6 +138,7 @@ router.get( avatar: user.avatar, avatar_decoration: null, // TODO discriminator: user.discriminator, + global_name: user.global_name, public_flags: user.public_flags, }, application: { @@ -159,6 +161,7 @@ router.get( avatar: bot.avatar, avatar_decoration: null, // TODO discriminator: bot.discriminator, + global_name: bot.global_name, public_flags: bot.public_flags, bot: true, approximated_guild_count: 0, // TODO diff --git a/src/api/routes/unique-username/username-attempt-unauthed.ts b/src/api/routes/unique-username/username-attempt-unauthed.ts new file mode 100644 index 000000000..b225a2996 --- /dev/null +++ b/src/api/routes/unique-username/username-attempt-unauthed.ts @@ -0,0 +1,34 @@ +import { route } from "@spacebar/api"; +import { Config, UniqueUsernameAttemptSchema, User } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +router.post( + "/", + route({ + requestBody: "UniqueUsernameAttemptSchema", + responses: { + 200: { body: "UniqueUsernameAttemptResponse" }, + 400: { body: "APIErrorResponse" }, + }, + description: + "Checks whether a unique username is available for the user to claim.", + }), + async (req: Request, res: Response) => { + const body = req.body as UniqueUsernameAttemptSchema; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + res.json({ + taken: !(await User.isUsernameAvailable(body.username)), + }); + }, +); + +export default router; diff --git a/src/api/routes/unique-username/username-suggestions-unauthed.ts b/src/api/routes/unique-username/username-suggestions-unauthed.ts new file mode 100644 index 000000000..554586af8 --- /dev/null +++ b/src/api/routes/unique-username/username-suggestions-unauthed.ts @@ -0,0 +1,39 @@ +import { route } from "@spacebar/api"; +import { Config } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +router.get( + "/", + route({ + description: + "Returns a suggested unique username string based on the current user's username.", + query: { + global_name: { + type: "string", + required: false, + }, + }, + responses: { + 400: { body: "APIErrorResponse" }, + }, + }), + async (req: Request, res: Response) => { + const globalName = req.query.globalName as string | undefined; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + // TODO: return a random suggestion + if (!globalName) return res.json({ username: "" }); + // TODO: return a suggestion based on the globalName + return res.json({ username: globalName }); + }, +); + +export default router; diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index eecec0f35..4639b84cd 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -111,6 +111,7 @@ router.get( user_profile: userProfile, guild_member: guild_member?.toPublicMember(), guild_member_profile: guild_id && guildMemberProfile, + legacy_username: user.legacy_username, // part of the uniqueUsernames feature, only used for migrated accounts }); }, ); diff --git a/src/api/routes/users/#id/relationships.ts b/src/api/routes/users/#id/relationships.ts index 3737ca004..323ce44b5 100644 --- a/src/api/routes/users/#id/relationships.ts +++ b/src/api/routes/users/#id/relationships.ts @@ -58,6 +58,7 @@ router.get( username: relation_user.username, avatar: relation_user.avatar, discriminator: relation_user.discriminator, + global_name: relation_user.global_name, public_flags: relation_user.public_flags, }); } diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index ad11a4281..5c3cfb29c 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -70,6 +70,8 @@ router.patch( }), async (req: Request, res: Response) => { const body = req.body as UserModifySchema; + const { uniqueUsernames } = Config.get().general; + const { minUsername, maxUsername } = Config.get().limits.user; const user = await User.findOneOrFail({ where: { id: req.user_id }, @@ -141,6 +143,47 @@ router.patch( } if (body.username) { + // password is required to update username + if (!body.password) + throw FieldErrors({ + password: { + message: req.t("common:field.PASSWORD_DOES_NOT_MATCH"), + code: "PASSWORD_DOES_NOT_MATCH", + }, + }); + + // handle username changes (pomelo) + if (uniqueUsernames) { + body.username = body.username.toLowerCase(); + // validate username length + if ( + body.username.length < minUsername || + body.username.length > maxUsername + ) { + throw FieldErrors({ + username: { + code: "BASE_TYPE_BAD_LENGTH", + message: req.t( + "common:field.BASE_TYPE_BAD_LENGTH", + { length: `${minUsername} and ${maxUsername}` }, + ), + }, + }); + } + + // check if username is already taken (pomelo only) + if (!(await User.isUsernameAvailable(body.username))) + throw FieldErrors({ + username: { + code: "USERNAME_ALREADY_TAKEN", + message: req.t( + "common:field.USERNAME_ALREADY_TAKEN", + ), + }, + }); + } + + // handle username changes (old username system) const check_username = body?.username?.replace(/\s/g, ""); if (!check_username) { throw FieldErrors({ @@ -151,7 +194,6 @@ router.patch( }); } - const { maxUsername } = Config.get().limits.user; if (check_username.length > maxUsername) { throw FieldErrors({ username: { @@ -163,6 +205,17 @@ router.patch( } if (body.discriminator) { + if (uniqueUsernames) { + throw FieldErrors({ + username: { + code: "DISCRIMINATOR_UPDATE_BLOCKED", + message: req.t( + "common:field.DISCRIMINATOR_UPDATE_BLOCKED", + ), + }, + }); + } + if ( await User.findOne({ where: { @@ -174,7 +227,7 @@ router.patch( throw FieldErrors({ discriminator: { code: "INVALID_DISCRIMINATOR", - message: "This discriminator is already in use.", + message: req.t("common.field.INVALID_DISCRIMINATOR"), }, }); } diff --git a/src/api/routes/users/@me/pomelo-attempt.ts b/src/api/routes/users/@me/pomelo-attempt.ts new file mode 100644 index 000000000..d4327f618 --- /dev/null +++ b/src/api/routes/users/@me/pomelo-attempt.ts @@ -0,0 +1,35 @@ +import { route } from "@spacebar/api"; +import { Config, UniqueUsernameAttemptSchema, User } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +// https://discord-userdoccers.vercel.app/resources/user#get-pomelo-eligibility +router.post( + "/", + route({ + requestBody: "UniqueUsernameAttemptSchema", + responses: { + 200: { body: "UniqueUsernameAttemptResponse" }, + 400: { body: "APIErrorResponse" }, + }, + description: + "Checks whether a unique username is available for the user to claim.", + }), + async (req: Request, res: Response) => { + const body = req.body as UniqueUsernameAttemptSchema; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + res.json({ + taken: !(await User.isUsernameAvailable(body.username)), + }); + }, +); + +export default router; diff --git a/src/api/routes/users/@me/pomelo-suggestions.ts b/src/api/routes/users/@me/pomelo-suggestions.ts new file mode 100644 index 000000000..c70336bf1 --- /dev/null +++ b/src/api/routes/users/@me/pomelo-suggestions.ts @@ -0,0 +1,37 @@ +import { route } from "@spacebar/api"; +import { Config, User } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +// https://discord-userdoccers.vercel.app/resources/user#get-pomelo-suggestions +router.get( + "/", + route({ + description: + "Returns a suggested unique username string based on the current user's username.", + responses: { + 400: { body: "APIErrorResponse" }, + }, + }), + async (req: Request, res: Response) => { + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + const user = await User.findOneOrFail({ + where: { + id: req.user_id, + }, + }); + + // TODO: return a suggestion based on the users current username + return res.json({ username: user.username.toString() }); + }, +); + +export default router; diff --git a/src/api/routes/users/@me/pomelo.ts b/src/api/routes/users/@me/pomelo.ts new file mode 100644 index 000000000..e10beaa41 --- /dev/null +++ b/src/api/routes/users/@me/pomelo.ts @@ -0,0 +1,61 @@ +import { route } from "@spacebar/api"; +import { + Config, + FieldErrors, + UniqueUsernameAttemptSchema, + User, +} from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +const router = Router(); + +// https://discord-userdoccers.vercel.app/resources/user#create-pomelo-migration +router.post( + "/", + route({ + description: + "Claims a unique username for the user. Returns the updated user object on success. Fires a User Update Gateway event.", + requestBody: "UniqueUsernameAttemptSchema", + responses: { + 200: { body: "PrivateUserResponse" }, + 400: { body: "APIErrorResponse" }, + }, + }), + async (req: Request, res: Response) => { + const body = req.body as UniqueUsernameAttemptSchema; + const { uniqueUsernames } = Config.get().general; + if (!uniqueUsernames) { + throw new HTTPError( + "Unique Usernames feature is not enabled on this instance.", + 400, + ); + } + + const isAvailable = await User.isUsernameAvailable(body.username); + + if (!isAvailable) { + throw FieldErrors({ + username: { + code: "USERNAME_TOO_MANY_USERS", + message: + req?.t("auth:register.USERNAME_TOO_MANY_USERS") || "", + }, + }); + } + + const user = await User.findOneOrFail({ + where: { + id: req.user_id, + }, + }); + + user.legacy_username = user.username; + user.username = body.username; + user.discriminator = "0"; + const newUser = await user.save(); + + res.json(newUser.toPrivateUser()); + }, +); + +export default router; diff --git a/src/api/routes/users/@me/relationships.ts b/src/api/routes/users/@me/relationships.ts index bce0a6549..5fc55e585 100644 --- a/src/api/routes/users/@me/relationships.ts +++ b/src/api/routes/users/@me/relationships.ts @@ -114,19 +114,26 @@ router.post( }, }), async (req: Request, res: Response) => { + const { uniqueUsernames } = Config.get().general; + const where = uniqueUsernames + ? { + // TODO: uniqueUsernames: should we use username or add global_name property to the request? + global_name: req.body.username, + } + : { + discriminator: String(req.body.discriminator).padStart( + 4, + "0", + ), //Discord send the discriminator as integer, we need to add leading zeroes + username: req.body.username, + }; return await updateRelationship( req, res, await User.findOneOrFail({ relations: ["relationships", "relationships.to"], select: userProjection, - where: { - discriminator: String(req.body.discriminator).padStart( - 4, - "0", - ), //Discord send the discriminator as integer, we need to add leading zeroes - username: req.body.username, - }, + where, }), req.body.type, ); diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index 731086f1a..35bae5149 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.ts @@ -17,6 +17,7 @@ */ import { + Config, ConnectedAccount, ConnectedAccountCommonOAuthTokenResponse, Connection, @@ -31,6 +32,7 @@ interface UserResponse { id: string; username: string; discriminator: string; + global_name: string | null; avatar_url: string | null; } @@ -128,11 +130,14 @@ export default class DiscordConnection extends Connection { if (exists) return null; + const { uniqueUsernames } = Config.get().general; return await this.createConnection({ user_id: userId, external_id: userInfo.id, friend_sync: params.friend_sync, - name: `${userInfo.username}#${userInfo.discriminator}`, + name: uniqueUsernames + ? userInfo.username + : `${userInfo.username}#${userInfo.discriminator}`, type: this.id, }); } diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 330ce5610..74bc6ab15 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -464,6 +464,10 @@ export async function onIdentify(this: WebSocket, data: Payload) { ); // TODO: ready supplemental + const disclosures = []; + // this tells the client the user can migrate + if (Config.get().general.uniqueUsernames) disclosures.push("pomelo"); + await Send(this, { op: OPCodes.DISPATCH, t: EVENTEnum.ReadySupplemental, @@ -478,7 +482,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { lazy_private_channels: [], guilds: [], // { voice_states: [], id: string, embedded_activities: [] } // embedded_activities are users currently in an activity? - disclose: [], // Config.get().general.uniqueUsernames ? ["pomelo"] : [] + disclose: disclosures, }, }); diff --git a/src/util/config/types/GeneralConfiguration.ts b/src/util/config/types/GeneralConfiguration.ts index cff8c527b..b5c8b2729 100644 --- a/src/util/config/types/GeneralConfiguration.ts +++ b/src/util/config/types/GeneralConfiguration.ts @@ -29,4 +29,5 @@ export class GeneralConfiguration { image: string | null = null; instanceId: string = Snowflake.generate(); autoCreateBotUsers: boolean = false; + uniqueUsernames: boolean = false; } diff --git a/src/util/config/types/subconfigurations/limits/UserLimits.ts b/src/util/config/types/subconfigurations/limits/UserLimits.ts index 8f9b1a97f..77092344c 100644 --- a/src/util/config/types/subconfigurations/limits/UserLimits.ts +++ b/src/util/config/types/subconfigurations/limits/UserLimits.ts @@ -18,6 +18,7 @@ export class UserLimits { maxGuilds: number = 1048576; + minUsername: number = 2; maxUsername: number = 32; maxFriends: number = 5000; } diff --git a/src/util/dtos/UserDTO.ts b/src/util/dtos/UserDTO.ts index a24c8d960..063490fa4 100644 --- a/src/util/dtos/UserDTO.ts +++ b/src/util/dtos/UserDTO.ts @@ -19,17 +19,20 @@ import { User } from "../entities"; export class MinimalPublicUserDTO { - avatar?: string | null; - discriminator: string; id: string; - public_flags: number; username: string; + global_name: string | null = null; + discriminator: string; + public_flags: number; + avatar?: string | null; constructor(user: User) { - this.avatar = user.avatar; - this.discriminator = user.discriminator; this.id = user.id; - this.public_flags = user.public_flags; this.username = user.username; + this.discriminator = user.discriminator; + this.public_flags = user.public_flags; + this.avatar = user.avatar; + + if (user.global_name) this.global_name = user.global_name; } } diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index c6582b00a..07b68b6d8 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -37,6 +37,7 @@ import { UserSettings } from "./UserSettings"; export enum PublicUserEnum { username, + global_name, discriminator, id, public_flags, @@ -90,8 +91,14 @@ export class User extends BaseClass { @Column() username: string; // username max length 32, min 2 (should be configurable) + @Column({ nullable: true }) + global_name?: string; // puyo: part of the uniqueUsernames feature, this is the users "nickname" + + @Column({ nullable: true }) + legacy_username?: string; // puyo: part of the uniqueUsernames feature, shows the users old username (only used for migrated accounts) + @Column() - discriminator: string; // opaque string: 4 digits on discord.com + discriminator: string; // opaque string: 4 digits on discord.com, 0 for uniqueUsernames @Column({ nullable: true }) avatar?: string; // hash of the user avatar @@ -233,7 +240,7 @@ export class User extends BaseClass { // TODO: I don't like this method? validate() { - if (this.discriminator) { + if (this.discriminator && this.discriminator !== "0") { const discrim = Number(this.discriminator); if ( isNaN(discrim) || @@ -323,12 +330,21 @@ export class User extends BaseClass { } } + public get tag(): string { + const { uniqueUsernames } = Config.get().general; + + return uniqueUsernames + ? this.username + : `${this.username}#${this.discriminator}`; + } + static async register({ email, username, password, id, req, + global_name, }: { username: string; password?: string; @@ -336,20 +352,57 @@ export class User extends BaseClass { date_of_birth?: Date; // "2000-04-03" id?: string; req?: Request; + global_name?: string; }) { + const { uniqueUsernames } = Config.get().general; + const { minUsername, maxUsername } = Config.get().limits.user; + // trim special uf8 control characters -> Backspace, Newline, ... username = trimSpecial(username); - const discriminator = await User.generateDiscriminator(username); - if (!discriminator) { - // We've failed to generate a valid and unused discriminator - throw FieldErrors({ - username: { - code: "USERNAME_TOO_MANY_USERS", - message: - req?.t("auth:register.USERNAME_TOO_MANY_USERS") || "", - }, - }); + let discriminator: string | undefined; + if (uniqueUsernames) discriminator = "0"; + else { + discriminator = await User.generateDiscriminator(username); + if (!discriminator) { + // We've failed to generate a valid and unused discriminator + throw FieldErrors({ + username: { + code: "USERNAME_TOO_MANY_USERS", + message: + req?.t("auth:register.USERNAME_TOO_MANY_USERS") || + "", + }, + }); + } + } + + if (uniqueUsernames) { + // check if there is already an account with this username + if (!(await User.isUsernameAvailable(username))) + throw FieldErrors({ + username: { + code: "USERNAME_ALREADY_TAKEN", + message: + req?.t("common:field.USERNAME_ALREADY_TAKEN") || "", + }, + }); + + // validate username length + if ( + username.length < minUsername || + username.length > maxUsername + ) { + throw FieldErrors({ + username: { + code: "BASE_TYPE_BAD_LENGTH", + message: + req?.t("common:field.BASE_TYPE_BAD_LENGTH", { + length: `${minUsername} and ${maxUsername}`, + }) || "", + }, + }); + } } // TODO: save date_of_birth @@ -363,7 +416,8 @@ export class User extends BaseClass { }); const user = User.create({ - username: username, + username: uniqueUsernames ? username.toLowerCase() : username, + global_name: uniqueUsernames ? global_name : undefined, discriminator, id: id || Snowflake.generate(), email: email, @@ -373,7 +427,6 @@ export class User extends BaseClass { }, extended_settings: "{}", settings: settings, - premium_since: Config.get().defaults.user.premium ? new Date() : undefined, @@ -391,7 +444,7 @@ export class User extends BaseClass { if (!Config.get().defaults.user.verified && email) { await Email.sendVerifyEmail(user, email).catch((e) => { console.error( - `Failed to send verification email to ${user.username}#${user.discriminator}: ${e}`, + `Failed to send verification email to ${user.tag}: ${e}`, ); }); } @@ -408,6 +461,17 @@ export class User extends BaseClass { return user; } + + static async isUsernameAvailable(username: string) { + // TODO: implement regex check? + const count = await User.count({ + where: { + username: username.toLowerCase(), + }, + }); + + return count === 0; + } } export const CUSTOM_USER_FLAG_OFFSET = BigInt(1) << BigInt(32); diff --git a/src/util/interfaces/Experiments.ts b/src/util/interfaces/Experiments.ts new file mode 100644 index 000000000..48c53276a --- /dev/null +++ b/src/util/interfaces/Experiments.ts @@ -0,0 +1,36 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +export type GuildExperiment = [ + number, + string | null, + number, + unknown[], + unknown[], + unknown[], + unknown | null, + unknown | null, + number, + number, +]; + +export interface Experiments { + fingerprint: string; + assignments: number[][]; + guild_experiments: GuildExperiment[]; +} diff --git a/src/util/interfaces/index.ts b/src/util/interfaces/index.ts index 6620ba32d..e669e49ec 100644 --- a/src/util/interfaces/index.ts +++ b/src/util/interfaces/index.ts @@ -19,6 +19,7 @@ export * from "./Activity"; export * from "./ConnectedAccount"; export * from "./Event"; +export * from "./Experiments"; export * from "./GuildWelcomeScreen"; export * from "./Interaction"; export * from "./Presence"; diff --git a/src/util/schemas/RelationshipPostSchema.ts b/src/util/schemas/RelationshipPostSchema.ts index 066ecfd8e..8b9f8611d 100644 --- a/src/util/schemas/RelationshipPostSchema.ts +++ b/src/util/schemas/RelationshipPostSchema.ts @@ -16,6 +16,7 @@ along with this program. If not, see . */ +// TODO: uniqueUsernames? export interface RelationshipPostSchema { discriminator: string; username: string; diff --git a/src/util/schemas/UniqueUsernameAttemptSchema.ts b/src/util/schemas/UniqueUsernameAttemptSchema.ts new file mode 100644 index 000000000..39ebb25f2 --- /dev/null +++ b/src/util/schemas/UniqueUsernameAttemptSchema.ts @@ -0,0 +1,3 @@ +export interface UniqueUsernameAttemptSchema { + username: string; +} diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts index e155b9af4..72d15dcb6 100644 --- a/src/util/schemas/UserModifySchema.ts +++ b/src/util/schemas/UserModifySchema.ts @@ -38,4 +38,5 @@ export interface UserModifySchema { * @maxLength 4 */ discriminator?: string; + global_name?: string; } diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index 44a504cda..f8fd5365f 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -66,6 +66,7 @@ export * from "./TemplateModifySchema"; export * from "./TotpDisableSchema"; export * from "./TotpEnableSchema"; export * from "./TotpSchema"; +export * from "./UniqueUsernameAttemptSchema"; export * from "./UserDeleteSchema"; export * from "./UserGuildSettingsSchema"; export * from "./UserModifySchema"; diff --git a/src/util/schemas/responses/GuildBansResponse.ts b/src/util/schemas/responses/GuildBansResponse.ts index 77c95a48d..0505327a5 100644 --- a/src/util/schemas/responses/GuildBansResponse.ts +++ b/src/util/schemas/responses/GuildBansResponse.ts @@ -21,6 +21,7 @@ export interface GuildBansResponse { user: { username: string; discriminator: string; + global_name?: string; id: string; avatar: string | null; public_flags: number; diff --git a/src/util/schemas/responses/GuildWidgetJsonResponse.ts b/src/util/schemas/responses/GuildWidgetJsonResponse.ts index bd6923041..320f14dde 100644 --- a/src/util/schemas/responses/GuildWidgetJsonResponse.ts +++ b/src/util/schemas/responses/GuildWidgetJsonResponse.ts @@ -30,6 +30,7 @@ export interface GuildWidgetJsonResponse { members: { id: string; username: string; + global_name: string | null; discriminator: string; avatar: string | null; status: ClientStatus; diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index fa169c253..0f4f9c79f 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.ts @@ -60,6 +60,9 @@ export type APIDMChannelArray = DmChannelDTO[]; export type APIBackupCodeArray = BackupCode[]; +export type PrivateUserResponse = APIPrivateUser; +export type PublicUserResponse = APIPublicUser; + export interface UserUpdateResponse extends APIPrivateUser { newToken?: string; } diff --git a/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts b/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts new file mode 100644 index 000000000..b9804f9cc --- /dev/null +++ b/src/util/schemas/responses/UniqueUsernameAttemptResponse.ts @@ -0,0 +1,3 @@ +export interface UniqueUsernameAttemptResponse { + taken: boolean; +} diff --git a/src/util/schemas/responses/UserRelationsResponse.ts b/src/util/schemas/responses/UserRelationsResponse.ts index 808dd3d33..586c8fac9 100644 --- a/src/util/schemas/responses/UserRelationsResponse.ts +++ b/src/util/schemas/responses/UserRelationsResponse.ts @@ -19,6 +19,7 @@ import { User } from "@spacebar/util"; export type UserRelationsResponse = (Pick & Pick & + Pick & Pick & Pick & Pick)[]; diff --git a/src/util/util/email/index.ts b/src/util/util/email/index.ts index 619cc5c3f..b7df5cb94 100644 --- a/src/util/util/email/index.ts +++ b/src/util/util/email/index.ts @@ -115,6 +115,7 @@ export const Email: { const replacements = [ ["{instanceName}", instanceName], ["{userUsername}", user.username], + ["{userGlobalName}", user.global_name], ["{userDiscriminator}", user.discriminator], ["{userId}", user.id], ["{phoneNumber}", user.phone?.slice(-4)],