From 41a2612fe32b65bcd5565c56195b2d407182598e Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 5 Jun 2024 05:53:05 +0200 Subject: [PATCH 1/8] Remove duplicated "border-radius" CSS property --- assets/email_templates/new_login_location.html | 3 +-- assets/email_templates/password_reset_request.html | 3 +-- assets/email_templates/verify_email.html | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/assets/email_templates/new_login_location.html b/assets/email_templates/new_login_location.html index 8c188def..f1c5f8c5 100644 --- a/assets/email_templates/new_login_location.html +++ b/assets/email_templates/new_login_location.html @@ -73,7 +73,6 @@ Date: Wed, 5 Jun 2024 06:01:44 +0200 Subject: [PATCH 2/8] API /:guild_id/bans compat - Fix GET Ban using "ban"/"user" instead of "user_id" in params, making it unusable - Return a processed user object instead of the raw DB one - Silently ignore already banned users to prevent duplicate bans in the DB - Return HTTP 204 on successful bans instead of the raw DB ban object --- src/api/routes/guilds/#guild_id/bans.ts | 31 ++++++++++++++----------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index d399e549..ab1b5cbd 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -1,17 +1,17 @@ /* 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 . */ @@ -19,7 +19,6 @@ import { getIpAdress, route } from "@spacebar/api"; import { Ban, - BanModeratorSchema, BanRegistrySchema, DiscordApiErrors, GuildBanAddEvent, @@ -82,7 +81,7 @@ router.get( ); router.get( - "/:user", + "/:user_id", route({ permission: "BAN_MEMBERS", responses: { @@ -98,8 +97,7 @@ router.get( }, }), async (req: Request, res: Response) => { - const { guild_id } = req.params; - const user_id = req.params.ban; + const { guild_id, user_id } = req.params; let ban = (await Ban.findOneOrFail({ where: { guild_id: guild_id, user_id: user_id }, @@ -108,13 +106,12 @@ router.get( if (ban.user_id === ban.executor_id) throw DiscordApiErrors.UNKNOWN_BAN; // pretend self-bans don't exist to prevent victim chasing - /* Filter secret from registry. */ + const banInfo = { + user: await User.getPublicUser(ban.user_id), + reason: ban.reason, + } - ban = ban as BanModeratorSchema; - - delete ban.ip; - - return res.json(ban); + return res.json(banInfo); }, ); @@ -151,6 +148,12 @@ router.put( if (req.permission?.cache.guild?.owner_id === banned_user_id) throw new HTTPError("You can't ban the owner", 400); + const existingBan = await Ban.findOne({ + where: { guild_id: guild_id, user_id: banned_user_id }, + }); + // Bans on already banned users are silently ignored + if (existingBan) return res.status(204).send(); + const banned_user = await User.getPublicUser(banned_user_id); const ban = Ban.create({ @@ -174,7 +177,7 @@ router.put( } as GuildBanAddEvent), ]); - return res.json(ban); + return res.status(204).send(); }, ); From 92dea0e89cc5f51e4c6b795dc40788df65407e54 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 5 Jun 2024 06:27:39 +0200 Subject: [PATCH 3/8] Add Bulk Ban endpoint - /:guild_id/bulk-ban endpoint - Support multiple required permissions for endpoints (untested as I don't know where those are set) - New API error BULK_BAN_FAILED --- assets/openapi.json | 749 +- assets/schemas.json | 68161 ++---------------- package.json | 1 + src/api/routes/guilds/#guild_id/bulk-ban.ts | 124 + src/api/util/handlers/route.ts | 22 +- src/util/schemas/BulkBanSchema.ts | 22 + src/util/util/Constants.ts | 12 +- 7 files changed, 5054 insertions(+), 64037 deletions(-) create mode 100644 src/api/routes/guilds/#guild_id/bulk-ban.ts create mode 100644 src/util/schemas/BulkBanSchema.ts diff --git a/assets/openapi.json b/assets/openapi.json index a2249dc1..f649c9b2 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -61,109 +61,208 @@ "read_states" ] }, - "DiagnosticsChannel.Response": { + "ConnectedAccountCommonOAuthTokenResponse": { "type": "object", "properties": { - "statusCode": { - "type": "integer" - }, - "statusText": { + "access_token": { "type": "string" }, - "headers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "integer" - } - } - } + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" } }, "required": [ - "headers", - "statusCode", - "statusText" + "access_token", + "scope", + "token_type" ] }, - "Headers": { + "ApplicationAuthorizeSchema": { "type": "object", "properties": { - "append": { - "type": "object", - "additionalProperties": false + "authorize": { + "type": "boolean" }, - "delete": { - "type": "object", - "additionalProperties": false + "guild_id": { + "type": "string" }, - "get": { - "type": "object", - "additionalProperties": false + "permissions": { + "type": "string" }, - "has": { - "type": "object", - "additionalProperties": false + "captcha_key": { + "type": "string" }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false + "code": { + "type": "string" } }, "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" + "authorize", + "guild_id", + "permissions" ] }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" + "ApplicationCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "team_id": { + "type": [ + "string", + "integer" + ] + } + }, + "required": [ + "name" + ] + }, + "ApplicationModifySchema": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "interactions_endpoint_url": { + "type": "string" + }, + "max_participants": { + "type": "integer", + "nullable": true + }, + "name": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "role_connections_verification_url": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "terms_of_service_url": { + "type": "string" + }, + "bot_public": { + "type": "boolean" + }, + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + } + }, + "BackupCodesChallengeSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "required": [ + "password" + ] + }, + "BanCreateSchema": { + "type": "object", + "properties": { + "delete_message_seconds": { + "type": "string" + }, + "delete_message_days": { + "type": "string" + }, + "reason": { + "type": "string" + } + } + }, + "BanModeratorSchema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "executor_id": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ] + }, + "BanRegistrySchema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "executor_id": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ] + }, + "BotModifySchema": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + } + } }, "ChannelPermissionOverwriteType": { "enum": [ @@ -3543,14 +3642,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -4263,372 +4362,6 @@ "webauthn" ] }, - "_Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/components/schemas/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ] - }, - "global.Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/components/schemas/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ] - }, - "ConnectedAccountCommonOAuthTokenResponse": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - } - }, - "required": [ - "access_token", - "scope", - "token_type" - ] - }, - "ExpressResponse": { - "type": "object" - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "captcha_key": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "required": [ - "authorize", - "guild_id", - "permissions" - ] - }, - "ApplicationCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "team_id": { - "type": [ - "string", - "integer" - ] - } - }, - "required": [ - "name" - ] - }, - "ApplicationModifySchema": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "interactions_endpoint_url": { - "type": "string" - }, - "max_participants": { - "type": "integer", - "nullable": true - }, - "name": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "role_connections_verification_url": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "terms_of_service_url": { - "type": "string" - }, - "bot_public": { - "type": "boolean" - }, - "bot_require_code_grant": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - } - }, - "BackupCodesChallengeSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "required": [ - "password" - ] - }, - "BanCreateSchema": { - "type": "object", - "properties": { - "delete_message_seconds": { - "type": "string" - }, - "delete_message_days": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "BanModeratorSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ] - }, - "BanRegistrySchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ] - }, - "BotModifySchema": { - "type": "object", - "properties": { - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, "ChannelPermissionOverwriteSchema": { "type": "object", "properties": { @@ -5486,9 +5219,6 @@ "MessageEditSchema": { "type": "object", "properties": { - "embed": { - "$ref": "#/components/schemas/Embed" - }, "file": { "type": "object", "properties": { @@ -5501,29 +5231,12 @@ "filename" ] }, + "embed": { + "$ref": "#/components/schemas/Embed" + }, "flags": { "type": "integer" }, - "attachments": { - "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id" - ] - } - }, "content": { "type": "string" }, @@ -5597,6 +5310,26 @@ "payload_json": { "type": "string" }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + } + }, "sticker_ids": { "type": "array", "items": { @@ -13994,6 +13727,62 @@ ] } }, + "/guilds/{guild_id}/bulk-ban/": { + "post": { + "x-permission-required": "BAN_MEMBERS", + "security": [ + { + "bearer": [] + } + ], + "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}/bans/": { "get": { "x-permission-required": "BAN_MEMBERS", @@ -14040,7 +13829,7 @@ ] } }, - "/guilds/{guild_id}/bans/{user}": { + "/guilds/{guild_id}/bans/{user_id}": { "get": { "x-permission-required": "BAN_MEMBERS", "security": [ @@ -14091,21 +13880,19 @@ "description": "guild_id" }, { - "name": "user", + "name": "user_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "user" + "description": "user_id" } ], "tags": [ "guilds" ] - } - }, - "/guilds/{guild_id}/bans/{user_id}": { + }, "put": { "x-permission-required": "BAN_MEMBERS", "security": [ diff --git a/assets/schemas.json b/assets/schemas.json index ecc87b03..7a57dfcf 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -32,8770 +32,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "DiagnosticsChannel.Response": { - "type": "object", - "properties": { - "statusCode": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "integer" - } - } - } - } - }, - "additionalProperties": false, - "required": [ - "headers", - "statusCode", - "statusText" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "_Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/definitions/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/definitions/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" - }, - "global.Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/definitions/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/definitions/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" - }, "ConnectedAccountCommonOAuthTokenResponse": { "type": "object", "properties": { @@ -8821,8581 +57,6 @@ "scope", "token_type" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" - }, - "ExpressResponse": { - "type": "object", - "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "ApplicationAuthorizeSchema": { @@ -17423,4291 +84,6 @@ "guild_id", "permissions" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "ApplicationCreateSchema": { @@ -21727,4291 +103,6 @@ "required": [ "name" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "ApplicationModifySchema": { @@ -26061,4291 +152,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "BackupCodesChallengeSchema": { @@ -30359,4291 +165,6 @@ "required": [ "password" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "BanCreateSchema": { @@ -34660,4291 +181,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "BanModeratorSchema": { @@ -38973,4291 +209,6 @@ "id", "user_id" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "BanRegistrySchema": { @@ -43289,4291 +240,6 @@ "id", "user_id" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "BotModifySchema": { @@ -47587,4291 +253,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "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" - }, - "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" - } - }, - "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", - "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", - "flags", - "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" - }, - "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": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "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" - } - }, - "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": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "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 - }, - "maxUsername": { - "type": "integer", - "default": 32 - }, - "maxFriends": { - "type": "integer", - "default": 5000 - } - }, - "additionalProperties": false, - "required": [ - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "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#" }, "ChannelModifySchema": { @@ -51988,96 +369,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -55522,14 +3813,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -56298,96 +4589,6 @@ "type" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -59832,14 +8033,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -60608,96 +8809,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -64142,14 +12253,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -64913,96 +13024,6 @@ "nonce" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -68447,14 +16468,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -69254,96 +17275,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -72788,14 +20719,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -73564,96 +21495,6 @@ "state" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -77098,14 +24939,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -77865,96 +25706,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -81399,14 +29150,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -82169,96 +29920,6 @@ "recipients" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -85703,14 +33364,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -86482,96 +34143,6 @@ "image" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -90016,14 +37587,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -90783,96 +38354,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -94317,14 +41798,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -95084,96 +42565,6 @@ "login" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -98618,14 +46009,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -99404,96 +46795,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -102938,14 +50239,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -103708,96 +51009,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -107242,14 +54453,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -108072,96 +55283,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -111606,14 +58727,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -112395,96 +59516,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -115929,14 +62960,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -116859,96 +63890,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -120393,14 +67334,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -121181,96 +68122,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -124715,14 +71566,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -125513,96 +72364,6 @@ "guild_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -129047,14 +75808,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -129827,96 +76588,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -133361,14 +80032,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -134147,96 +80818,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -137681,14 +84262,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -138457,96 +85038,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -141991,14 +88482,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -142755,96 +89246,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -146289,14 +92690,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -147171,96 +93572,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -150705,14 +97016,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -151460,9 +97771,6 @@ "MessageEditSchema": { "type": "object", "properties": { - "embed": { - "$ref": "#/definitions/Embed" - }, "file": { "type": "object", "properties": { @@ -151475,29 +97783,12 @@ "filename" ] }, + "embed": { + "$ref": "#/definitions/Embed" + }, "flags": { "type": "integer" }, - "attachments": { - "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id" - ] - } - }, "content": { "type": "string" }, @@ -151571,6 +97862,26 @@ "payload_json": { "type": "string" }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + } + }, "sticker_ids": { "type": "array", "items": { @@ -151584,96 +97895,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -155118,14 +101339,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -155885,96 +102106,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -159419,14 +105550,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -160194,96 +106325,6 @@ "tags" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -163728,14 +109769,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -164496,96 +110537,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -168030,14 +113981,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -168798,96 +114749,6 @@ "before" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -172332,14 +118193,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -173135,96 +118996,6 @@ "username" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -176669,14 +122440,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -177437,96 +123208,6 @@ "username" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -180971,14 +126652,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -181738,96 +127419,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -185272,14 +130863,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -186054,96 +131645,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -189588,14 +135089,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -190359,96 +135860,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -193893,14 +139304,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -194738,96 +140149,6 @@ "protocol" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -198272,14 +143593,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -199039,96 +144360,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -202573,14 +147804,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -203340,96 +148571,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -206874,14 +152015,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -207638,96 +152779,6 @@ "code" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -211172,14 +156223,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -211942,96 +156993,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -215476,14 +160437,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -216256,96 +161217,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -219790,14 +164661,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -220554,96 +165425,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -224088,14 +168869,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -224901,96 +169682,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -228435,14 +173126,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -229234,96 +173925,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -232768,14 +177369,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -233532,96 +178133,6 @@ "note" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -237066,14 +181577,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -237855,96 +182366,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -241389,14 +185810,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -242267,96 +186688,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -245801,14 +190132,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -246564,96 +190895,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -250098,14 +194339,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -250900,96 +195141,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -254434,14 +198585,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -255224,96 +199375,6 @@ "self_mute" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -258758,14 +202819,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -259600,96 +203661,6 @@ "video_ssrc" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -263134,14 +207105,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -263898,96 +207869,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -267432,14 +211313,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -268204,96 +212085,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -271738,14 +215529,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -272500,96 +216291,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -276034,14 +219735,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -276802,96 +220503,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -280336,14 +223947,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -281104,96 +224715,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -284638,14 +228159,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -285406,96 +228927,6 @@ "enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -288940,14 +232371,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -289740,96 +233171,6 @@ "message" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -293274,14 +236615,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -294046,96 +237387,6 @@ "captcha_sitekey" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -297580,14 +240831,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -298342,96 +241593,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -301876,14 +245037,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -302644,96 +245805,6 @@ "regenerate_nonce" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -306178,14 +249249,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -306957,96 +250028,6 @@ "total" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -310491,14 +253472,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -311284,96 +254265,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -314818,14 +257709,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -315582,96 +258473,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -319116,14 +261917,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -319883,96 +262684,6 @@ "tokens" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -323417,14 +266128,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -324213,96 +266924,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -327747,14 +270368,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -328511,96 +271132,6 @@ "id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -332045,14 +274576,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -332888,96 +275419,6 @@ "valid_rules_channel" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -336422,14 +278863,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -337193,96 +279634,6 @@ "total_results" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -340727,14 +283078,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -341491,96 +283842,6 @@ "pruned" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -345025,14 +287286,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -345789,96 +288050,6 @@ "purged" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -349323,14 +291494,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -350094,96 +292265,6 @@ "recommended_guilds" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -353628,14 +295709,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -354396,96 +296477,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -357930,14 +299921,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -358694,96 +300685,6 @@ "code" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -362228,14 +304129,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -363067,96 +304968,6 @@ "presence_count" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -366601,14 +308412,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -367376,96 +309187,6 @@ "enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -370910,14 +312631,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -371686,96 +313407,6 @@ "gateway" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -375220,14 +316851,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -376046,96 +317677,6 @@ "ping" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -379580,14 +321121,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -380365,96 +321906,6 @@ "counts" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -383899,14 +325350,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -384690,96 +326141,6 @@ "promotional_email_opt_in" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -388224,14 +329585,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -389009,96 +330370,6 @@ "stickers" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -392543,14 +333814,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -393307,96 +334578,6 @@ "location" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -396841,14 +338022,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -397633,96 +338814,6 @@ "width" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -401167,14 +342258,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -401971,96 +343062,6 @@ "gifs" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -405505,14 +346506,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -406263,96 +347264,6 @@ "$ref": "#/definitions/TenorGifResponse" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -409797,14 +350708,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -410565,96 +351476,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -414099,14 +354920,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -414863,96 +355684,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -418397,14 +359128,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -419168,96 +359899,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -422702,14 +363343,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -423677,96 +364318,6 @@ "widget_enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -427211,14 +367762,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -427966,96 +368517,6 @@ "APIPublicUser": { "$ref": "#/definitions/PublicUser", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -431500,14 +371961,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -432349,96 +372810,6 @@ "verified" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -435883,14 +376254,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -436641,96 +377012,6 @@ "$ref": "#/definitions/APIGuild" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -440175,14 +380456,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -440933,96 +381214,6 @@ "$ref": "#/definitions/DmChannelDTO" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -444467,14 +384658,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -445225,96 +385416,6 @@ "$ref": "#/definitions/BackupCode" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -448759,14 +388860,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -449611,96 +389712,6 @@ "verified" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -453145,14 +393156,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -453901,96 +393912,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -457435,14 +397356,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -458191,96 +398112,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -461725,14 +401556,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -462481,96 +402312,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -466015,14 +405756,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -466773,96 +406514,6 @@ "$ref": "#/definitions/Application" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -470307,14 +409958,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -471065,96 +410716,6 @@ "$ref": "#/definitions/Invite" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -474599,14 +414160,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -475357,96 +414918,6 @@ "$ref": "#/definitions/Message" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -478891,14 +418362,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -479649,96 +419120,6 @@ "$ref": "#/definitions/Webhook" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -483183,14 +422564,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -483941,96 +423322,6 @@ "$ref": "#/definitions/Categories" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -487475,14 +426766,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -488297,96 +427588,6 @@ "tosPage" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -491831,14 +431032,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -492589,96 +431790,6 @@ "$ref": "#/definitions/Channel" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -496123,14 +435234,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -496881,96 +435992,6 @@ "$ref": "#/definitions/Emoji" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -500415,14 +439436,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -501173,96 +440194,6 @@ "$ref": "#/definitions/Member" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -504707,14 +443638,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -505512,96 +444443,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -509046,14 +447887,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -510040,96 +448881,6 @@ "widget_enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -513574,14 +452325,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -514332,96 +453083,6 @@ "$ref": "#/definitions/Role" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -517866,14 +456527,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -518624,96 +457285,6 @@ "$ref": "#/definitions/Sticker" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -522158,14 +460729,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -522916,96 +461487,6 @@ "$ref": "#/definitions/Template" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -526450,14 +464931,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -527208,96 +465689,6 @@ "$ref": "#/definitions/GuildVoiceRegion" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -530742,14 +469133,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -531526,96 +469917,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -535060,14 +473361,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -535818,96 +474119,6 @@ "$ref": "#/definitions/StickerPack" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -539352,14 +477563,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -540131,96 +478342,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -543665,14 +481786,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -544437,96 +482558,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -547971,14 +486002,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -548855,96 +486886,6 @@ "user_profile" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -552389,14 +490330,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -553171,96 +491112,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -556705,14 +494556,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -557481,96 +495332,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -561015,14 +498776,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -561783,96 +499544,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -565317,14 +502988,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -566085,96 +503756,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -569619,14 +507200,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -570374,96 +507955,6 @@ "ActivitySchema": { "$ref": "#/definitions/ActivitySchema", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -573908,14 +511399,4228 @@ "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": { + "avatar": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "username": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "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 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + } + }, + "additionalProperties": false, + "required": [ + "maxFriends", + "maxGuilds", + "maxUsername" + ] + }, + "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#" + }, + "BulkBanSchema": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "delete_message_seconds": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "user_ids" + ], + "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" + }, + "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" + } + }, + "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", + "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", + "flags", + "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" + }, + "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" }, @@ -574675,96 +516380,6 @@ "messages" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -578209,14 +519824,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -578991,96 +520606,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -582525,14 +524050,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -583311,96 +524836,6 @@ "webauthn" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -586845,14 +528280,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -587610,96 +529045,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -591144,14 +532489,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -591908,96 +533253,6 @@ "nick" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -595442,14 +536697,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -596206,96 +537461,6 @@ "days" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -599740,14 +540905,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -600510,96 +541675,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -604044,14 +545119,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, diff --git a/package.json b/package.json index f506e0be..ac42c767 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "start:cdn": "node dist/cdn/start.js", "start:gateway": "node dist/gateway/start.js", "build": "tsc -p .", + "watch": "tsc -w -p .", "test": "node scripts/test.js", "lint": "eslint .", "setup": "npm run build && npm run generate:schema", diff --git a/src/api/routes/guilds/#guild_id/bulk-ban.ts b/src/api/routes/guilds/#guild_id/bulk-ban.ts new file mode 100644 index 00000000..47e7c4cb --- /dev/null +++ b/src/api/routes/guilds/#guild_id/bulk-ban.ts @@ -0,0 +1,124 @@ +/* + 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 . +*/ + +import { getIpAdress, route } from "@spacebar/api"; +import { + Ban, + DiscordApiErrors, + GuildBanAddEvent, + Member, + User, + emitEvent, +} from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; + +const router: Router = Router(); + +router.post( + "/", + route({ + requestBody: "BulkBanSchema", + permission: ["BAN_MEMBERS", "MANAGE_GUILD"], + responses: { + 200: { + body: "Ban", + }, + 400: { + body: "APIErrorResponse", + }, + 403: { + body: "APIErrorResponse", + }, + }, + }), + async (req: Request, res: Response) => { + const { guild_id } = req.params; + + const userIds: Array = req.body.user_ids; + if (!userIds) + throw new HTTPError("The user_ids array is missing", 400); + if (userIds.length > 200) + throw new HTTPError("The user_ids array must be between 1 and 200 in length", 400); + + const banned_users = []; + const failed_users = []; + for await (const banned_user_id of userIds) { + if ( + req.user_id === banned_user_id && + banned_user_id === req.permission?.cache.guild?.owner_id + ) { + failed_users.push(banned_user_id); + continue; + } + + if (req.permission?.cache.guild?.owner_id === banned_user_id) { + failed_users.push(banned_user_id); + continue; + } + + const existingBan = await Ban.findOne({ + where: { guild_id: guild_id, user_id: banned_user_id }, + }); + if (existingBan) { + failed_users.push(banned_user_id); + continue; + } + + let banned_user; + try { + banned_user = await User.getPublicUser(banned_user_id); + } catch { + failed_users.push(banned_user_id); + continue; + } + + const ban = Ban.create({ + user_id: banned_user_id, + guild_id: guild_id, + ip: getIpAdress(req), + executor_id: req.user_id, + reason: req.body.reason, // || otherwise empty + }); + + try { + await Promise.all([ + Member.removeFromGuild(banned_user_id, guild_id), + ban.save(), + emitEvent({ + event: "GUILD_BAN_ADD", + data: { + guild_id: guild_id, + user: banned_user, + }, + guild_id: guild_id, + } as GuildBanAddEvent), + ]); + banned_users.push(banned_user_id); + } catch { + failed_users.push(banned_user_id); + continue; + } + } + + if (banned_users.length === 0 && failed_users.length > 0) throw DiscordApiErrors.BULK_BAN_FAILED; + return res.json({ banned_users: banned_users, failed_users: failed_users }); + }, +); + +export default router; diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts index 5a0b48e6..fb2b444f 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts @@ -1,17 +1,17 @@ /* 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 . */ @@ -90,19 +90,21 @@ export function route(opts: RouteOptions) { return async (req: Request, res: Response, next: NextFunction) => { if (opts.permission) { - const required = new Permissions(opts.permission); req.permission = await getPermission( req.user_id, req.params.guild_id, req.params.channel_id, ); - // bitfield comparison: check if user lacks certain permission - if (!req.permission.has(required)) { - throw DiscordApiErrors.MISSING_PERMISSIONS.withParams( - opts.permission as string, - ); - } + const requiredPerms = Array.isArray(opts.permission) ? opts.permission : [opts.permission]; + requiredPerms.forEach((perm) => { + // bitfield comparison: check if user lacks certain permission + if (!req.permission!.has(new Permissions(perm))) { + throw DiscordApiErrors.MISSING_PERMISSIONS.withParams( + perm as string, + ); + } + }); } if (opts.right) { diff --git a/src/util/schemas/BulkBanSchema.ts b/src/util/schemas/BulkBanSchema.ts new file mode 100644 index 00000000..48a7bac8 --- /dev/null +++ b/src/util/schemas/BulkBanSchema.ts @@ -0,0 +1,22 @@ +/* + 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 interface BulkBanSchema { + user_ids: string[]; + delete_message_seconds?: number; +} diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index e68bb0b7..d61bcaca 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -1,17 +1,17 @@ /* 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 . */ @@ -553,6 +553,8 @@ export const VerificationLevels = [ * * LOTTIE_ANIMATION_MAXIMUM_DIMENSIONS * * STICKER_FRAME_RATE_TOO_SMALL_OR_TOO_LARGE * * STICKER_ANIMATION_DURATION_MAXIMUM + * * AUTOMODERATOR_BLOCK + * * BULK_BAN_FAILED * * UNKNOWN_VOICE_STATE * @typedef {string} APIError */ @@ -1001,6 +1003,10 @@ export const DiscordApiErrors = { "Message was blocked by automatic moderation", 200000, ), + BULK_BAN_FAILED: new ApiError( + "Failed to ban users", + 500000 + ), //Other errors UNKNOWN_VOICE_STATE: new ApiError("Unknown Voice State", 10065, 404), From ea523d06b7d763ddccad7ce850139a44920984a0 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 5 Jun 2024 07:05:30 +0200 Subject: [PATCH 4/8] Fix lint: let -> const --- src/api/routes/guilds/#guild_id/bans.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index ab1b5cbd..5d580ebe 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -99,7 +99,7 @@ router.get( async (req: Request, res: Response) => { const { guild_id, user_id } = req.params; - let ban = (await Ban.findOneOrFail({ + const ban = (await Ban.findOneOrFail({ where: { guild_id: guild_id, user_id: user_id }, })) as BanRegistrySchema; From a3a28f522f7c8639c8b1a2911fa178207b74d52f Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 5 Jun 2024 15:17:20 +1000 Subject: [PATCH 5/8] prettier --- src/api/routes/guilds/#guild_id/bans.ts | 2 +- src/api/routes/guilds/#guild_id/bulk-ban.ts | 16 +++++++++++----- src/api/util/handlers/route.ts | 4 +++- src/util/util/Constants.ts | 5 +---- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/bans.ts b/src/api/routes/guilds/#guild_id/bans.ts index 5d580ebe..5ae9bdb9 100644 --- a/src/api/routes/guilds/#guild_id/bans.ts +++ b/src/api/routes/guilds/#guild_id/bans.ts @@ -109,7 +109,7 @@ router.get( const banInfo = { user: await User.getPublicUser(ban.user_id), reason: ban.reason, - } + }; return res.json(banInfo); }, diff --git a/src/api/routes/guilds/#guild_id/bulk-ban.ts b/src/api/routes/guilds/#guild_id/bulk-ban.ts index 47e7c4cb..f544103a 100644 --- a/src/api/routes/guilds/#guild_id/bulk-ban.ts +++ b/src/api/routes/guilds/#guild_id/bulk-ban.ts @@ -51,10 +51,12 @@ router.post( const { guild_id } = req.params; const userIds: Array = req.body.user_ids; - if (!userIds) - throw new HTTPError("The user_ids array is missing", 400); + if (!userIds) throw new HTTPError("The user_ids array is missing", 400); if (userIds.length > 200) - throw new HTTPError("The user_ids array must be between 1 and 200 in length", 400); + throw new HTTPError( + "The user_ids array must be between 1 and 200 in length", + 400, + ); const banned_users = []; const failed_users = []; @@ -116,8 +118,12 @@ router.post( } } - if (banned_users.length === 0 && failed_users.length > 0) throw DiscordApiErrors.BULK_BAN_FAILED; - return res.json({ banned_users: banned_users, failed_users: failed_users }); + if (banned_users.length === 0 && failed_users.length > 0) + throw DiscordApiErrors.BULK_BAN_FAILED; + return res.json({ + banned_users: banned_users, + failed_users: failed_users, + }); }, ); diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts index fb2b444f..2c98783a 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts @@ -96,7 +96,9 @@ export function route(opts: RouteOptions) { req.params.channel_id, ); - const requiredPerms = Array.isArray(opts.permission) ? opts.permission : [opts.permission]; + const requiredPerms = Array.isArray(opts.permission) + ? opts.permission + : [opts.permission]; requiredPerms.forEach((perm) => { // bitfield comparison: check if user lacks certain permission if (!req.permission!.has(new Permissions(perm))) { diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index d61bcaca..98ae2d31 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -1003,10 +1003,7 @@ export const DiscordApiErrors = { "Message was blocked by automatic moderation", 200000, ), - BULK_BAN_FAILED: new ApiError( - "Failed to ban users", - 500000 - ), + BULK_BAN_FAILED: new ApiError("Failed to ban users", 500000), //Other errors UNKNOWN_VOICE_STATE: new ApiError("Unknown Voice State", 10065, 404), From aa412e0e60257029ee6dd92ba7099231f43d2774 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 5 Jun 2024 21:59:29 +0200 Subject: [PATCH 6/8] Remove parent for childs on category deletion --- src/api/routes/channels/#channel_id/index.ts | 24 +++++++++++++++++--- src/util/entities/Channel.ts | 8 +++---- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/api/routes/channels/#channel_id/index.ts b/src/api/routes/channels/#channel_id/index.ts index 567c7c92..99f9a647 100644 --- a/src/api/routes/channels/#channel_id/index.ts +++ b/src/api/routes/channels/#channel_id/index.ts @@ -1,17 +1,17 @@ /* 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 . */ @@ -90,6 +90,24 @@ router.delete( } else if (channel.type === ChannelType.GROUP_DM) { await Channel.removeRecipientFromChannel(channel, req.user_id); } else { + if (channel.type == ChannelType.GUILD_CATEGORY) { + const channels = await Channel.find({ + where: { parent_id: channel_id }, + }); + for await (const c of channels) { + c.parent_id = null; + + await Promise.all([ + c.save(), + emitEvent({ + event: "CHANNEL_UPDATE", + data: c, + channel_id: c.id, + } as ChannelUpdateEvent), + ]); + } + } + await Promise.all([ Channel.delete({ id: channel_id }), emitEvent({ diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index 169eab3d..71ccf49e 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -1,17 +1,17 @@ /* 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 . */ @@ -105,7 +105,7 @@ export class Channel extends BaseClass { @Column({ nullable: true }) @RelationId((channel: Channel) => channel.parent) - parent_id: string; + parent_id: string | null; @JoinColumn({ name: "parent_id" }) @ManyToOne(() => Channel) From c8a90a4ab4c89929617f5dd367a29699b68258a9 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 23 Jun 2024 12:43:42 +0200 Subject: [PATCH 7/8] German translations + EN PW length requirement (#1123) --- assets/locales/de/auth.json | 28 ++++++++++++++++++---------- assets/locales/en/auth.json | 2 +- assets/locales/ur/auth.json | 4 ++-- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/assets/locales/de/auth.json b/assets/locales/de/auth.json index e19547a0..f41b67db 100644 --- a/assets/locales/de/auth.json +++ b/assets/locales/de/auth.json @@ -1,16 +1,24 @@ { "login": { - "INVALID_LOGIN": "E-Mail or Phone not found", - "INVALID_PASSWORD": "Invalid Password", - "ACCOUNT_DISABLED": "This account is disabled" + "INVALID_LOGIN": "Ungültiger Benutzername/E-Mail oder Passwort.", + "INVALID_PASSWORD": "Ungültiges Passwort", + "ACCOUNT_DISABLED": "Dieser Account wurde deaktiviert", + "INVALID_TOTP_CODE": "Ungültiger Zwei-Faktor-Authentifierungs-Code.", + "INVALID_TOTP_SECRET": "Ungültiges Zwei-Faktor-Authentifierungs-Secret" }, "register": { - "REGISTRATION_DISABLED": "New user registration is disabled", - "INVITE_ONLY": "You must be invited to register", - "EMAIL_INVALID": "Invalid Email", - "EMAIL_ALREADY_REGISTERED": "Email is already registered", - "DATE_OF_BIRTH_UNDERAGE": "You need to be {{years}} years or older", - "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" + "REGISTRATION_DISABLED": "Die Registrierung von neuen Benutzern ist deaktiviert", + "INVITE_ONLY": "Du musst eingeladen werden, um dich registrieren zu können", + "EMAIL_INVALID": "Ungültige E-Mail-Adresse", + "EMAIL_ALREADY_REGISTERED": "E-Mail-Adresse ist bereits registriert", + "DATE_OF_BIRTH_UNDERAGE": "Du musst mindestens {{years}} Jahre oder älter sein", + "PASSWORD_REQUIREMENTS_MIN_LENGTH": "Das Passwort muss mindestens {{min}} Zeichen lang sein.", + "CONSENT_REQUIRED": "Du musst den Nutzungsbedingungen und der Datenschutzerklärung zustimmen.", + "USERNAME_TOO_MANY_USERS": "Zu viele Nutzer haben diesen Benutzernamen, bitte probiere einen anderen", + "TOO_MANY_REGISTRATIONS": "Zu viele Registrierungen, bitte versuche es später erneut" + }, + "password_reset": { + "EMAIL_DOES_NOT_EXIST": "E-Mail-Adresse existiert nicht.", + "INVALID_TOKEN": "Ungültiger Token." } } diff --git a/assets/locales/en/auth.json b/assets/locales/en/auth.json index 2415c657..bdc90642 100644 --- a/assets/locales/en/auth.json +++ b/assets/locales/en/auth.json @@ -12,9 +12,9 @@ "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": "The password 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", - "GUESTS_DISABLED": "Guest users are disabled", "TOO_MANY_REGISTRATIONS": "Too many registrations, please try again later" }, "password_reset": { diff --git a/assets/locales/ur/auth.json b/assets/locales/ur/auth.json index 1dac2474..7f558d01 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": "The password 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" } } From 2d8238f2869adfddb6fdae8e5f9d43dedc4e5d99 Mon Sep 17 00:00:00 2001 From: Diana Nilsson Date: Thu, 27 Jun 2024 10:53:17 +0200 Subject: [PATCH 8/8] Add missing entries to UserSettings --- src/util/entities/UserSettings.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/entities/UserSettings.ts b/src/util/entities/UserSettings.ts index 0d5d9aad..0d4b6a7b 100644 --- a/src/util/entities/UserSettings.ts +++ b/src/util/entities/UserSettings.ts @@ -63,6 +63,9 @@ export class UserSettings extends BaseClassWithoutId { @Column({ nullable: true }) explicit_content_filter: number = 0; + @Column({ nullable: true }) + friend_discovery_flags: number = 0; + @Column({ nullable: true, type: "simple-json" }) friend_source_flags: FriendSourceFlags = { all: true }; @@ -116,6 +119,10 @@ export class UserSettings extends BaseClassWithoutId { @Column({ nullable: true }) timezone_offset: number = 0; // e.g -60 + + @Column({ nullable: true }) + view_nsfw_guilds: boolean = true; + } interface CustomStatus {