From a887608d30a728e677b5a8595c695fc55788f89c Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Fri, 19 Jul 2024 15:09:02 +0200 Subject: [PATCH] Fix msg component typings --- assets/openapi.json | 1006 +- assets/schemas.json | 105732 ++++++++++++++- src/util/entities/Message.ts | 77 +- src/util/schemas/MessageCreateSchema.ts | 4 +- .../responses/GuildMessagesSearchResponse.ts | 4 +- 5 files changed, 104285 insertions(+), 2538 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 2788cdb0..f3ad32a9 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -61,208 +61,109 @@ "read_states" ] }, - "ConnectedAccountCommonOAuthTokenResponse": { + "DiagnosticsChannel.Response": { "type": "object", "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { + "statusCode": { "type": "integer" - } - }, - "required": [ - "access_token", - "scope", - "token_type" - ] - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" }, - "guild_id": { + "statusText": { "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": { + "headers": { "type": "array", "items": { - "type": "string" + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "type": "integer" + } + } } - }, - "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" + "headers", + "statusCode", + "statusText" ] }, - "BanCreateSchema": { + "Headers": { "type": "object", "properties": { - "delete_message_seconds": { - "type": "string" + "append": { + "type": "object", + "additionalProperties": false }, - "delete_message_days": { - "type": "string" + "delete": { + "type": "object", + "additionalProperties": false }, - "reason": { - "type": "string" - } - } - }, - "BanModeratorSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" + "get": { + "type": "object", + "additionalProperties": false }, - "user_id": { - "type": "string" + "has": { + "type": "object", + "additionalProperties": false }, - "guild_id": { - "type": "string" + "set": { + "type": "object", + "additionalProperties": false }, - "executor_id": { - "type": "string" + "getSetCookie": { + "type": "object", + "additionalProperties": false }, - "reason": { - "type": "string" + "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 } }, "required": [ - "executor_id", - "guild_id", - "id", - "user_id" + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" ] }, - "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" - } - } + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" }, "ChannelPermissionOverwriteType": { "enum": [ @@ -734,14 +635,51 @@ } } }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/components/schemas/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/ButtonComponent" + }, + { + "$ref": "#/components/schemas/SelectMenuComponent" + }, + { + "$ref": "#/components/schemas/StringSelectMenuComponent" + }, + { + "$ref": "#/components/schemas/TextInputComponent" + } + ] + } + } + }, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/components/schemas/ButtonStyle" }, "label": { "type": "string" @@ -760,19 +698,30 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessageComponent" - } } }, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -790,6 +739,199 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/components/schemas/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -1633,6 +1775,12 @@ "$ref": "#/components/schemas/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -2356,7 +2504,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { @@ -3581,7 +3729,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { @@ -3658,6 +3806,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ @@ -3784,14 +3938,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" }, @@ -4104,6 +4258,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "required": [ @@ -4427,6 +4594,28 @@ "bio" ] }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "required": [ + "description", + "icon", + "id" + ] + }, "TokenResponse": { "type": "object", "properties": { @@ -4504,6 +4693,372 @@ "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": { @@ -5307,7 +5862,6 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, @@ -5355,7 +5909,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { @@ -5381,6 +5935,9 @@ "MessageEditSchema": { "type": "object", "properties": { + "embed": { + "$ref": "#/components/schemas/Embed" + }, "file": { "type": "object", "properties": { @@ -5393,12 +5950,29 @@ "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" }, @@ -5465,33 +6039,12 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, "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": { @@ -5501,7 +6054,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { @@ -7216,6 +7769,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -7333,6 +7892,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -8014,9 +8579,16 @@ "bio", "guild_id" ] + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Badge" + } } }, "required": [ + "badges", "connected_accounts", "mutual_guilds", "premium_type", diff --git a/assets/schemas.json b/assets/schemas.json index 00f86b36..621a84b4 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -32,343 +32,207 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ConnectedAccountCommonOAuthTokenResponse": { + "DiagnosticsChannel.Response": { "type": "object", "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "scope", - "token_type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "captcha_key": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "authorize", - "guild_id", - "permissions" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "team_id": { - "type": [ - "string", - "integer" - ] - } - }, - "additionalProperties": false, - "required": [ - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationModifySchema": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "interactions_endpoint_url": { - "type": "string" - }, - "max_participants": { - "type": [ - "null", - "integer" - ] - }, - "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" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BackupCodesChallengeSchema": { - "type": "object", - "properties": { - "password": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BanCreateSchema": { - "type": "object", - "properties": { - "delete_message_seconds": { - "type": "string" - }, - "delete_message_days": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BanModeratorSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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" - } - }, - "additionalProperties": false, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BotModifySchema": { - "type": "object", - "properties": { - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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": { + "statusCode": { "type": "integer" }, - "user_limit": { - "type": "integer" + "statusText": { + "type": "string" }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { + "headers": { "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" - ] + "patternProperties": { + "^[0-9]+$": { + "type": "integer" + } + } } - }, - "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, + "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, @@ -849,14 +713,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -875,20 +777,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -907,6 +820,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -2508,7 +2619,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -3758,7 +3869,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -3975,14 +4086,57199 @@ "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" + }, + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "authorize": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "captcha_key": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "authorize", + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "team_id": { + "type": [ + "string", + "integer" + ] + } + }, + "additionalProperties": false, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "interactions_endpoint_url": { + "type": "string" + }, + "max_participants": { + "type": [ + "null", + "integer" + ] + }, + "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" + } + }, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "delete_message_seconds": { + "type": "string" + }, + "delete_message_days": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "executor_id": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor_id", + "guild_id", + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "executor_id": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor_id", + "guild_id", + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + } + }, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "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": { + "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, + "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 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + } + }, + "additionalProperties": false + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ] + }, + "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": [ + "null", + "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" + } + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "extended_settings", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "settings", + "system", + "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_discovery_flags": { + "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 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "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_discovery_flags", + "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", + "view_nsfw_guilds" + ] + }, + "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/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + ] + }, + "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" + }, + "Poll": { + "type": "object", + "properties": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "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": { + "$ref": "#/definitions/ActionRowComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "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" + }, + "badge_ids": { + "type": "array", + "items": { + "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" }, @@ -4787,6 +62083,96 @@ "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, @@ -5267,14 +62653,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -5293,20 +62717,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -5325,6 +62760,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -6926,7 +64559,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -8176,7 +65809,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -8393,14 +66026,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" }, @@ -9205,6 +66838,96 @@ ] }, "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, @@ -9685,14 +67408,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -9711,20 +67472,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -9743,6 +67515,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -11344,7 +69314,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -12594,7 +70564,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -12811,14 +70781,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" }, @@ -13618,6 +71588,96 @@ "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, @@ -14098,14 +72158,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -14124,20 +72222,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -14156,6 +72265,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -15757,7 +74064,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -17007,7 +75314,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -17224,14 +75531,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" }, @@ -18067,6 +76374,96 @@ "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, @@ -18547,14 +76944,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -18573,20 +77008,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -18605,6 +77051,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -20206,7 +78850,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -21456,7 +80100,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -21673,14 +80317,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" }, @@ -22485,6 +81129,96 @@ "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, @@ -22965,14 +81699,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -22991,20 +81763,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -23023,6 +81806,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -24624,7 +83605,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -25874,7 +84855,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -26091,14 +85072,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" }, @@ -26894,6 +85875,96 @@ }, "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, @@ -27374,14 +86445,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -27400,20 +86509,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -27432,6 +86552,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -29033,7 +88351,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -30283,7 +89601,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -30500,14 +89818,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" }, @@ -31306,6 +90624,96 @@ "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, @@ -31786,14 +91194,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -31812,20 +91258,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -31844,6 +91301,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -33445,7 +93100,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -34695,7 +94350,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -34912,14 +94567,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" }, @@ -35727,6 +95382,96 @@ "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, @@ -36207,14 +95952,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -36233,20 +96016,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -36265,6 +96059,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -37866,7 +97858,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -39116,7 +99108,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -39333,14 +99325,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" }, @@ -40136,6 +100128,96 @@ }, "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, @@ -40616,14 +100698,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -40642,20 +100762,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -40674,6 +100805,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -42275,7 +102604,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -43525,7 +103854,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -43742,14 +104071,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" }, @@ -44545,6 +104874,96 @@ "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, @@ -45025,14 +105444,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -45051,20 +105508,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -45083,6 +105551,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -46684,7 +107350,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -47934,7 +108600,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -48151,14 +108817,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" }, @@ -48973,6 +109639,96 @@ }, "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, @@ -49453,14 +110209,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -49479,20 +110273,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -49511,6 +110316,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -51112,7 +112115,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -52362,7 +113365,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -52579,14 +113582,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" }, @@ -53385,6 +114388,96 @@ "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, @@ -53865,14 +114958,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -53891,20 +115022,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -53923,6 +115065,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -55524,7 +116864,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -56774,7 +118114,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -56991,14 +118331,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" }, @@ -57857,6 +119197,96 @@ }, "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, @@ -58337,14 +119767,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -58363,20 +119831,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -58395,6 +119874,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -59996,7 +121673,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -61246,7 +122923,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -61463,14 +123140,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" }, @@ -62288,6 +123965,96 @@ }, "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, @@ -62768,14 +124535,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -62794,20 +124599,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -62826,6 +124642,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -64427,7 +126441,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -65677,7 +127691,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -65894,14 +127908,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" }, @@ -66860,6 +128874,96 @@ "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, @@ -67340,14 +129444,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -67366,20 +129508,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -67398,6 +129551,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -68999,7 +131350,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -70249,7 +132600,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -70466,14 +132817,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" }, @@ -71290,6 +133641,96 @@ }, "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, @@ -71770,14 +134211,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -71796,20 +134275,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -71828,6 +134318,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -73429,7 +136117,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -74679,7 +137367,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -74896,14 +137584,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" }, @@ -75730,6 +138418,96 @@ "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, @@ -76210,14 +138988,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -76236,20 +139052,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -76268,6 +139095,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -77869,7 +140894,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -79119,7 +142144,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -79336,14 +142361,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" }, @@ -80152,6 +143177,96 @@ "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, @@ -80632,14 +143747,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -80658,20 +143811,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -80690,6 +143854,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -82291,7 +145653,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -83541,7 +146903,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -83758,14 +147120,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" }, @@ -84580,6 +147942,96 @@ }, "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, @@ -85060,14 +148512,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -85086,20 +148576,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -85118,6 +148619,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -86719,7 +150418,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -87969,7 +151668,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -88186,14 +151885,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" }, @@ -88998,6 +152697,96 @@ }, "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, @@ -89478,14 +153267,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -89504,20 +153331,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -89536,6 +153374,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -91137,7 +155173,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -92387,7 +156423,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -92604,14 +156640,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" }, @@ -93404,6 +157440,96 @@ }, "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, @@ -93884,14 +158010,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -93910,20 +158074,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -93942,6 +158117,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -95543,7 +159916,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -96793,7 +161166,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -97010,14 +161383,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" }, @@ -97923,7 +162296,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -97947,6 +162320,96 @@ }, "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, @@ -98427,14 +162890,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -98453,20 +162954,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -98485,6 +162997,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -100086,7 +164796,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -101336,7 +166046,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -101553,14 +166263,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" }, @@ -102344,6 +167054,96 @@ "PollCreationSchema": { "$ref": "#/definitions/PollCreationSchema", "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, @@ -102824,14 +167624,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -102850,20 +167688,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -102882,6 +167731,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -104483,7 +169530,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -105733,7 +170780,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -105950,14 +170997,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" }, @@ -106741,6 +171788,9 @@ "MessageEditSchema": { "type": "object", "properties": { + "embed": { + "$ref": "#/definitions/Embed" + }, "file": { "type": "object", "properties": { @@ -106753,12 +171803,29 @@ "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" }, @@ -106831,26 +171898,6 @@ "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": { @@ -106860,7 +171907,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -106884,6 +171931,96 @@ }, "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, @@ -107364,14 +172501,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -107390,20 +172565,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -107422,6 +172608,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -109023,7 +174407,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -110273,7 +175657,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -110490,14 +175874,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" }, @@ -111293,6 +176677,96 @@ "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, @@ -111773,14 +177247,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -111799,20 +177311,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -111831,6 +177354,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -113432,7 +179153,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -114682,7 +180403,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -114899,14 +180620,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" }, @@ -115710,6 +181431,96 @@ "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, @@ -116190,14 +182001,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -116216,20 +182065,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -116248,6 +182108,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -117849,7 +183907,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -119099,7 +185157,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -119316,14 +185374,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" }, @@ -120120,6 +186178,96 @@ "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, @@ -120600,14 +186748,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -120626,20 +186812,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -120658,6 +186855,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -122259,7 +188654,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -123509,7 +189904,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -123726,14 +190121,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" }, @@ -124530,6 +190925,96 @@ "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, @@ -125010,14 +191495,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -125036,20 +191559,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -125068,6 +191602,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -126669,7 +193401,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -127919,7 +194651,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -128136,14 +194868,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" }, @@ -128975,6 +195707,96 @@ "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, @@ -129455,14 +196277,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -129481,20 +196341,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -129513,6 +196384,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -131114,7 +198183,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -132364,7 +199433,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -132581,14 +199650,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" }, @@ -133385,6 +200454,96 @@ "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, @@ -133865,14 +201024,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -133891,20 +201088,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -133923,6 +201131,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -135524,7 +202930,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -136774,7 +204180,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -136991,14 +204397,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" }, @@ -137794,6 +205200,96 @@ }, "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, @@ -138274,14 +205770,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -138300,20 +205834,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -138332,6 +205877,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -139933,7 +207676,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -141183,7 +208926,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -141400,14 +209143,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" }, @@ -142218,6 +209961,96 @@ }, "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, @@ -142698,14 +210531,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -142724,20 +210595,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -142756,6 +210638,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -144357,7 +212437,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -145607,7 +213687,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -145824,14 +213904,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" }, @@ -146631,6 +214711,96 @@ ] }, "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, @@ -147111,14 +215281,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -147137,20 +215345,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -147169,6 +215388,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -148770,7 +217187,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -150020,7 +218437,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -150237,14 +218654,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" }, @@ -151118,6 +219535,96 @@ "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, @@ -151598,14 +220105,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -151624,20 +220169,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -151656,6 +220212,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -153257,7 +222011,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -154507,7 +223261,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -154724,14 +223478,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" }, @@ -155527,6 +224281,96 @@ "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, @@ -156007,14 +224851,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -156033,20 +224915,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -156065,6 +224958,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -157666,7 +226757,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -158916,7 +228007,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -159133,14 +228224,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" }, @@ -159936,6 +229027,96 @@ "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, @@ -160416,14 +229597,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -160442,20 +229661,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -160474,6 +229704,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -162075,7 +231503,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -163325,7 +232753,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -163542,14 +232970,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" }, @@ -164342,6 +233770,96 @@ "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, @@ -164822,14 +234340,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -164848,20 +234404,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -164880,6 +234447,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -166481,7 +236246,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -167731,7 +237496,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -167948,14 +237713,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" }, @@ -168754,6 +238519,96 @@ "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, @@ -169234,14 +239089,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -169260,20 +239153,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -169292,6 +239196,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -170893,7 +240995,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -172143,7 +242245,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -172360,14 +242462,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" }, @@ -173176,6 +243278,96 @@ "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, @@ -173656,14 +243848,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -173682,20 +243912,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -173714,6 +243955,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -175315,7 +245754,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -176565,7 +247004,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -176782,14 +247221,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" }, @@ -177582,6 +248021,96 @@ "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, @@ -178062,14 +248591,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -178088,20 +248655,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -178120,6 +248698,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -179721,7 +250497,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -180971,7 +251747,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -181188,14 +251964,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" }, @@ -182037,6 +252813,96 @@ }, "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, @@ -182517,14 +253383,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -182543,20 +253447,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -182575,6 +253490,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -184176,7 +255289,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -185426,7 +256539,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -185643,14 +256756,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" }, @@ -186478,6 +257591,96 @@ }, "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, @@ -186958,14 +258161,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -186984,20 +258225,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -187016,6 +258268,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -188617,7 +260067,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -189867,7 +261317,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -190084,14 +261534,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" }, @@ -190884,6 +262334,96 @@ "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, @@ -191364,14 +262904,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -191390,20 +262968,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -191422,6 +263011,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -193023,7 +264810,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -194273,7 +266060,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -194490,14 +266277,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" }, @@ -195315,6 +267102,96 @@ }, "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, @@ -195795,14 +267672,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -195821,20 +267736,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -195853,6 +267779,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -197454,7 +269578,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -198704,7 +270828,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -198921,14 +271045,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" }, @@ -199841,6 +271965,96 @@ }, "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, @@ -200321,14 +272535,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -200347,20 +272599,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -200379,6 +272642,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -201980,7 +274441,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -203230,7 +275691,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -203447,14 +275908,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" }, @@ -204246,6 +276707,96 @@ }, "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, @@ -204726,14 +277277,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -204752,20 +277341,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -204784,6 +277384,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -206385,7 +279183,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -207635,7 +280433,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -207852,14 +280650,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" }, @@ -208690,6 +281488,96 @@ "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, @@ -209170,14 +282058,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -209196,20 +282122,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -209228,6 +282165,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -210829,7 +283964,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -212079,7 +285214,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -212296,14 +285431,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" }, @@ -213122,6 +286257,96 @@ "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, @@ -213602,14 +286827,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -213628,20 +286891,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -213660,6 +286934,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -215261,7 +288733,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -216511,7 +289983,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -216728,14 +290200,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" }, @@ -217606,6 +291078,96 @@ "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, @@ -218086,14 +291648,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -218112,20 +291712,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -218144,6 +291755,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -219745,7 +293554,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -220995,7 +294804,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -221212,14 +295021,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" }, @@ -222012,6 +295821,96 @@ "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, @@ -222492,14 +296391,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -222518,20 +296455,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -222550,6 +296498,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -224151,7 +298297,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -225401,7 +299547,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -225618,14 +299764,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" }, @@ -226426,6 +300572,96 @@ "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, @@ -226906,14 +301142,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -226932,20 +301206,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -226964,6 +301249,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -228565,7 +303048,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -229815,7 +304298,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -230032,14 +304515,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" }, @@ -230830,6 +305313,96 @@ } ], "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, @@ -231310,14 +305883,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -231336,20 +305947,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -231368,6 +305990,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -232969,7 +307789,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -234219,7 +309039,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -234436,14 +309256,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" }, @@ -235240,6 +310060,96 @@ "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, @@ -235720,14 +310630,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -235746,20 +310694,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -235778,6 +310737,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -237379,7 +312536,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -238629,7 +313786,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -238846,14 +314003,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" }, @@ -239650,6 +314807,96 @@ "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, @@ -240130,14 +315377,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -240156,20 +315441,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -240188,6 +315484,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -241789,7 +317283,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -243039,7 +318533,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -243256,14 +318750,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" }, @@ -244060,6 +319554,96 @@ "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, @@ -244540,14 +320124,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -244566,20 +320188,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -244598,6 +320231,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -246199,7 +322030,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -247449,7 +323280,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -247666,14 +323497,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" }, @@ -248502,6 +324333,96 @@ "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, @@ -248982,14 +324903,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -249008,20 +324967,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -249040,6 +325010,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -250641,7 +326809,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -251891,7 +328059,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -252108,14 +328276,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" }, @@ -252916,6 +329084,96 @@ "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, @@ -253396,14 +329654,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -253422,20 +329718,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -253454,6 +329761,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -255055,7 +331560,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -256305,7 +332810,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -256522,14 +333027,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" }, @@ -257320,6 +333825,96 @@ } ], "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, @@ -257800,14 +334395,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -257826,20 +334459,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -257858,6 +334502,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -259459,7 +336301,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -260709,7 +337551,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -260926,14 +337768,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" }, @@ -261730,6 +338572,96 @@ "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, @@ -262210,14 +339142,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -262236,20 +339206,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -262268,6 +339249,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -263869,7 +341048,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -265119,7 +342298,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -265336,14 +342515,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" }, @@ -266151,6 +343330,96 @@ "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, @@ -266631,14 +343900,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -266657,20 +343964,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -266689,6 +344007,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -268290,7 +345806,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -269540,7 +347056,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -269757,14 +347273,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" }, @@ -270586,6 +348102,96 @@ "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, @@ -271066,14 +348672,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -271092,20 +348736,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -271124,6 +348779,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -272725,7 +350578,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -273975,7 +351828,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -274192,14 +352045,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" }, @@ -274992,6 +352845,96 @@ "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, @@ -275472,14 +353415,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -275498,20 +353479,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -275530,6 +353522,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -277131,7 +355321,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -278381,7 +356571,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -278598,14 +356788,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" }, @@ -279401,6 +357591,96 @@ "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, @@ -279881,14 +358161,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -279907,20 +358225,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -279939,6 +358268,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -281540,7 +360067,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -282790,7 +361317,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -283007,14 +361534,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" }, @@ -283839,6 +362366,96 @@ "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, @@ -284319,14 +362936,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -284345,20 +363000,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -284377,6 +363043,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -285978,7 +364842,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -287228,7 +366092,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -287445,14 +366309,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" }, @@ -288245,6 +367109,96 @@ "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, @@ -288725,14 +367679,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -288751,20 +367743,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -288783,6 +367786,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -290384,7 +369585,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -291634,7 +370835,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -291851,14 +371052,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" }, @@ -292730,6 +371931,96 @@ "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, @@ -293210,14 +372501,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -293236,20 +372565,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -293268,6 +372608,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -294869,7 +374407,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -296119,7 +375657,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -296336,14 +375874,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" }, @@ -297143,6 +376681,96 @@ "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, @@ -297623,14 +377251,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -297649,20 +377315,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -297681,6 +377358,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -299282,7 +379157,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -300532,7 +380407,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -300749,14 +380624,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" }, @@ -301549,6 +381424,96 @@ "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, @@ -302029,14 +381994,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -302055,20 +382058,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -302087,6 +382101,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -303688,7 +383900,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -304938,7 +385150,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -305155,14 +385367,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" }, @@ -305955,6 +386167,96 @@ "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, @@ -306435,14 +386737,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -306461,20 +386801,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -306493,6 +386844,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -308094,7 +388643,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -309344,7 +389893,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -309561,14 +390110,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" }, @@ -310368,6 +390917,96 @@ "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, @@ -310848,14 +391487,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -310874,20 +391551,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -310906,6 +391594,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -312507,7 +393393,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -313757,7 +394643,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -313974,14 +394860,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" }, @@ -314778,6 +395664,96 @@ } ], "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, @@ -315258,14 +396234,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -315284,20 +396298,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -315316,6 +396341,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -316917,7 +398140,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -318167,7 +399390,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -318384,14 +399607,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" }, @@ -319184,6 +400407,96 @@ "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, @@ -319664,14 +400977,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -319690,20 +401041,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -319722,6 +401084,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -321323,7 +402883,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -322573,7 +404133,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -322790,14 +404350,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" }, @@ -323665,6 +405225,96 @@ "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, @@ -324145,14 +405795,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -324171,20 +405859,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -324203,6 +405902,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -325804,7 +407701,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -327054,7 +408951,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -327271,14 +409168,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" }, @@ -328082,6 +409979,96 @@ "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, @@ -328562,14 +410549,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -328588,20 +410613,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -328620,6 +410656,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -330221,7 +412455,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -331471,7 +413705,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -331688,14 +413922,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" }, @@ -332500,6 +414734,96 @@ "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, @@ -332980,14 +415304,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -333006,20 +415368,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -333038,6 +415411,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -334639,7 +417210,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -335889,7 +418460,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -336106,14 +418677,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" }, @@ -336968,6 +419539,96 @@ "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, @@ -337448,14 +420109,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -337474,20 +420173,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -337506,6 +420216,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -339107,7 +422015,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -340357,7 +423265,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -340574,14 +423482,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" }, @@ -341395,6 +424303,96 @@ "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, @@ -341875,14 +424873,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -341901,20 +424937,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -341933,6 +424980,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -343534,7 +426779,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -344784,7 +428029,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -345001,14 +428246,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" }, @@ -345828,6 +429073,96 @@ "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, @@ -346308,14 +429643,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -346334,20 +429707,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -346366,6 +429750,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -347967,7 +431549,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -349217,7 +432799,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -349434,14 +433016,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" }, @@ -350255,6 +433837,96 @@ "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, @@ -350735,14 +434407,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -350761,20 +434471,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -350793,6 +434514,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -352394,7 +436313,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -353644,7 +437563,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -353861,14 +437780,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" }, @@ -354661,6 +438580,96 @@ "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, @@ -355141,14 +439150,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -355167,20 +439214,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -355199,6 +439257,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -356800,7 +441056,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -358050,7 +442306,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -358267,14 +442523,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" }, @@ -359095,6 +443351,96 @@ "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, @@ -359575,14 +443921,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -359601,20 +443985,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -359633,6 +444028,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -361234,7 +445827,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -362484,7 +447077,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -362701,14 +447294,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" }, @@ -363541,6 +448134,96 @@ "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, @@ -364021,14 +448704,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -364047,20 +448768,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -364079,6 +448811,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -365680,7 +450610,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -366930,7 +451860,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -367147,14 +452077,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" }, @@ -367941,6 +452871,96 @@ "$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, @@ -368421,14 +453441,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -368447,20 +453505,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -368479,6 +453548,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -370080,7 +455347,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -371330,7 +456597,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -371547,14 +456814,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" }, @@ -372351,6 +457618,96 @@ "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, @@ -372831,14 +458188,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -372857,20 +458252,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -372889,6 +458295,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -374490,7 +460094,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -375740,7 +461344,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -375957,14 +461561,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" }, @@ -376757,6 +462361,96 @@ "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, @@ -377237,14 +462931,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -377263,20 +462995,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -377295,6 +463038,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -378896,7 +464837,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -380146,7 +466087,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -380363,14 +466304,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" }, @@ -381170,6 +467111,96 @@ "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, @@ -381650,14 +467681,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -381676,20 +467745,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -381708,6 +467788,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -383309,7 +469587,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -384559,7 +470837,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -384776,14 +471054,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" }, @@ -385787,6 +472065,96 @@ "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, @@ -386267,14 +472635,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -386293,20 +472699,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -386325,6 +472742,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -387926,7 +474541,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -389176,7 +475791,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -389393,14 +476008,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" }, @@ -390184,6 +476799,96 @@ "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, @@ -390664,14 +477369,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -390690,20 +477433,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -390722,6 +477476,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -392323,7 +479275,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -393573,7 +480525,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -393790,14 +480742,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" }, @@ -394681,6 +481633,96 @@ "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, @@ -395161,14 +482203,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -395187,20 +482267,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -395219,6 +482310,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -396820,7 +484109,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -398070,7 +485359,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -398287,14 +485576,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" }, @@ -399081,6 +486370,96 @@ "$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, @@ -399561,14 +486940,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -399587,20 +487004,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -399619,6 +487047,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -401220,7 +488846,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -402470,7 +490096,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -402687,14 +490313,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" }, @@ -403481,6 +491107,96 @@ "$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, @@ -403961,14 +491677,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -403987,20 +491741,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -404019,6 +491784,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -405620,7 +493583,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -406870,7 +494833,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -407087,14 +495050,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" }, @@ -407881,6 +495844,96 @@ "$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, @@ -408361,14 +496414,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -408387,20 +496478,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -408419,6 +496521,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -410020,7 +498320,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -411270,7 +499570,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -411487,14 +499787,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" }, @@ -412381,6 +500681,96 @@ "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, @@ -412861,14 +501251,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -412887,20 +501315,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -412919,6 +501358,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -414520,7 +503157,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -415770,7 +504407,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -415987,14 +504624,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" }, @@ -416779,6 +505416,96 @@ "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, @@ -417259,14 +505986,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -417285,20 +506050,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -417317,6 +506093,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -418918,7 +507892,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -420168,7 +509142,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -420385,14 +509359,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" }, @@ -421177,6 +510151,96 @@ "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, @@ -421657,14 +510721,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -421683,20 +510785,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -421715,6 +510828,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -423316,7 +512627,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -424566,7 +513877,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -424783,14 +514094,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" }, @@ -425575,6 +514886,96 @@ "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, @@ -426055,14 +515456,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -426081,20 +515520,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -426113,6 +515563,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -427714,7 +517362,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -428964,7 +518612,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -429181,14 +518829,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" }, @@ -429975,6 +519623,96 @@ "$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, @@ -430455,14 +520193,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -430481,20 +520257,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -430513,6 +520300,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -432114,7 +522099,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -433364,7 +523349,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -433581,14 +523566,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" }, @@ -434375,6 +524360,96 @@ "$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, @@ -434855,14 +524930,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -434881,20 +524994,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -434913,6 +525037,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -436514,7 +526836,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -437764,7 +528086,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -437981,14 +528303,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" }, @@ -438775,6 +529097,96 @@ "$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, @@ -439255,14 +529667,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -439281,20 +529731,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -439313,6 +529774,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -440914,7 +531573,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -442164,7 +532823,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -442381,14 +533040,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" }, @@ -443175,6 +533834,96 @@ "$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, @@ -443655,14 +534404,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -443681,20 +534468,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -443713,6 +534511,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -445314,7 +536310,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -446564,7 +537560,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -446781,14 +537777,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" }, @@ -447575,6 +538571,96 @@ "$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, @@ -448055,14 +539141,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -448081,20 +539205,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -448113,6 +539248,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -449714,7 +541047,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -450964,7 +542297,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -451181,14 +542514,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" }, @@ -452039,6 +543372,96 @@ "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, @@ -452519,14 +543942,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -452545,20 +544006,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -452577,6 +544049,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -454178,7 +545848,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -455428,7 +547098,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -455645,14 +547315,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" }, @@ -456439,6 +548109,96 @@ "$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, @@ -456919,14 +548679,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -456945,20 +548743,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -456977,6 +548786,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -458578,7 +550585,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -459828,7 +551835,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -460045,14 +552052,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" }, @@ -460839,6 +552846,96 @@ "$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, @@ -461319,14 +553416,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -461345,20 +553480,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -461377,6 +553523,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -462978,7 +555322,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -464228,7 +556572,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -464445,14 +556789,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" }, @@ -465239,6 +557583,96 @@ "$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, @@ -465719,14 +558153,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -465745,20 +558217,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -465777,6 +558260,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -467378,7 +560059,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -468628,7 +561309,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -468845,14 +561526,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" }, @@ -469686,6 +562367,96 @@ "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, @@ -470166,14 +562937,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -470192,20 +563001,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -470224,6 +563044,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -471825,7 +564843,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -473075,7 +566093,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -473292,14 +566310,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" }, @@ -474322,6 +567340,96 @@ "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, @@ -474802,14 +567910,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -474828,20 +567974,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -474860,6 +568017,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -476461,7 +569816,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -477711,7 +571066,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -477928,14 +571283,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" }, @@ -478722,6 +572077,96 @@ "$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, @@ -479202,14 +572647,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -479228,20 +572711,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -479260,6 +572754,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -480861,7 +574553,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -482111,7 +575803,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -482328,14 +576020,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" }, @@ -483122,6 +576814,96 @@ "$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, @@ -483602,14 +577384,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -483628,20 +577448,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -483660,6 +577491,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -485261,7 +579290,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -486511,7 +580540,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -486728,14 +580757,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" }, @@ -487522,6 +581551,96 @@ "$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, @@ -488002,14 +582121,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -488028,20 +582185,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -488060,6 +582228,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -489661,7 +584027,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -490911,7 +585277,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -491128,14 +585494,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" }, @@ -491922,6 +586288,96 @@ "$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, @@ -492402,14 +586858,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -492428,20 +586922,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -492460,6 +586965,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -494061,7 +588764,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -495311,7 +590014,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -495528,14 +590231,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" }, @@ -496348,6 +591051,96 @@ "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, @@ -496828,14 +591621,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -496854,20 +591685,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -496886,6 +591728,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -498487,7 +593527,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -499737,7 +594777,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -499954,14 +594994,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" }, @@ -500748,6 +595788,96 @@ "$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, @@ -501228,14 +596358,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -501254,20 +596422,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -501286,6 +596465,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -502887,7 +598264,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -504137,7 +599514,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -504354,14 +599731,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" }, @@ -505146,6 +600523,96 @@ "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, @@ -505626,14 +601093,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -505652,20 +601157,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -505684,6 +601200,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -507285,7 +602999,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -508535,7 +604249,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -508752,14 +604466,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" }, @@ -509567,6 +605281,96 @@ "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, @@ -510047,14 +605851,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -510073,20 +605915,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -510105,6 +605958,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -511706,7 +607757,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -512956,7 +609007,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -513173,14 +609224,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" }, @@ -513981,6 +610032,96 @@ "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, @@ -514461,14 +610602,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -514487,20 +610666,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -514519,6 +610709,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -516120,7 +612508,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -517370,7 +613758,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -517587,14 +613975,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" }, @@ -518514,6 +614902,96 @@ "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, @@ -518994,14 +615472,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -519020,20 +615536,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -519052,6 +615579,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -520653,7 +617378,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -521903,7 +618628,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -522120,14 +618845,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" }, @@ -522938,6 +619663,96 @@ ] }, "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, @@ -523418,14 +620233,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -523444,20 +620297,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -523476,6 +620340,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -525077,7 +622139,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -526327,7 +623389,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -526544,14 +623606,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" }, @@ -527356,6 +624418,96 @@ "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, @@ -527836,14 +624988,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -527862,20 +625052,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -527894,6 +625095,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -529495,7 +626894,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -530745,7 +628144,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -530962,14 +628361,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" }, @@ -531766,6 +629165,96 @@ "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, @@ -532246,14 +629735,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -532272,20 +629799,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -532304,6 +629842,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -533905,7 +631641,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -535155,7 +632891,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -535372,14 +633108,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" }, @@ -536176,6 +633912,96 @@ "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, @@ -536656,14 +634482,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -536682,20 +634546,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -536714,6 +634589,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -538315,7 +636388,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -539565,7 +637638,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -539782,14 +637855,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" }, @@ -540573,6 +638646,96 @@ "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, @@ -541053,14 +639216,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -541079,20 +639280,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -541111,6 +639323,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -542712,7 +641122,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -543962,7 +642372,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -544179,14 +642589,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" }, @@ -544985,6 +643395,96 @@ "user_ids" ], "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, @@ -545465,14 +643965,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -545491,20 +644029,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -545523,6 +644072,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -547124,7 +645871,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -548374,7 +647121,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -548591,14 +647338,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" }, @@ -549394,6 +648141,96 @@ "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, @@ -549874,14 +648711,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -549900,20 +648775,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -549932,6 +648818,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -551533,7 +650617,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -552783,7 +651867,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -553000,14 +652084,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" }, @@ -553818,6 +652902,96 @@ "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, @@ -554298,14 +653472,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -554324,20 +653536,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -554356,6 +653579,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -555957,7 +655378,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -557207,7 +656628,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -557424,14 +656845,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" }, @@ -558246,6 +657667,96 @@ "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, @@ -558726,14 +658237,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -558752,20 +658301,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -558784,6 +658344,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -560385,7 +660143,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -561635,7 +661393,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -561852,14 +661610,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" }, @@ -562653,6 +662411,96 @@ } ], "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, @@ -563133,14 +662981,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -563159,20 +663045,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -563191,6 +663088,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -564792,7 +664887,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -566042,7 +666137,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -566259,14 +666354,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" }, @@ -567059,6 +667154,96 @@ "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, @@ -567539,14 +667724,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -567565,20 +667788,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -567597,6 +667831,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -569198,7 +669630,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -570448,7 +670880,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -570665,14 +671097,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" }, @@ -571465,6 +671897,96 @@ "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, @@ -571945,14 +672467,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -571971,20 +672531,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -572003,6 +672574,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -573604,7 +674373,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -574854,7 +675623,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -575071,14 +675840,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" }, @@ -575877,6 +676646,96 @@ "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, @@ -576357,14 +677216,52 @@ }, "additionalProperties": false }, - "MessageComponent": { + "ActionRowComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "enum": [ + 1 + ] + }, + "ButtonComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, "style": { - "type": "integer" + "$ref": "#/definitions/ButtonStyle" }, "label": { "type": "string" @@ -576383,20 +677280,31 @@ }, "disabled": { "type": "boolean" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } } }, "additionalProperties": false, "required": [ - "components", + "style", "type" ] }, + "MessageComponentType.Button": { + "type": "number", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, "PartialEmoji": { "type": "object", "properties": { @@ -576415,6 +677323,204 @@ "name" ] }, + "SelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "enum": [ + 3 + ] + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, "PollCreationSchema": { "type": "object", "properties": { @@ -578016,7 +679122,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -579266,7 +680372,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -579483,14 +680589,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/src/util/entities/Message.ts b/src/util/entities/Message.ts index d28c8c29..ea3a3cc7 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -216,7 +216,7 @@ export class Message extends BaseClass { }; @Column({ type: "simple-json", nullable: true }) - components?: MessageComponent[]; + components?: ActionRowComponent[]; @Column({ type: "simple-json", nullable: true }) poll?: Poll; @@ -248,21 +248,90 @@ export class Message extends BaseClass { } export interface MessageComponent { - type: number; - style?: number; + type: MessageComponentType; +} + +export interface ActionRowComponent extends MessageComponent { + type: MessageComponentType.ActionRow; + components: (ButtonComponent | StringSelectMenuComponent | SelectMenuComponent | TextInputComponent)[]; +} + +export interface ButtonComponent extends MessageComponent { + type: MessageComponentType.Button; + style: ButtonStyle; label?: string; emoji?: PartialEmoji; custom_id?: string; sku_id?: string; url?: string; disabled?: boolean; - components: MessageComponent[]; +} + +export enum ButtonStyle { + Primary = 1, + Secondary = 2, + Success = 3, + Danger = 4, + Link = 5, + Premium = 6, +} + +export interface SelectMenuComponent extends MessageComponent { + type: MessageComponentType.StringSelect | MessageComponentType.UserSelect | MessageComponentType.RoleSelect | MessageComponentType.MentionableSelect | MessageComponentType.ChannelSelect; + custom_id: string; + channel_types?: number[]; + placeholder?: string; + default_values?: SelectMenuDefaultOption[]; // only for non-string selects + min_values?: number; + max_values?: number; + disabled?: boolean; +} + +export interface SelectMenuOption { + label: string; + value: string; + description?: string; + emoji?: PartialEmoji; + default?: boolean; +} + +export interface SelectMenuDefaultOption { + id: string; + type: "user" | "role" | "channel"; +} + +export interface StringSelectMenuComponent extends SelectMenuComponent { + type: MessageComponentType.StringSelect; + options: SelectMenuOption[]; +} + +export interface TextInputComponent extends MessageComponent { + type: MessageComponentType.TextInput; + custom_id: string; + style: TextInputStyle; + label: string; + min_length?: number; + max_length?: number; + required?: boolean; + value?: string; + placeholder?: string; +} + +export enum TextInputStyle { + Short = 1, + Paragraph = 2, } export enum MessageComponentType { Script = 0, // self command script ActionRow = 1, Button = 2, + StringSelect = 3, + TextInput = 4, + UserSelect = 5, + RoleSelect = 6, + MentionableSelect = 7, + ChannelSelect = 8, } export interface Embed { diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 014f6c87..2d7e4179 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -16,7 +16,7 @@ along with this program. If not, see . */ -import { Embed, MessageComponent, PollAnswer, PollMedia } from "@spacebar/util"; +import { ActionRowComponent, Embed, PollAnswer, PollMedia } from "@spacebar/util"; type Attachment = { id: string; @@ -54,7 +54,7 @@ export interface MessageCreateSchema { **/ attachments?: Attachment[]; sticker_ids?: string[]; - components?: MessageComponent[]; + components?: ActionRowComponent[]; // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled poll?: PollCreationSchema; enforce_nonce?: boolean; // For Discord compatibility, it's the default behavior here diff --git a/src/util/schemas/responses/GuildMessagesSearchResponse.ts b/src/util/schemas/responses/GuildMessagesSearchResponse.ts index 6121983e..ec41965b 100644 --- a/src/util/schemas/responses/GuildMessagesSearchResponse.ts +++ b/src/util/schemas/responses/GuildMessagesSearchResponse.ts @@ -17,9 +17,9 @@ */ import { + ActionRowComponent, Attachment, Embed, - MessageComponent, MessageType, Poll, PublicUser, @@ -42,7 +42,7 @@ export interface GuildMessagesSearchMessage { timestamp: string; edited_timestamp: string | null; flags: number; - components: MessageComponent[]; + components: ActionRowComponent[]; poll: Poll; hit: true; }