diff --git a/assets/openapi.json b/assets/openapi.json index 2788cdb0..50d4fca1 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" } @@ -1709,6 +1857,9 @@ "version" ] }, + "client_status": { + "$ref": "#/components/schemas/ClientStatus" + }, "status": { "$ref": "#/components/schemas/Status" }, @@ -1719,6 +1870,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -1726,6 +1878,23 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + } + }, "Relationship": { "type": "object", "properties": { @@ -2265,7 +2434,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/components/schemas/Attachment_1" + "$ref": "#/components/schemas/Attachment" } }, "embeds": { @@ -2356,12 +2525,18 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { "$ref": "#/components/schemas/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -2669,6 +2844,15 @@ "source_guild": { "$ref": "#/components/schemas/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/components/schemas/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -2676,14 +2860,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -3019,7 +3204,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -3538,7 +3723,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/components/schemas/Attachment_1" + "$ref": "#/components/schemas/Attachment" } }, "embeds": { @@ -3581,7 +3766,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { @@ -3658,6 +3843,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ @@ -3697,20 +3888,6 @@ "code" ] }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - } - } - }, "Snowflake": { "description": "A container for useful snowflake-related methods.", "type": "object" @@ -3784,14 +3961,14 @@ "APIGuild": { "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 +4281,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "required": [ @@ -4127,6 +4317,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "required": [ @@ -4177,9 +4370,14 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -4204,12 +4402,17 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 } }, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -4427,6 +4630,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 +4729,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 +5898,6 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, @@ -5355,7 +5945,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { @@ -5381,6 +5971,9 @@ "MessageEditSchema": { "type": "object", "properties": { + "embed": { + "$ref": "#/components/schemas/Embed" + }, "file": { "type": "object", "properties": { @@ -5393,12 +5986,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 +6075,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 +6090,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/ActionRowComponent" } }, "poll": { @@ -5669,6 +6258,42 @@ } } }, + "RequestGuildMembersSchema": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "query": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "presences": { + "type": "boolean" + }, + "user_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "nonce": { + "type": "string" + } + }, + "required": [ + "guild_id" + ] + }, "RoleModifySchema": { "type": "object", "properties": { @@ -5970,7 +6595,6 @@ "nullable": true }, "bio": { - "maxLength": 1024, "type": "string" }, "accent_color": { @@ -6398,6 +7022,107 @@ "name" ] }, + "WebhookExecuteSchema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "username": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "allowed_mentions": { + "type": "object", + "properties": { + "parse": { + "type": "array", + "items": { + "type": "string" + } + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "replied_user": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "components": { + "type": "array", + "items": {} + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "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" + ] + } + }, + "flags": { + "type": "integer" + }, + "thread_name": { + "type": "string" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "WidgetModifySchema": { "type": "object", "properties": { @@ -7216,6 +7941,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -7333,6 +8064,12 @@ "pronouns": { "type": "string" }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "mfa_enabled": { "type": "boolean" }, @@ -8014,9 +8751,16 @@ "bio", "guild_id" ] + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Badge" + } } }, "required": [ + "badges", "connected_accounts", "mutual_guilds", "premium_type", @@ -8287,9 +9031,175 @@ }, { "name": "voice" + }, + { + "name": "webhooks" } ], "paths": { + "/webhooks/{webhook_id}/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "description": "Returns a webhook object for the given id. Requires the MANAGE_WEBHOOKS permission or to be the owner of the webhook.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIWebhook" + } + } + } + }, + "404": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "webhook_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "webhook_id" + } + ], + "tags": [ + "webhooks" + ] + } + }, + "/webhooks/{webhook_id}/{token}/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "description": "Returns a webhook object for the given id and token.", + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIWebhook" + } + } + } + }, + "404": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "webhook_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "webhook_id" + }, + { + "name": "token", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "token" + } + ], + "tags": [ + "webhooks" + ] + }, + "post": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookExecuteSchema" + } + } + } + }, + "responses": { + "204": { + "description": "No description available" + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + }, + "404": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "webhook_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "webhook_id" + }, + { + "name": "token", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "token" + }, + { + "name": "wait", + "in": "query", + "required": false, + "schema": { + "type": "boolean" + }, + "description": "waits for server confirmation of message send before response, and returns the created message body" + }, + { + "name": "thread_id", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Send a message to the specified thread within a webhook's channel." + } + ], + "tags": [ + "webhooks" + ] + } + }, "/voice/regions/": { "get": { "security": [ @@ -11162,14 +12072,23 @@ }, "/guilds/{guild_id}/webhooks/": { "get": { + "x-permission-required": "MANAGE_WEBHOOKS", "security": [ { "bearer": [] } ], + "description": "Returns a list of guild webhook objects. Requires the MANAGE_WEBHOOKS permission.", "responses": { - "default": { - "description": "No description available" + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIWebhookArray" + } + } + } } }, "parameters": [ @@ -14672,11 +15591,13 @@ }, "/channels/{channel_id}/webhooks/": { "get": { + "x-permission-required": "MANAGE_WEBHOOKS", "security": [ { "bearer": [] } ], + "description": "Returns a list of channel webhook objects. Requires the MANAGE_WEBHOOKS permission.", "responses": { "200": { "description": "", diff --git a/assets/schemas.json b/assets/schemas.json index 00f86b36..a3db68f8 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": { @@ -1854,6 +1965,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -1865,6 +1979,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -1872,6 +1987,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -2417,7 +2550,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -2508,12 +2641,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -2827,6 +2966,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -2835,14 +2983,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -3183,7 +3332,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -3713,7 +3862,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -3758,7 +3907,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -3884,21 +4033,6 @@ "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", @@ -3975,14 +4109,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -4344,6 +4478,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -4396,10 +4533,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -4424,6 +4566,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -4431,6 +4577,57624 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -4787,6 +62551,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 +63121,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 +63185,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 +63228,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": { @@ -6272,6 +64373,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -6283,6 +64387,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -6290,6 +64395,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -6835,7 +64958,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -6926,12 +65049,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -7245,6 +65374,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -7253,14 +65391,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -7601,7 +65740,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -8131,7 +66270,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -8176,7 +66315,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -8302,21 +66441,6 @@ "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", @@ -8393,14 +66517,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -8762,6 +66886,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -8814,10 +66941,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -8842,6 +66974,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -8849,6 +66985,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -9205,6 +67342,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 +67912,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 +67976,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 +68019,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": { @@ -10690,6 +69164,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -10701,6 +69178,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -10708,6 +69186,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -11253,7 +69749,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -11344,12 +69840,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -11663,6 +70165,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -11671,14 +70182,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -12019,7 +70531,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -12549,7 +71061,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -12594,7 +71106,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -12720,21 +71232,6 @@ "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", @@ -12811,14 +71308,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -13180,6 +71677,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -13232,10 +71732,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -13260,6 +71765,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -13267,6 +71776,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -13618,6 +72128,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 +72698,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 +72762,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 +72805,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": { @@ -15103,6 +73950,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -15114,6 +73964,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -15121,6 +73972,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -15666,7 +74535,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -15757,12 +74626,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -16076,6 +74951,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -16084,14 +74968,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -16432,7 +75317,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -16962,7 +75847,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -17007,7 +75892,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -17133,21 +76018,6 @@ "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", @@ -17224,14 +76094,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -17593,6 +76463,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -17645,10 +76518,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -17673,6 +76551,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -17680,6 +76562,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -18067,6 +76950,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 +77520,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 +77584,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 +77627,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": { @@ -19552,6 +78772,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -19563,6 +78786,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -19570,6 +78794,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -20115,7 +79357,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -20206,12 +79448,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -20525,6 +79773,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -20533,14 +79790,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -20881,7 +80139,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -21411,7 +80669,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -21456,7 +80714,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -21582,21 +80840,6 @@ "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", @@ -21673,14 +80916,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -22042,6 +81285,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -22094,10 +81340,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -22122,6 +81373,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -22129,6 +81384,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -22485,6 +81741,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 +82311,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 +82375,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 +82418,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": { @@ -23970,6 +83563,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -23981,6 +83577,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -23988,6 +83585,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -24533,7 +84148,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -24624,12 +84239,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -24943,6 +84564,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -24951,14 +84581,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -25299,7 +84930,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -25829,7 +85460,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -25874,7 +85505,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -26000,21 +85631,6 @@ "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", @@ -26091,14 +85707,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -26460,6 +86076,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -26512,10 +86131,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -26540,6 +86164,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -26547,6 +86175,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -26894,6 +86523,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 +87093,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 +87157,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 +87200,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": { @@ -28379,6 +88345,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -28390,6 +88359,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -28397,6 +88367,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -28942,7 +88930,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -29033,12 +89021,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -29352,6 +89346,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -29360,14 +89363,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -29708,7 +89712,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -30238,7 +90242,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -30283,7 +90287,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -30409,21 +90413,6 @@ "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", @@ -30500,14 +90489,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -30869,6 +90858,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -30921,10 +90913,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -30949,6 +90946,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -30956,6 +90957,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -31306,6 +91308,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 +91878,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 +91942,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 +91985,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": { @@ -32791,6 +93130,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -32802,6 +93144,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -32809,6 +93152,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -33354,7 +93715,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -33445,12 +93806,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -33764,6 +94131,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -33772,14 +94148,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -34120,7 +94497,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -34650,7 +95027,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -34695,7 +95072,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -34821,21 +95198,6 @@ "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", @@ -34912,14 +95274,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -35281,6 +95643,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -35333,10 +95698,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -35361,6 +95731,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -35368,6 +95742,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -35727,6 +96102,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 +96672,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 +96736,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 +96779,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": { @@ -37212,6 +97924,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -37223,6 +97938,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -37230,6 +97946,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -37775,7 +98509,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -37866,12 +98600,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -38185,6 +98925,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -38193,14 +98942,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -38541,7 +99291,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -39071,7 +99821,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -39116,7 +99866,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -39242,21 +99992,6 @@ "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", @@ -39333,14 +100068,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -39702,6 +100437,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -39754,10 +100492,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -39782,6 +100525,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -39789,6 +100536,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -40136,6 +100884,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 +101454,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 +101518,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 +101561,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": { @@ -41621,6 +102706,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -41632,6 +102720,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -41639,6 +102728,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -42184,7 +103291,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -42275,12 +103382,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -42594,6 +103707,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -42602,14 +103724,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -42950,7 +104073,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -43480,7 +104603,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -43525,7 +104648,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -43651,21 +104774,6 @@ "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", @@ -43742,14 +104850,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -44111,6 +105219,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -44163,10 +105274,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -44191,6 +105307,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -44198,6 +105318,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -44545,6 +105666,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 +106236,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 +106300,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 +106343,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": { @@ -46030,6 +107488,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -46041,6 +107502,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -46048,6 +107510,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -46593,7 +108073,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -46684,12 +108164,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -47003,6 +108489,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -47011,14 +108506,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -47359,7 +108855,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -47889,7 +109385,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -47934,7 +109430,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -48060,21 +109556,6 @@ "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", @@ -48151,14 +109632,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -48520,6 +110001,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -48572,10 +110056,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -48600,6 +110089,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -48607,6 +110100,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -48973,6 +110467,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 +111037,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 +111101,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 +111144,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": { @@ -50458,6 +112289,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -50469,6 +112303,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -50476,6 +112311,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -51021,7 +112874,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -51112,12 +112965,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -51431,6 +113290,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -51439,14 +113307,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -51787,7 +113656,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -52317,7 +114186,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -52362,7 +114231,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -52488,21 +114357,6 @@ "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", @@ -52579,14 +114433,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -52948,6 +114802,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -53000,10 +114857,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -53028,6 +114890,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -53035,6 +114901,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -53385,6 +115252,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 +115822,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 +115886,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 +115929,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": { @@ -54870,6 +117074,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -54881,6 +117088,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -54888,6 +117096,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -55433,7 +117659,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -55524,12 +117750,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -55843,6 +118075,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -55851,14 +118092,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -56199,7 +118441,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -56729,7 +118971,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -56774,7 +119016,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -56900,21 +119142,6 @@ "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", @@ -56991,14 +119218,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -57360,6 +119587,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -57412,10 +119642,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -57440,6 +119675,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -57447,6 +119686,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -57857,6 +120097,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 +120667,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 +120731,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 +120774,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": { @@ -59342,6 +121919,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -59353,6 +121933,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -59360,6 +121941,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -59905,7 +122504,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -59996,12 +122595,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -60315,6 +122920,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -60323,14 +122937,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -60671,7 +123286,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -61201,7 +123816,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -61246,7 +123861,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -61372,21 +123987,6 @@ "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", @@ -61463,14 +124063,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -61832,6 +124432,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -61884,10 +124487,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -61912,6 +124520,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -61919,6 +124531,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -62288,6 +124901,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 +125471,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 +125535,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 +125578,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": { @@ -63773,6 +126723,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -63784,6 +126737,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -63791,6 +126745,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -64336,7 +127308,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -64427,12 +127399,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -64746,6 +127724,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -64754,14 +127741,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -65102,7 +128090,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -65632,7 +128620,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -65677,7 +128665,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -65803,21 +128791,6 @@ "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", @@ -65894,14 +128867,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -66263,6 +129236,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -66315,10 +129291,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -66343,6 +129324,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -66350,6 +129335,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -66860,6 +129846,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 +130416,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 +130480,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 +130523,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": { @@ -68345,6 +131668,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -68356,6 +131682,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -68363,6 +131690,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -68908,7 +132253,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -68999,12 +132344,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -69318,6 +132669,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -69326,14 +132686,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -69674,7 +133035,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -70204,7 +133565,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -70249,7 +133610,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -70375,21 +133736,6 @@ "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", @@ -70466,14 +133812,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -70835,6 +134181,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -70887,10 +134236,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -70915,6 +134269,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -70922,6 +134280,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -71290,6 +134649,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 +135219,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 +135283,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 +135326,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": { @@ -72775,6 +136471,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -72786,6 +136485,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -72793,6 +136493,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -73338,7 +137056,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -73429,12 +137147,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -73748,6 +137472,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -73756,14 +137489,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -74104,7 +137838,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -74634,7 +138368,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -74679,7 +138413,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -74805,21 +138539,6 @@ "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", @@ -74896,14 +138615,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -75265,6 +138984,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -75317,10 +139039,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -75345,6 +139072,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -75352,6 +139083,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -75730,6 +139462,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 +140032,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 +140096,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 +140139,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": { @@ -77215,6 +141284,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -77226,6 +141298,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -77233,6 +141306,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -77778,7 +141869,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -77869,12 +141960,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -78188,6 +142285,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -78196,14 +142302,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -78544,7 +142651,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -79074,7 +143181,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -79119,7 +143226,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -79245,21 +143352,6 @@ "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", @@ -79336,14 +143428,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -79705,6 +143797,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -79757,10 +143852,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -79785,6 +143885,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -79792,6 +143896,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -80152,6 +144257,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 +144827,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 +144891,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 +144934,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": { @@ -81637,6 +146079,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -81648,6 +146093,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -81655,6 +146101,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -82200,7 +146664,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -82291,12 +146755,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -82610,6 +147080,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -82618,14 +147097,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -82966,7 +147446,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -83496,7 +147976,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -83541,7 +148021,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -83667,21 +148147,6 @@ "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", @@ -83758,14 +148223,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -84127,6 +148592,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -84179,10 +148647,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -84207,6 +148680,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -84214,6 +148691,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -84580,6 +149058,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 +149628,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 +149692,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 +149735,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": { @@ -86065,6 +150880,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -86076,6 +150894,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -86083,6 +150902,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -86628,7 +151465,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -86719,12 +151556,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -87038,6 +151881,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -87046,14 +151898,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -87394,7 +152247,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -87924,7 +152777,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -87969,7 +152822,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -88095,21 +152948,6 @@ "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", @@ -88186,14 +153024,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -88555,6 +153393,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -88607,10 +153448,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -88635,6 +153481,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -88642,6 +153492,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -88998,6 +153849,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 +154419,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 +154483,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 +154526,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": { @@ -90483,6 +155671,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -90494,6 +155685,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -90501,6 +155693,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -91046,7 +156256,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -91137,12 +156347,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -91456,6 +156672,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -91464,14 +156689,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -91812,7 +157038,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -92342,7 +157568,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -92387,7 +157613,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -92513,21 +157739,6 @@ "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", @@ -92604,14 +157815,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -92973,6 +158184,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -93025,10 +158239,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -93053,6 +158272,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -93060,6 +158283,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -93404,6 +158628,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 +159198,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 +159262,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 +159305,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": { @@ -94889,6 +160450,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -94900,6 +160464,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -94907,6 +160472,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -95452,7 +161035,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -95543,12 +161126,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -95862,6 +161451,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -95870,14 +161468,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -96218,7 +161817,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -96748,7 +162347,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -96793,7 +162392,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -96919,21 +162518,6 @@ "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", @@ -97010,14 +162594,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -97379,6 +162963,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -97431,10 +163018,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -97459,6 +163051,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -97466,6 +163062,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -97923,7 +163520,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -97947,6 +163544,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 +164114,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 +164178,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 +164221,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": { @@ -99432,6 +165366,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -99443,6 +165380,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -99450,6 +165388,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -99995,7 +165951,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -100086,12 +166042,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -100405,6 +166367,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -100413,14 +166384,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -100761,7 +166733,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -101291,7 +167263,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -101336,7 +167308,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -101462,21 +167434,6 @@ "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", @@ -101553,14 +167510,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -101922,6 +167879,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -101974,10 +167934,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -102002,6 +167967,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -102009,6 +167978,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -102344,6 +168314,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 +168884,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 +168948,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 +168991,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": { @@ -103829,6 +170136,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -103840,6 +170150,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -103847,6 +170158,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -104392,7 +170721,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -104483,12 +170812,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -104802,6 +171137,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -104810,14 +171154,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -105158,7 +171503,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -105688,7 +172033,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -105733,7 +172078,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -105859,21 +172204,6 @@ "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", @@ -105950,14 +172280,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -106319,6 +172649,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -106371,10 +172704,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -106399,6 +172737,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -106406,6 +172748,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -106741,6 +173084,9 @@ "MessageEditSchema": { "type": "object", "properties": { + "embed": { + "$ref": "#/definitions/Embed" + }, "file": { "type": "object", "properties": { @@ -106753,12 +173099,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 +173194,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 +173203,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -106884,6 +173227,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 +173797,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 +173861,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 +173904,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": { @@ -108369,6 +175049,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -108380,6 +175063,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -108387,6 +175071,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -108932,7 +175634,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -109023,12 +175725,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -109342,6 +176050,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -109350,14 +176067,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -109698,7 +176416,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -110228,7 +176946,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -110273,7 +176991,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -110399,21 +177117,6 @@ "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", @@ -110490,14 +177193,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -110859,6 +177562,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -110911,10 +177617,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -110939,6 +177650,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -110946,6 +177661,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -111293,6 +178009,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 +178579,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 +178643,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 +178686,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": { @@ -112778,6 +179831,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -112789,6 +179845,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -112796,6 +179853,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -113341,7 +180416,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -113432,12 +180507,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -113751,6 +180832,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -113759,14 +180849,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -114107,7 +181198,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -114637,7 +181728,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -114682,7 +181773,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -114808,21 +181899,6 @@ "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", @@ -114899,14 +181975,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -115268,6 +182344,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -115320,10 +182399,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -115348,6 +182432,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -115355,6 +182443,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -115710,6 +182799,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 +183369,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 +183433,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 +183476,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": { @@ -117195,6 +184621,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -117206,6 +184635,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -117213,6 +184643,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -117758,7 +185206,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -117849,12 +185297,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -118168,6 +185622,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -118176,14 +185639,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -118524,7 +185988,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -119054,7 +186518,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -119099,7 +186563,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -119225,21 +186689,6 @@ "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", @@ -119316,14 +186765,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -119685,6 +187134,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -119737,10 +187189,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -119765,6 +187222,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -119772,6 +187233,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -120120,6 +187582,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 +188152,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 +188216,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 +188259,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": { @@ -121605,6 +189404,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -121616,6 +189418,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -121623,6 +189426,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -122168,7 +189989,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -122259,12 +190080,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -122578,6 +190405,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -122586,14 +190422,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -122934,7 +190771,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -123464,7 +191301,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -123509,7 +191346,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -123635,21 +191472,6 @@ "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", @@ -123726,14 +191548,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -124095,6 +191917,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -124147,10 +191972,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -124175,6 +192005,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -124182,6 +192016,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -124530,6 +192365,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 +192935,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 +192999,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 +193042,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": { @@ -126015,6 +194187,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -126026,6 +194201,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -126033,6 +194209,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -126578,7 +194772,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -126669,12 +194863,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -126988,6 +195188,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -126996,14 +195205,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -127344,7 +195554,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -127874,7 +196084,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -127919,7 +196129,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -128045,21 +196255,6 @@ "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", @@ -128136,14 +196331,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -128505,6 +196700,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -128557,10 +196755,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -128585,6 +196788,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -128592,6 +196799,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -128975,6 +197183,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 +197753,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 +197817,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 +197860,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": { @@ -130460,6 +199005,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -130471,6 +199019,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -130478,6 +199027,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -131023,7 +199590,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -131114,12 +199681,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -131433,6 +200006,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -131441,14 +200023,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -131789,7 +200372,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -132319,7 +200902,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -132364,7 +200947,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -132490,21 +201073,6 @@ "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", @@ -132581,14 +201149,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -132950,6 +201518,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -133002,10 +201573,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -133030,6 +201606,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -133037,6 +201617,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -133385,6 +201966,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 +202536,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 +202600,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 +202643,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": { @@ -134870,6 +203788,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -134881,6 +203802,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -134888,6 +203810,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -135433,7 +204373,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -135524,12 +204464,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -135843,6 +204789,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -135851,14 +204806,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -136199,7 +205155,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -136729,7 +205685,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -136774,7 +205730,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -136900,21 +205856,6 @@ "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", @@ -136991,14 +205932,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -137360,6 +206301,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -137412,10 +206356,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -137440,6 +206389,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -137447,6 +206400,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -137794,6 +206748,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 +207318,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 +207382,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 +207425,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": { @@ -139279,6 +208570,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -139290,6 +208584,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -139297,6 +208592,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -139842,7 +209155,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -139933,12 +209246,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -140252,6 +209571,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -140260,14 +209588,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -140608,7 +209937,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -141138,7 +210467,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -141183,7 +210512,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -141309,21 +210638,6 @@ "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", @@ -141400,14 +210714,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -141769,6 +211083,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -141821,10 +211138,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -141849,6 +211171,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -141856,6 +211182,4811 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", + "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#" + }, + "RequestGuildMembersSchema": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "query": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "presences": { + "type": "boolean" + }, + "user_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "nonce": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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, + 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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -142218,6 +216349,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 +216919,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 +216983,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 +217026,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": { @@ -143703,6 +218171,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -143714,6 +218185,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -143721,6 +218193,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -144266,7 +218756,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -144357,12 +218847,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -144676,6 +219172,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -144684,14 +219189,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -145032,7 +219538,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -145562,7 +220068,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -145607,7 +220113,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -145733,21 +220239,6 @@ "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", @@ -145824,14 +220315,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -146193,6 +220684,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -146245,10 +220739,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -146273,6 +220772,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -146280,6 +220783,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -146631,6 +221135,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 +221705,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 +221769,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 +221812,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": { @@ -148116,6 +222957,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -148127,6 +222971,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -148134,6 +222979,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -148679,7 +223542,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -148770,12 +223633,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -149089,6 +223958,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -149097,14 +223975,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -149445,7 +224324,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -149975,7 +224854,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -150020,7 +224899,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -150146,21 +225025,6 @@ "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", @@ -150237,14 +225101,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -150606,6 +225470,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -150658,10 +225525,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -150686,6 +225558,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -150693,6 +225569,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -151118,6 +225995,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 +226565,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 +226629,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 +226672,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": { @@ -152603,6 +227817,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -152614,6 +227831,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -152621,6 +227839,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -153166,7 +228402,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -153257,12 +228493,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -153576,6 +228818,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -153584,14 +228835,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -153932,7 +229184,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -154462,7 +229714,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -154507,7 +229759,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -154633,21 +229885,6 @@ "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", @@ -154724,14 +229961,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -155093,6 +230330,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -155145,10 +230385,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -155173,6 +230418,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -155180,6 +230429,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -155527,6 +230777,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 +231347,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 +231411,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 +231454,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": { @@ -157012,6 +232599,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -157023,6 +232613,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -157030,6 +232621,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -157575,7 +233184,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -157666,12 +233275,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -157985,6 +233600,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -157993,14 +233617,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -158341,7 +233966,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -158871,7 +234496,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -158916,7 +234541,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -159042,21 +234667,6 @@ "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", @@ -159133,14 +234743,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -159502,6 +235112,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -159554,10 +235167,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -159582,6 +235200,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -159589,6 +235211,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -159936,6 +235559,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 +236129,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 +236193,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 +236236,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": { @@ -161421,6 +237381,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -161432,6 +237395,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -161439,6 +237403,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -161984,7 +237966,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -162075,12 +238057,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -162394,6 +238382,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -162402,14 +238399,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -162750,7 +238748,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -163280,7 +239278,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -163325,7 +239323,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -163451,21 +239449,6 @@ "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", @@ -163542,14 +239525,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -163911,6 +239894,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -163963,10 +239949,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -163991,6 +239982,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -163998,6 +239993,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -164342,6 +240338,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 +240908,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 +240972,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 +241015,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": { @@ -165827,6 +242160,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -165838,6 +242174,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -165845,6 +242182,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -166390,7 +242745,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -166481,12 +242836,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -166800,6 +243161,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -166808,14 +243178,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -167156,7 +243527,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -167686,7 +244057,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -167731,7 +244102,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -167857,21 +244228,6 @@ "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", @@ -167948,14 +244304,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -168317,6 +244673,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -168369,10 +244728,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -168397,6 +244761,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -168404,6 +244772,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -168754,6 +245123,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 +245693,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 +245757,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 +245800,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": { @@ -170239,6 +246945,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -170250,6 +246959,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -170257,6 +246967,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -170802,7 +247530,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -170893,12 +247621,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -171212,6 +247946,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -171220,14 +247963,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -171568,7 +248312,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -172098,7 +248842,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -172143,7 +248887,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -172269,21 +249013,6 @@ "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", @@ -172360,14 +249089,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -172729,6 +249458,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -172781,10 +249513,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -172809,6 +249546,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -172816,6 +249557,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -173176,6 +249918,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 +250488,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 +250552,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 +250595,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": { @@ -174661,6 +251740,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -174672,6 +251754,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -174679,6 +251762,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -175224,7 +252325,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -175315,12 +252416,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -175634,6 +252741,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -175642,14 +252758,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -175990,7 +253107,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -176520,7 +253637,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -176565,7 +253682,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -176691,21 +253808,6 @@ "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", @@ -176782,14 +253884,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -177151,6 +254253,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -177203,10 +254308,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -177231,6 +254341,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -177238,6 +254352,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -177582,6 +254697,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 +255267,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 +255331,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 +255374,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": { @@ -179067,6 +256519,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -179078,6 +256533,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -179085,6 +256541,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -179630,7 +257104,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -179721,12 +257195,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -180040,6 +257520,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -180048,14 +257537,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -180396,7 +257886,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -180926,7 +258416,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -180971,7 +258461,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -181097,21 +258587,6 @@ "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", @@ -181188,14 +258663,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -181557,6 +259032,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -181609,10 +259087,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -181637,6 +259120,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -181644,6 +259131,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -182037,6 +259525,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 +260095,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 +260159,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 +260202,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": { @@ -183522,6 +261347,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -183533,6 +261361,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -183540,6 +261369,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -184085,7 +261932,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -184176,12 +262023,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -184495,6 +262348,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -184503,14 +262365,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -184851,7 +262714,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -185381,7 +263244,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -185426,7 +263289,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -185552,21 +263415,6 @@ "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", @@ -185643,14 +263491,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -186012,6 +263860,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -186064,10 +263915,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -186092,6 +263948,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -186099,6 +263959,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -186446,7 +264307,6 @@ ] }, "bio": { - "maxLength": 1024, "type": "string" }, "accent_color": { @@ -186478,6 +264338,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 +264908,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 +264972,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 +265015,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": { @@ -187963,6 +266160,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -187974,6 +266174,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -187981,6 +266182,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -188526,7 +266745,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -188617,12 +266836,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -188936,6 +267161,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -188944,14 +267178,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -189292,7 +267527,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -189822,7 +268057,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -189867,7 +268102,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -189993,21 +268228,6 @@ "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", @@ -190084,14 +268304,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -190453,6 +268673,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -190505,10 +268728,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -190533,6 +268761,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -190540,6 +268772,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -190884,6 +269117,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 +269687,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 +269751,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 +269794,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": { @@ -192369,6 +270939,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -192380,6 +270953,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -192387,6 +270961,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -192932,7 +271524,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -193023,12 +271615,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -193342,6 +271940,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -193350,14 +271957,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -193698,7 +272306,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -194228,7 +272836,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -194273,7 +272881,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -194399,21 +273007,6 @@ "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", @@ -194490,14 +273083,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -194859,6 +273452,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -194911,10 +273507,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -194939,6 +273540,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -194946,6 +273551,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -195315,6 +273921,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 +274491,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 +274555,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 +274598,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": { @@ -196800,6 +275743,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -196811,6 +275757,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -196818,6 +275765,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -197363,7 +276328,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -197454,12 +276419,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -197773,6 +276744,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -197781,14 +276761,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -198129,7 +277110,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -198659,7 +277640,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -198704,7 +277685,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -198830,21 +277811,6 @@ "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", @@ -198921,14 +277887,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -199290,6 +278256,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -199342,10 +278311,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -199370,6 +278344,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -199377,6 +278355,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -199841,6 +278820,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 +279390,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 +279454,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 +279497,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": { @@ -201326,6 +280642,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -201337,6 +280656,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -201344,6 +280664,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -201889,7 +281227,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -201980,12 +281318,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -202299,6 +281643,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -202307,14 +281660,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -202655,7 +282009,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -203185,7 +282539,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -203230,7 +282584,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -203356,21 +282710,6 @@ "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", @@ -203447,14 +282786,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -203816,6 +283155,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -203868,10 +283210,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -203896,6 +283243,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -203903,6 +283254,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -204246,6 +283598,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 +284168,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 +284232,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 +284275,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": { @@ -205731,6 +285420,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -205742,6 +285434,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -205749,6 +285442,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -206294,7 +286005,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -206385,12 +286096,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -206704,6 +286421,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -206712,14 +286438,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -207060,7 +286787,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -207590,7 +287317,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -207635,7 +287362,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -207761,21 +287488,6 @@ "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", @@ -207852,14 +287564,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -208221,6 +287933,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -208273,10 +287988,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -208301,6 +288021,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -208308,6 +288032,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -208690,6 +288415,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 +288985,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 +289049,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 +289092,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": { @@ -210175,6 +290237,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -210186,6 +290251,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -210193,6 +290259,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -210738,7 +290822,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -210829,12 +290913,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -211148,6 +291238,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -211156,14 +291255,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -211504,7 +291604,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -212034,7 +292134,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -212079,7 +292179,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -212205,21 +292305,6 @@ "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", @@ -212296,14 +292381,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -212665,6 +292750,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -212717,10 +292805,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -212745,6 +292838,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -212752,6 +292849,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -213122,6 +293220,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 +293790,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 +293854,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 +293897,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": { @@ -214607,6 +295042,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -214618,6 +295056,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -214625,6 +295064,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -215170,7 +295627,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -215261,12 +295718,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -215580,6 +296043,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -215588,14 +296060,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -215936,7 +296409,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -216466,7 +296939,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -216511,7 +296984,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -216637,21 +297110,6 @@ "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", @@ -216728,14 +297186,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -217097,6 +297555,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -217149,10 +297610,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -217177,6 +297643,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -217184,6 +297654,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -217606,6 +298077,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 +298647,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 +298711,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 +298754,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": { @@ -219091,6 +299899,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -219102,6 +299913,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -219109,6 +299921,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -219654,7 +300484,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -219745,12 +300575,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -220064,6 +300900,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -220072,14 +300917,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -220420,7 +301266,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -220950,7 +301796,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -220995,7 +301841,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -221121,21 +301967,6 @@ "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", @@ -221212,14 +302043,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -221581,6 +302412,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -221633,10 +302467,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -221661,6 +302500,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -221668,6 +302511,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -222012,6 +302856,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 +303426,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 +303490,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 +303533,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": { @@ -223497,6 +304678,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -223508,6 +304692,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -223515,6 +304700,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -224060,7 +305263,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -224151,12 +305354,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -224470,6 +305679,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -224478,14 +305696,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -224826,7 +306045,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -225356,7 +306575,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -225401,7 +306620,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -225527,21 +306746,6 @@ "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", @@ -225618,14 +306822,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -225987,6 +307191,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -226039,10 +307246,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -226067,6 +307279,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -226074,6 +307290,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -226426,6 +307643,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 +308213,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 +308277,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 +308320,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": { @@ -227911,6 +309465,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -227922,6 +309479,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -227929,6 +309487,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -228474,7 +310050,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -228565,12 +310141,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -228884,6 +310466,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -228892,14 +310483,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -229240,7 +310832,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -229770,7 +311362,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -229815,7 +311407,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -229941,21 +311533,6 @@ "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", @@ -230032,14 +311609,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -230401,6 +311978,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -230453,10 +312033,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -230481,6 +312066,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -230488,6 +312077,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -230830,6 +312420,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 +312990,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 +313054,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 +313097,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": { @@ -232315,6 +314242,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -232326,6 +314256,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -232333,6 +314264,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -232878,7 +314827,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -232969,12 +314918,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -233288,6 +315243,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -233296,14 +315260,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -233644,7 +315609,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -234174,7 +316139,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -234219,7 +316184,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -234345,21 +316310,6 @@ "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", @@ -234436,14 +316386,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -234805,6 +316755,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -234857,10 +316810,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -234885,6 +316843,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -234892,6 +316854,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -235240,6 +317203,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 +317773,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 +317837,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 +317880,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": { @@ -236725,6 +319025,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -236736,6 +319039,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -236743,6 +319047,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -237288,7 +319610,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -237379,12 +319701,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -237698,6 +320026,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -237706,14 +320043,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -238054,7 +320392,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -238584,7 +320922,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -238629,7 +320967,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -238755,21 +321093,6 @@ "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", @@ -238846,14 +321169,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -239215,6 +321538,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -239267,10 +321593,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -239295,6 +321626,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -239302,6 +321637,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -239650,6 +321986,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 +322556,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 +322620,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 +322663,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": { @@ -241135,6 +323808,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -241146,6 +323822,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -241153,6 +323830,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -241698,7 +324393,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -241789,12 +324484,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -242108,6 +324809,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -242116,14 +324826,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -242464,7 +325175,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -242994,7 +325705,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -243039,7 +325750,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -243165,21 +325876,6 @@ "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", @@ -243256,14 +325952,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -243625,6 +326321,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -243677,10 +326376,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -243705,6 +326409,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -243712,6 +326420,4876 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", + "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#" + }, + "WebhookExecuteSchema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "username": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "allowed_mentions": { + "type": "object", + "properties": { + "parse": { + "type": "array", + "items": { + "type": "string" + } + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "replied_user": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "components": { + "type": "array", + "items": {} + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "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" + ] + } + }, + "flags": { + "type": "integer" + }, + "thread_name": { + "type": "string" + }, + "applied_tags": { + "type": "array", + "items": { + "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" + ] + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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" + } + }, + "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" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "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" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "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": { + "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" + } + }, + "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" + ] + }, + "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" + }, + "icon": { + "type": "string" + } + }, + "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 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "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 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -244060,6 +331638,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 +332208,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 +332272,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 +332315,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": { @@ -245545,6 +333460,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -245556,6 +333474,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -245563,6 +333482,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -246108,7 +334045,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -246199,12 +334136,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -246518,6 +334461,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -246526,14 +334478,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -246874,7 +334827,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -247404,7 +335357,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -247449,7 +335402,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -247575,21 +335528,6 @@ "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", @@ -247666,14 +335604,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -248035,6 +335973,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -248087,10 +336028,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -248115,6 +336061,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -248122,6 +336072,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -248502,6 +336453,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 +337023,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 +337087,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 +337130,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": { @@ -249987,6 +338275,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -249998,6 +338289,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -250005,6 +338297,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -250550,7 +338860,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -250641,12 +338951,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -250960,6 +339276,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -250968,14 +339293,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -251316,7 +339642,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -251846,7 +340172,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -251891,7 +340217,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -252017,21 +340343,6 @@ "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", @@ -252108,14 +340419,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -252477,6 +340788,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -252529,10 +340843,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -252557,6 +340876,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -252564,6 +340887,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -252916,6 +341240,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 +341810,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 +341874,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 +341917,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": { @@ -254401,6 +343062,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -254412,6 +343076,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -254419,6 +343084,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -254964,7 +343647,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -255055,12 +343738,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -255374,6 +344063,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -255382,14 +344080,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -255730,7 +344429,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -256260,7 +344959,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -256305,7 +345004,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -256431,21 +345130,6 @@ "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", @@ -256522,14 +345206,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -256891,6 +345575,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -256943,10 +345630,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -256971,6 +345663,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -256978,6 +345674,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -257320,6 +346017,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 +346587,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 +346651,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 +346694,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": { @@ -258805,6 +347839,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -258816,6 +347853,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -258823,6 +347861,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -259368,7 +348424,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -259459,12 +348515,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -259778,6 +348840,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -259786,14 +348857,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -260134,7 +349206,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -260664,7 +349736,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -260709,7 +349781,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -260835,21 +349907,6 @@ "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", @@ -260926,14 +349983,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -261295,6 +350352,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -261347,10 +350407,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -261375,6 +350440,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -261382,6 +350451,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -261730,6 +350800,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 +351370,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 +351434,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 +351477,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": { @@ -263215,6 +352622,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -263226,6 +352636,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -263233,6 +352644,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -263778,7 +353207,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -263869,12 +353298,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -264188,6 +353623,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -264196,14 +353640,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -264544,7 +353989,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -265074,7 +354519,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -265119,7 +354564,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -265245,21 +354690,6 @@ "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", @@ -265336,14 +354766,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -265705,6 +355135,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -265757,10 +355190,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -265785,6 +355223,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -265792,6 +355234,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -266151,6 +355594,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 +356164,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 +356228,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 +356271,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": { @@ -267636,6 +357416,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -267647,6 +357430,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -267654,6 +357438,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -268199,7 +358001,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -268290,12 +358092,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -268609,6 +358417,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -268617,14 +358434,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -268965,7 +358783,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -269495,7 +359313,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -269540,7 +359358,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -269666,21 +359484,6 @@ "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", @@ -269757,14 +359560,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -270126,6 +359929,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -270178,10 +359984,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -270206,6 +360017,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -270213,6 +360028,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -270586,6 +360402,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 +360972,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 +361036,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 +361079,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": { @@ -272071,6 +362224,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -272082,6 +362238,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -272089,6 +362246,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -272634,7 +362809,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -272725,12 +362900,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -273044,6 +363225,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -273052,14 +363242,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -273400,7 +363591,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -273930,7 +364121,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -273975,7 +364166,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -274101,21 +364292,6 @@ "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", @@ -274192,14 +364368,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -274561,6 +364737,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -274613,10 +364792,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -274641,6 +364825,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -274648,6 +364836,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -274992,6 +365181,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 +365751,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 +365815,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 +365858,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": { @@ -276477,6 +367003,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -276488,6 +367017,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -276495,6 +367025,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -277040,7 +367588,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -277131,12 +367679,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -277450,6 +368004,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -277458,14 +368021,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -277806,7 +368370,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -278336,7 +368900,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -278381,7 +368945,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -278507,21 +369071,6 @@ "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", @@ -278598,14 +369147,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -278967,6 +369516,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -279019,10 +369571,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -279047,6 +369604,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -279054,6 +369615,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -279401,6 +369963,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 +370533,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 +370597,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 +370640,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": { @@ -280886,6 +371785,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -280897,6 +371799,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -280904,6 +371807,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -281449,7 +372370,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -281540,12 +372461,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -281859,6 +372786,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -281867,14 +372803,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -282215,7 +373152,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -282745,7 +373682,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -282790,7 +373727,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -282916,21 +373853,6 @@ "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", @@ -283007,14 +373929,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -283376,6 +374298,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -283428,10 +374353,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -283456,6 +374386,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -283463,6 +374397,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -283839,6 +374774,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 +375344,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 +375408,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 +375451,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": { @@ -285324,6 +376596,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -285335,6 +376610,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -285342,6 +376618,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -285887,7 +377181,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -285978,12 +377272,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -286297,6 +377597,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -286305,14 +377614,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -286653,7 +377963,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -287183,7 +378493,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -287228,7 +378538,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -287354,21 +378664,6 @@ "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", @@ -287445,14 +378740,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -287814,6 +379109,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -287866,10 +379164,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -287894,6 +379197,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -287901,6 +379208,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -288245,6 +379553,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 +380123,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 +380187,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 +380230,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": { @@ -289730,6 +381375,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -289741,6 +381389,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -289748,6 +381397,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -290293,7 +381960,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -290384,12 +382051,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -290703,6 +382376,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -290711,14 +382393,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -291059,7 +382742,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -291589,7 +383272,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -291634,7 +383317,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -291760,21 +383443,6 @@ "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", @@ -291851,14 +383519,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -292220,6 +383888,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -292272,10 +383943,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -292300,6 +383976,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -292307,6 +383987,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -292730,6 +384411,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 +384981,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 +385045,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 +385088,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": { @@ -294215,6 +386233,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -294226,6 +386247,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -294233,6 +386255,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -294778,7 +386818,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -294869,12 +386909,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -295188,6 +387234,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -295196,14 +387251,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -295544,7 +387600,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -296074,7 +388130,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -296119,7 +388175,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -296245,21 +388301,6 @@ "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", @@ -296336,14 +388377,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -296705,6 +388746,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -296757,10 +388801,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -296785,6 +388834,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -296792,6 +388845,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -297143,6 +389197,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 +389767,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 +389831,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 +389874,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": { @@ -298628,6 +391019,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -298639,6 +391033,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -298646,6 +391041,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -299191,7 +391604,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -299282,12 +391695,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -299601,6 +392020,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -299609,14 +392037,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -299957,7 +392386,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -300487,7 +392916,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -300532,7 +392961,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -300658,21 +393087,6 @@ "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", @@ -300749,14 +393163,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -301118,6 +393532,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -301170,10 +393587,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -301198,6 +393620,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -301205,6 +393631,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -301549,6 +393976,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 +394546,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 +394610,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 +394653,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": { @@ -303034,6 +395798,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -303045,6 +395812,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -303052,6 +395820,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -303597,7 +396383,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -303688,12 +396474,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -304007,6 +396799,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -304015,14 +396816,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -304363,7 +397165,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -304893,7 +397695,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -304938,7 +397740,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -305064,21 +397866,6 @@ "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", @@ -305155,14 +397942,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -305524,6 +398311,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -305576,10 +398366,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -305604,6 +398399,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -305611,6 +398410,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -305955,6 +398755,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 +399325,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 +399389,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 +399432,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": { @@ -307440,6 +400577,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -307451,6 +400591,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -307458,6 +400599,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -308003,7 +401162,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -308094,12 +401253,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -308413,6 +401578,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -308421,14 +401595,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -308769,7 +401944,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -309299,7 +402474,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -309344,7 +402519,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -309470,21 +402645,6 @@ "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", @@ -309561,14 +402721,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -309930,6 +403090,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -309982,10 +403145,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -310010,6 +403178,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -310017,6 +403189,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -310368,6 +403541,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 +404111,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 +404175,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 +404218,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": { @@ -311853,6 +405363,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -311864,6 +405377,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -311871,6 +405385,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -312416,7 +405948,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -312507,12 +406039,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -312826,6 +406364,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -312834,14 +406381,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -313182,7 +406730,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -313712,7 +407260,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -313757,7 +407305,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -313883,21 +407431,6 @@ "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", @@ -313974,14 +407507,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -314343,6 +407876,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -314395,10 +407931,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -314423,6 +407964,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -314430,6 +407975,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -314778,6 +408324,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 +408894,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 +408958,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 +409001,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": { @@ -316263,6 +410146,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -316274,6 +410160,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -316281,6 +410168,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -316826,7 +410731,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -316917,12 +410822,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -317236,6 +411147,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -317244,14 +411164,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -317592,7 +411513,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -318122,7 +412043,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -318167,7 +412088,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -318293,21 +412214,6 @@ "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", @@ -318384,14 +412290,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -318753,6 +412659,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -318805,10 +412714,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -318833,6 +412747,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -318840,6 +412758,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -319184,6 +413103,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 +413673,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 +413737,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 +413780,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": { @@ -320669,6 +414925,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -320680,6 +414939,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -320687,6 +414947,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -321232,7 +415510,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -321323,12 +415601,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -321642,6 +415926,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -321650,14 +415943,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -321998,7 +416292,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -322528,7 +416822,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -322573,7 +416867,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -322699,21 +416993,6 @@ "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", @@ -322790,14 +417069,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -323159,6 +417438,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -323211,10 +417493,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -323239,6 +417526,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -323246,6 +417537,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -323665,6 +417957,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 +418527,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 +418591,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 +418634,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": { @@ -325150,6 +419779,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -325161,6 +419793,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -325168,6 +419801,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -325713,7 +420364,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -325804,12 +420455,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -326123,6 +420780,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -326131,14 +420797,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -326479,7 +421146,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -327009,7 +421676,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -327054,7 +421721,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -327180,21 +421847,6 @@ "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", @@ -327271,14 +421923,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -327640,6 +422292,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -327692,10 +422347,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -327720,6 +422380,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -327727,6 +422391,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -328082,6 +422747,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 +423317,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 +423381,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 +423424,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": { @@ -329567,6 +424569,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -329578,6 +424583,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -329585,6 +424591,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -330130,7 +425154,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -330221,12 +425245,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -330540,6 +425570,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -330548,14 +425587,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -330896,7 +425936,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -331426,7 +426466,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -331471,7 +426511,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -331597,21 +426637,6 @@ "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", @@ -331688,14 +426713,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -332057,6 +427082,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -332109,10 +427137,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -332137,6 +427170,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -332144,6 +427181,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -332500,6 +427538,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 +428108,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 +428172,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 +428215,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": { @@ -333985,6 +429360,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -333996,6 +429374,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -334003,6 +429382,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -334548,7 +429945,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -334639,12 +430036,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -334958,6 +430361,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -334966,14 +430378,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -335314,7 +430727,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -335844,7 +431257,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -335889,7 +431302,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -336015,21 +431428,6 @@ "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", @@ -336106,14 +431504,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -336475,6 +431873,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -336527,10 +431928,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -336555,6 +431961,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -336562,6 +431972,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -336968,6 +432379,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 +432949,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 +433013,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 +433056,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": { @@ -338453,6 +434201,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -338464,6 +434215,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -338471,6 +434223,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -339016,7 +434786,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -339107,12 +434877,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -339426,6 +435202,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -339434,14 +435219,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -339782,7 +435568,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -340312,7 +436098,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -340357,7 +436143,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -340483,21 +436269,6 @@ "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", @@ -340574,14 +436345,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -340943,6 +436714,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -340995,10 +436769,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -341023,6 +436802,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -341030,6 +436813,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -341395,6 +437179,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 +437749,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 +437813,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 +437856,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": { @@ -342880,6 +439001,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -342891,6 +439015,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -342898,6 +439023,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -343443,7 +439586,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -343534,12 +439677,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -343853,6 +440002,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -343861,14 +440019,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -344209,7 +440368,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -344739,7 +440898,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -344784,7 +440943,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -344910,21 +441069,6 @@ "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", @@ -345001,14 +441145,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -345370,6 +441514,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -345422,10 +441569,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -345450,6 +441602,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -345457,6 +441613,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -345828,6 +441985,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 +442555,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 +442619,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 +442662,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": { @@ -347313,6 +443807,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -347324,6 +443821,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -347331,6 +443829,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -347876,7 +444392,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -347967,12 +444483,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -348286,6 +444808,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -348294,14 +444825,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -348642,7 +445174,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -349172,7 +445704,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -349217,7 +445749,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -349343,21 +445875,6 @@ "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", @@ -349434,14 +445951,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -349803,6 +446320,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -349855,10 +446375,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -349883,6 +446408,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -349890,6 +446419,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -350255,6 +446785,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 +447355,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 +447419,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 +447462,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": { @@ -351740,6 +448607,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -351751,6 +448621,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -351758,6 +448629,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -352303,7 +449192,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -352394,12 +449283,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -352713,6 +449608,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -352721,14 +449625,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -353069,7 +449974,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -353599,7 +450504,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -353644,7 +450549,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -353770,21 +450675,6 @@ "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", @@ -353861,14 +450751,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -354230,6 +451120,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -354282,10 +451175,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -354310,6 +451208,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -354317,6 +451219,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -354661,6 +451564,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 +452134,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 +452198,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 +452241,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": { @@ -356146,6 +453386,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -356157,6 +453400,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -356164,6 +453408,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -356709,7 +453971,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -356800,12 +454062,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -357119,6 +454387,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -357127,14 +454404,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -357475,7 +454753,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -358005,7 +455283,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -358050,7 +455328,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -358176,21 +455454,6 @@ "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", @@ -358267,14 +455530,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -358636,6 +455899,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -358688,10 +455954,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -358716,6 +455987,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -358723,6 +455998,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -359095,6 +456371,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 +456941,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 +457005,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 +457048,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": { @@ -360580,6 +458193,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -360591,6 +458207,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -360598,6 +458215,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -361143,7 +458778,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -361234,12 +458869,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -361553,6 +459194,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -361561,14 +459211,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -361909,7 +459560,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -362439,7 +460090,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -362484,7 +460135,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -362610,21 +460261,6 @@ "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", @@ -362701,14 +460337,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -363070,6 +460706,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -363122,10 +460761,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -363150,6 +460794,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -363157,6 +460805,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -363541,6 +461190,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 +461760,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 +461824,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 +461867,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": { @@ -365026,6 +463012,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -365037,6 +463026,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -365044,6 +463034,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -365589,7 +463597,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -365680,12 +463688,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -365999,6 +464013,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -366007,14 +464030,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -366355,7 +464379,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -366885,7 +464909,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -366930,7 +464954,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -367056,21 +465080,6 @@ "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", @@ -367147,14 +465156,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -367516,6 +465525,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -367568,10 +465580,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -367596,6 +465613,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -367603,6 +465624,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -367941,6 +465963,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 +466533,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 +466597,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 +466640,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": { @@ -369426,6 +467785,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -369437,6 +467799,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -369444,6 +467807,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -369989,7 +468370,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -370080,12 +468461,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -370399,6 +468786,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -370407,14 +468803,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -370755,7 +469152,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -371285,7 +469682,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -371330,7 +469727,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -371456,21 +469853,6 @@ "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", @@ -371547,14 +469929,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -371916,6 +470298,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -371968,10 +470353,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -371996,6 +470386,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -372003,6 +470397,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -372351,6 +470746,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 +471316,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 +471380,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 +471423,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": { @@ -373836,6 +472568,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -373847,6 +472582,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -373854,6 +472590,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -374399,7 +473153,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -374490,12 +473244,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -374809,6 +473569,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -374817,14 +473586,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -375165,7 +473935,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -375695,7 +474465,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -375740,7 +474510,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -375866,21 +474636,6 @@ "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", @@ -375957,14 +474712,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -376326,6 +475081,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -376378,10 +475136,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -376406,6 +475169,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -376413,6 +475180,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -376757,6 +475525,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 +476095,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 +476159,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 +476202,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": { @@ -378242,6 +477347,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -378253,6 +477361,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -378260,6 +477369,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -378805,7 +477932,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -378896,12 +478023,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -379215,6 +478348,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -379223,14 +478365,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -379571,7 +478714,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -380101,7 +479244,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -380146,7 +479289,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -380272,21 +479415,6 @@ "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", @@ -380363,14 +479491,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -380732,6 +479860,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -380784,10 +479915,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -380812,6 +479948,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -380819,6 +479959,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -381170,6 +480311,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 +480881,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 +480945,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 +480988,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": { @@ -382655,6 +482133,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -382666,6 +482147,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -382673,6 +482155,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -383218,7 +482718,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -383309,12 +482809,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -383628,6 +483134,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -383636,14 +483151,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -383984,7 +483500,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -384514,7 +484030,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -384559,7 +484075,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -384685,21 +484201,6 @@ "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", @@ -384776,14 +484277,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -385145,6 +484646,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -385197,10 +484701,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -385225,6 +484734,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -385232,6 +484745,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -385787,6 +485301,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 +485871,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 +485935,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 +485978,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": { @@ -387272,6 +487123,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -387283,6 +487137,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -387290,6 +487145,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -387835,7 +487708,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -387926,12 +487799,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -388245,6 +488124,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -388253,14 +488141,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -388601,7 +488490,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -389131,7 +489020,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -389176,7 +489065,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -389302,21 +489191,6 @@ "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", @@ -389393,14 +489267,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -389762,6 +489636,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -389814,10 +489691,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -389842,6 +489724,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -389849,6 +489735,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -390184,6 +490071,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 +490641,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 +490705,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 +490748,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": { @@ -391669,6 +491893,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -391680,6 +491907,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -391687,6 +491915,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -392232,7 +492478,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -392323,12 +492569,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -392642,6 +492894,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -392650,14 +492911,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -392998,7 +493260,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -393528,7 +493790,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -393573,7 +493835,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -393699,21 +493961,6 @@ "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", @@ -393790,14 +494037,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -394159,6 +494406,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -394211,10 +494461,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -394239,6 +494494,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -394246,6 +494505,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -394681,6 +494941,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 +495511,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 +495575,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 +495618,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": { @@ -396166,6 +496763,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -396177,6 +496777,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -396184,6 +496785,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -396729,7 +497348,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -396820,12 +497439,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -397139,6 +497764,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -397147,14 +497781,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -397495,7 +498130,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -398025,7 +498660,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -398070,7 +498705,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -398196,21 +498831,6 @@ "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", @@ -398287,14 +498907,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -398656,6 +499276,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -398708,10 +499331,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -398736,6 +499364,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -398743,6 +499375,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -399081,6 +499714,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 +500284,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 +500348,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 +500391,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": { @@ -400566,6 +501536,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -400577,6 +501550,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -400584,6 +501558,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -401129,7 +502121,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -401220,12 +502212,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -401539,6 +502537,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -401547,14 +502554,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -401895,7 +502903,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -402425,7 +503433,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -402470,7 +503478,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -402596,21 +503604,6 @@ "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", @@ -402687,14 +503680,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -403056,6 +504049,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -403108,10 +504104,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -403136,6 +504137,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -403143,6 +504148,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -403481,6 +504487,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 +505057,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 +505121,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 +505164,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": { @@ -404966,6 +506309,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -404977,6 +506323,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -404984,6 +506331,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -405529,7 +506894,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -405620,12 +506985,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -405939,6 +507310,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -405947,14 +507327,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -406295,7 +507676,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -406825,7 +508206,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -406870,7 +508251,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -406996,21 +508377,6 @@ "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", @@ -407087,14 +508453,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -407456,6 +508822,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -407508,10 +508877,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -407536,6 +508910,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -407543,6 +508921,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -407881,6 +509260,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 +509830,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 +509894,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 +509937,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": { @@ -409366,6 +511082,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -409377,6 +511096,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -409384,6 +511104,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -409929,7 +511667,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -410020,12 +511758,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -410339,6 +512083,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -410347,14 +512100,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -410695,7 +512449,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -411225,7 +512979,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -411270,7 +513024,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -411396,21 +513150,6 @@ "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", @@ -411487,14 +513226,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -411856,6 +513595,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -411908,10 +513650,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -411936,6 +513683,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -411943,6 +513694,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -412381,6 +514133,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 +514703,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 +514767,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 +514810,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": { @@ -413866,6 +515955,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -413877,6 +515969,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -413884,6 +515977,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -414429,7 +516540,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -414520,12 +516631,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -414839,6 +516956,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -414847,14 +516973,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -415195,7 +517322,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -415725,7 +517852,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -415770,7 +517897,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -415896,21 +518023,6 @@ "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", @@ -415987,14 +518099,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -416356,6 +518468,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -416408,10 +518523,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -416436,6 +518556,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -416443,6 +518567,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -416779,6 +518904,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 +519474,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 +519538,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 +519581,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": { @@ -418264,6 +520726,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -418275,6 +520740,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -418282,6 +520748,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -418827,7 +521311,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -418918,12 +521402,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -419237,6 +521727,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -419245,14 +521744,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -419593,7 +522093,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -420123,7 +522623,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -420168,7 +522668,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -420294,21 +522794,6 @@ "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", @@ -420385,14 +522870,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -420754,6 +523239,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -420806,10 +523294,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -420834,6 +523327,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -420841,6 +523338,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -421177,6 +523675,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 +524245,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 +524309,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 +524352,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": { @@ -422662,6 +525497,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -422673,6 +525511,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -422680,6 +525519,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -423225,7 +526082,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -423316,12 +526173,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -423635,6 +526498,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -423643,14 +526515,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -423991,7 +526864,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -424521,7 +527394,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -424566,7 +527439,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -424692,21 +527565,6 @@ "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", @@ -424783,14 +527641,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -425152,6 +528010,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -425204,10 +528065,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -425232,6 +528098,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -425239,6 +528109,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -425575,6 +528446,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 +529016,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 +529080,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 +529123,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": { @@ -427060,6 +530268,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -427071,6 +530282,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -427078,6 +530290,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -427623,7 +530853,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -427714,12 +530944,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -428033,6 +531269,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -428041,14 +531286,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -428389,7 +531635,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -428919,7 +532165,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -428964,7 +532210,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -429090,21 +532336,6 @@ "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", @@ -429181,14 +532412,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -429550,6 +532781,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -429602,10 +532836,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -429630,6 +532869,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -429637,6 +532880,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -429975,6 +533219,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 +533789,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 +533853,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 +533896,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": { @@ -431460,6 +535041,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -431471,6 +535055,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -431478,6 +535063,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -432023,7 +535626,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -432114,12 +535717,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -432433,6 +536042,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -432441,14 +536059,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -432789,7 +536408,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -433319,7 +536938,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -433364,7 +536983,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -433490,21 +537109,6 @@ "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", @@ -433581,14 +537185,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -433950,6 +537554,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -434002,10 +537609,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -434030,6 +537642,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -434037,6 +537653,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -434375,6 +537992,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 +538562,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 +538626,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 +538669,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": { @@ -435860,6 +539814,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -435871,6 +539828,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -435878,6 +539836,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -436423,7 +540399,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -436514,12 +540490,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -436833,6 +540815,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -436841,14 +540832,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -437189,7 +541181,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -437719,7 +541711,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -437764,7 +541756,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -437890,21 +541882,6 @@ "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", @@ -437981,14 +541958,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -438350,6 +542327,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -438402,10 +542382,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -438430,6 +542415,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -438437,6 +542426,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -438775,6 +542765,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 +543335,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 +543399,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 +543442,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": { @@ -440260,6 +544587,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -440271,6 +544601,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -440278,6 +544609,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -440823,7 +545172,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -440914,12 +545263,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -441233,6 +545588,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -441241,14 +545605,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -441589,7 +545954,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -442119,7 +546484,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -442164,7 +546529,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -442290,21 +546655,6 @@ "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", @@ -442381,14 +546731,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -442750,6 +547100,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -442802,10 +547155,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -442830,6 +547188,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -442837,6 +547199,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -443175,6 +547538,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 +548108,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 +548172,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 +548215,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": { @@ -444660,6 +549360,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -444671,6 +549374,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -444678,6 +549382,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -445223,7 +549945,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -445314,12 +550036,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -445633,6 +550361,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -445641,14 +550378,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -445989,7 +550727,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -446519,7 +551257,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -446564,7 +551302,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -446690,21 +551428,6 @@ "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", @@ -446781,14 +551504,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -447150,6 +551873,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -447202,10 +551928,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -447230,6 +551961,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -447237,6 +551972,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -447575,6 +552311,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 +552881,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 +552945,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 +552988,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": { @@ -449060,6 +554133,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -449071,6 +554147,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -449078,6 +554155,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -449623,7 +554718,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -449714,12 +554809,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -450033,6 +555134,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -450041,14 +555151,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -450389,7 +555500,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -450919,7 +556030,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -450964,7 +556075,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -451090,21 +556201,6 @@ "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", @@ -451181,14 +556277,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -451550,6 +556646,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -451602,10 +556701,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -451630,6 +556734,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -451637,6 +556745,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -452039,6 +557148,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 +557718,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 +557782,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 +557825,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": { @@ -453524,6 +558970,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -453535,6 +558984,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -453542,6 +558992,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -454087,7 +559555,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -454178,12 +559646,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -454497,6 +559971,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -454505,14 +559988,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -454853,7 +560337,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -455383,7 +560867,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -455428,7 +560912,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -455554,21 +561038,6 @@ "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", @@ -455645,14 +561114,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -456014,6 +561483,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -456066,10 +561538,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -456094,6 +561571,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -456101,6 +561582,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -456439,6 +561921,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 +562491,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 +562555,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 +562598,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": { @@ -457924,6 +563743,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -457935,6 +563757,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -457942,6 +563765,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -458487,7 +564328,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -458578,12 +564419,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -458897,6 +564744,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -458905,14 +564761,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -459253,7 +565110,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -459783,7 +565640,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -459828,7 +565685,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -459954,21 +565811,6 @@ "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", @@ -460045,14 +565887,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -460414,6 +566256,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -460466,10 +566311,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -460494,6 +566344,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -460501,6 +566355,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -460839,6 +566694,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 +567264,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 +567328,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 +567371,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": { @@ -462324,6 +568516,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -462335,6 +568530,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -462342,6 +568538,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -462887,7 +569101,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -462978,12 +569192,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -463297,6 +569517,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -463305,14 +569534,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -463653,7 +569883,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -464183,7 +570413,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -464228,7 +570458,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -464354,21 +570584,6 @@ "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", @@ -464445,14 +570660,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -464814,6 +571029,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -464866,10 +571084,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -464894,6 +571117,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -464901,6 +571128,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -465239,6 +571467,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 +572037,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 +572101,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 +572144,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": { @@ -466724,6 +573289,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -466735,6 +573303,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -466742,6 +573311,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -467287,7 +573874,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -467378,12 +573965,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -467697,6 +574290,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -467705,14 +574307,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -468053,7 +574656,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -468583,7 +575186,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -468628,7 +575231,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -468754,21 +575357,6 @@ "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", @@ -468845,14 +575433,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -469214,6 +575802,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -469266,10 +575857,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -469294,6 +575890,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -469301,6 +575901,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -469686,6 +576287,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 +576857,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 +576921,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 +576964,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": { @@ -471171,6 +578109,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -471182,6 +578123,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -471189,6 +578131,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -471734,7 +578694,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -471825,12 +578785,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -472144,6 +579110,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -472152,14 +579127,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -472500,7 +579476,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -473030,7 +580006,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -473075,7 +580051,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -473201,21 +580177,6 @@ "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", @@ -473292,14 +580253,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -473661,6 +580622,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -473713,10 +580677,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -473741,6 +580710,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -473748,6 +580721,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -474322,6 +581296,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 +581866,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 +581930,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 +581973,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": { @@ -475807,6 +583118,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -475818,6 +583132,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -475825,6 +583140,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -476370,7 +583703,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -476461,12 +583794,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -476780,6 +584119,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -476788,14 +584136,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -477136,7 +584485,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -477666,7 +585015,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -477711,7 +585060,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -477837,21 +585186,6 @@ "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", @@ -477928,14 +585262,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -478297,6 +585631,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -478349,10 +585686,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -478377,6 +585719,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -478384,6 +585730,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -478722,6 +586069,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 +586639,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 +586703,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 +586746,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": { @@ -480207,6 +587891,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -480218,6 +587905,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -480225,6 +587913,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -480770,7 +588476,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -480861,12 +588567,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -481180,6 +588892,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -481188,14 +588909,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -481536,7 +589258,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -482066,7 +589788,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -482111,7 +589833,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -482237,21 +589959,6 @@ "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", @@ -482328,14 +590035,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -482697,6 +590404,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -482749,10 +590459,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -482777,6 +590492,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -482784,6 +590503,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -483122,6 +590842,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 +591412,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 +591476,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 +591519,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": { @@ -484607,6 +592664,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -484618,6 +592678,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -484625,6 +592686,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -485170,7 +593249,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -485261,12 +593340,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -485580,6 +593665,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -485588,14 +593682,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -485936,7 +594031,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -486466,7 +594561,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -486511,7 +594606,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -486637,21 +594732,6 @@ "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", @@ -486728,14 +594808,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -487097,6 +595177,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -487149,10 +595232,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -487177,6 +595265,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -487184,6 +595276,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -487522,6 +595615,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 +596185,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 +596249,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 +596292,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": { @@ -489007,6 +597437,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -489018,6 +597451,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -489025,6 +597459,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -489570,7 +598022,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -489661,12 +598113,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -489980,6 +598438,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -489988,14 +598455,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -490336,7 +598804,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -490866,7 +599334,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -490911,7 +599379,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -491037,21 +599505,6 @@ "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", @@ -491128,14 +599581,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -491497,6 +599950,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -491549,10 +600005,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -491577,6 +600038,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -491584,6 +600049,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -491922,6 +600388,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 +600958,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 +601022,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 +601065,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": { @@ -493407,6 +602210,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -493418,6 +602224,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -493425,6 +602232,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -493970,7 +602795,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -494061,12 +602886,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -494380,6 +603211,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -494388,14 +603228,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -494736,7 +603577,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -495266,7 +604107,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -495311,7 +604152,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -495437,21 +604278,6 @@ "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", @@ -495528,14 +604354,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -495897,6 +604723,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -495949,10 +604778,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -495977,6 +604811,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -495984,6 +604822,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -496348,6 +605187,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 +605757,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 +605821,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 +605864,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": { @@ -497833,6 +607009,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -497844,6 +607023,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -497851,6 +607031,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -498396,7 +607594,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -498487,12 +607685,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -498806,6 +608010,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -498814,14 +608027,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -499162,7 +608376,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -499692,7 +608906,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -499737,7 +608951,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -499863,21 +609077,6 @@ "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", @@ -499954,14 +609153,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -500323,6 +609522,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -500375,10 +609577,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -500403,6 +609610,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -500410,6 +609621,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -500748,6 +609960,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 +610530,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 +610594,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 +610637,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": { @@ -502233,6 +611782,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -502244,6 +611796,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -502251,6 +611804,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -502796,7 +612367,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -502887,12 +612458,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -503206,6 +612783,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -503214,14 +612800,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -503562,7 +613149,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -504092,7 +613679,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -504137,7 +613724,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -504263,21 +613850,6 @@ "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", @@ -504354,14 +613926,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -504723,6 +614295,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -504775,10 +614350,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -504803,6 +614383,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -504810,6 +614394,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -505146,6 +614731,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 +615301,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 +615365,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 +615408,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": { @@ -506631,6 +616553,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -506642,6 +616567,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -506649,6 +616575,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -507194,7 +617138,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -507285,12 +617229,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -507604,6 +617554,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -507612,14 +617571,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -507960,7 +617920,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -508490,7 +618450,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -508535,7 +618495,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -508661,21 +618621,6 @@ "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", @@ -508752,14 +618697,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -509121,6 +619066,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -509173,10 +619121,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -509201,6 +619154,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -509208,6 +619165,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -509567,6 +619525,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 +620095,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 +620159,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 +620202,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": { @@ -511052,6 +621347,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -511063,6 +621361,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -511070,6 +621369,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -511615,7 +621932,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -511706,12 +622023,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -512025,6 +622348,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -512033,14 +622365,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -512381,7 +622714,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -512911,7 +623244,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -512956,7 +623289,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -513082,21 +623415,6 @@ "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", @@ -513173,14 +623491,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -513542,6 +623860,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -513594,10 +623915,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -513622,6 +623948,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -513629,6 +623959,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -513981,6 +624312,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 +624882,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 +624946,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 +624989,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": { @@ -515466,6 +626134,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -515477,6 +626148,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -515484,6 +626156,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -516029,7 +626719,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -516120,12 +626810,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -516439,6 +627135,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -516447,14 +627152,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -516795,7 +627501,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -517325,7 +628031,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -517370,7 +628076,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -517496,21 +628202,6 @@ "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", @@ -517587,14 +628278,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -517956,6 +628647,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -518008,10 +628702,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -518036,6 +628735,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -518043,6 +628746,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -518514,6 +629218,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 +629788,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 +629852,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 +629895,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": { @@ -519999,6 +631040,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -520010,6 +631054,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -520017,6 +631062,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -520562,7 +631625,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -520653,12 +631716,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -520972,6 +632041,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -520980,14 +632058,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -521328,7 +632407,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -521858,7 +632937,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -521903,7 +632982,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -522029,21 +633108,6 @@ "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", @@ -522120,14 +633184,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -522489,6 +633553,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -522541,10 +633608,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -522569,6 +633641,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -522576,6 +633652,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -522938,6 +634015,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 +634585,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 +634649,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 +634692,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": { @@ -524423,6 +635837,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -524434,6 +635851,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -524441,6 +635859,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -524986,7 +636422,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -525077,12 +636513,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -525396,6 +636838,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -525404,14 +636855,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -525752,7 +637204,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -526282,7 +637734,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -526327,7 +637779,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -526453,21 +637905,6 @@ "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", @@ -526544,14 +637981,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -526913,6 +638350,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -526965,10 +638405,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -526993,6 +638438,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -527000,6 +638449,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -527356,6 +638806,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 +639376,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 +639440,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 +639483,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": { @@ -528841,6 +640628,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -528852,6 +640642,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -528859,6 +640650,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -529404,7 +641213,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -529495,12 +641304,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -529814,6 +641629,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -529822,14 +641646,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -530170,7 +641995,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -530700,7 +642525,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -530745,7 +642570,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -530871,21 +642696,6 @@ "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", @@ -530962,14 +642772,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -531331,6 +643141,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -531383,10 +643196,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -531411,6 +643229,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -531418,6 +643240,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -531766,6 +643589,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 +644159,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 +644223,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 +644266,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": { @@ -533251,6 +645411,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -533262,6 +645425,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -533269,6 +645433,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -533814,7 +645996,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -533905,12 +646087,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -534224,6 +646412,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -534232,14 +646429,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -534580,7 +646778,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -535110,7 +647308,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -535155,7 +647353,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -535281,21 +647479,6 @@ "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", @@ -535372,14 +647555,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -535741,6 +647924,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -535793,10 +647979,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -535821,6 +648012,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -535828,6 +648023,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -536176,6 +648372,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 +648942,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 +649006,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 +649049,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": { @@ -537661,6 +650194,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -537672,6 +650208,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -537679,6 +650216,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -538224,7 +650779,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -538315,12 +650870,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -538634,6 +651195,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -538642,14 +651212,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -538990,7 +651561,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -539520,7 +652091,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -539565,7 +652136,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -539691,21 +652262,6 @@ "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", @@ -539782,14 +652338,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -540151,6 +652707,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -540203,10 +652762,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -540231,6 +652795,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -540238,6 +652806,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -540573,6 +653142,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 +653712,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 +653776,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 +653819,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": { @@ -542058,6 +654964,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -542069,6 +654978,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -542076,6 +654986,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -542621,7 +655549,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -542712,12 +655640,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -543031,6 +655965,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -543039,14 +655982,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -543387,7 +656331,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -543917,7 +656861,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -543962,7 +656906,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -544088,21 +657032,6 @@ "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", @@ -544179,14 +657108,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -544548,6 +657477,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -544600,10 +657532,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -544628,6 +657565,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -544635,6 +657576,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -544985,6 +657927,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 +658497,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 +658561,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 +658604,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": { @@ -546470,6 +659749,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -546481,6 +659763,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -546488,6 +659771,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -547033,7 +660334,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -547124,12 +660425,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -547443,6 +660750,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -547451,14 +660767,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -547799,7 +661116,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -548329,7 +661646,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -548374,7 +661691,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -548500,21 +661817,6 @@ "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", @@ -548591,14 +661893,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -548960,6 +662262,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -549012,10 +662317,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -549040,6 +662350,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -549047,6 +662361,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -549394,6 +662709,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 +663279,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 +663343,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 +663386,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": { @@ -550879,6 +664531,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -550890,6 +664545,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -550897,6 +664553,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -551442,7 +665116,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -551533,12 +665207,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -551852,6 +665532,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -551860,14 +665549,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -552208,7 +665898,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -552738,7 +666428,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -552783,7 +666473,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -552909,21 +666599,6 @@ "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", @@ -553000,14 +666675,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -553369,6 +667044,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -553421,10 +667099,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -553449,6 +667132,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -553456,6 +667143,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -553818,6 +667506,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 +668076,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 +668140,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 +668183,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": { @@ -555303,6 +669328,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -555314,6 +669342,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -555321,6 +669350,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -555866,7 +669913,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -555957,12 +670004,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -556276,6 +670329,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -556284,14 +670346,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -556632,7 +670695,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -557162,7 +671225,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -557207,7 +671270,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -557333,21 +671396,6 @@ "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", @@ -557424,14 +671472,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -557793,6 +671841,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -557845,10 +671896,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -557873,6 +671929,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -557880,6 +671940,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -558246,6 +672307,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 +672877,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 +672941,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 +672984,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": { @@ -559731,6 +674129,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -559742,6 +674143,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -559749,6 +674151,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -560294,7 +674714,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -560385,12 +674805,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -560704,6 +675130,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -560712,14 +675147,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -561060,7 +675496,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -561590,7 +676026,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -561635,7 +676071,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -561761,21 +676197,6 @@ "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", @@ -561852,14 +676273,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -562221,6 +676642,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -562273,10 +676697,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -562301,6 +676730,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -562308,6 +676741,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -562653,6 +677087,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 +677657,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 +677721,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 +677764,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": { @@ -564138,6 +678909,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -564149,6 +678923,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -564156,6 +678931,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -564701,7 +679494,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -564792,12 +679585,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -565111,6 +679910,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -565119,14 +679927,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -565467,7 +680276,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -565997,7 +680806,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -566042,7 +680851,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -566168,21 +680977,6 @@ "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", @@ -566259,14 +681053,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -566628,6 +681422,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -566680,10 +681477,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -566708,6 +681510,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -566715,6 +681521,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -567059,6 +681866,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 +682436,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 +682500,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 +682543,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": { @@ -568544,6 +683688,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -568555,6 +683702,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -568562,6 +683710,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -569107,7 +684273,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -569198,12 +684364,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -569517,6 +684689,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -569525,14 +684706,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -569873,7 +685055,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -570403,7 +685585,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -570448,7 +685630,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -570574,21 +685756,6 @@ "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", @@ -570665,14 +685832,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -571034,6 +686201,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -571086,10 +686256,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -571114,6 +686289,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -571121,6 +686300,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -571465,6 +686645,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 +687215,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 +687279,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 +687322,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": { @@ -572950,6 +688467,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -572961,6 +688481,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -572968,6 +688489,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -573513,7 +689052,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -573604,12 +689143,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -573923,6 +689468,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -573931,14 +689485,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -574279,7 +689834,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -574809,7 +690364,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -574854,7 +690409,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -574980,21 +690535,6 @@ "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", @@ -575071,14 +690611,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -575440,6 +690980,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -575492,10 +691035,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -575520,6 +691068,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -575527,6 +691079,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", @@ -575877,6 +691430,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 +692000,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 +692064,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 +692107,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": { @@ -577362,6 +693252,9 @@ "version" ] }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, "status": { "$ref": "#/definitions/Status" }, @@ -577373,6 +693266,7 @@ "required": [ "activities", "client_info", + "client_status", "id", "session_id", "status", @@ -577380,6 +693274,24 @@ "user_id" ] }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, "Relationship": { "type": "object", "properties": { @@ -577925,7 +693837,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -578016,12 +693928,18 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { "$ref": "#/definitions/Poll" }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, "id": { "type": "string" } @@ -578335,6 +694253,15 @@ "source_guild": { "$ref": "#/definitions/Guild" }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, "id": { "type": "string" } @@ -578343,14 +694270,15 @@ "required": [ "application", "application_id", + "avatar", "channel", "channel_id", - "guild", - "guild_id", "id", - "source_guild", - "source_guild_id", + "name", + "source_channel", + "source_channel_id", "type", + "url", "user", "user_id" ] @@ -578691,7 +694619,7 @@ ], "type": "number" }, - "Attachment_1": { + "Attachment": { "type": "object", "properties": { "filename": { @@ -579221,7 +695149,7 @@ "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Attachment_1" + "$ref": "#/definitions/Attachment" } }, "embeds": { @@ -579266,7 +695194,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/ActionRowComponent" } }, "poll": { @@ -579392,21 +695320,6 @@ "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", @@ -579483,14 +695396,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -579852,6 +695765,9 @@ }, "is_primary": { "type": "boolean" + }, + "icon": { + "type": "string" } }, "additionalProperties": false, @@ -579904,10 +695820,15 @@ "maxFriends": { "type": "integer", "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 } }, "additionalProperties": false, "required": [ + "maxBio", "maxFriends", "maxGuilds", "maxUsername" @@ -579932,6 +695853,10 @@ "type": "integer", "default": 65535 }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, "maxChannelsInCategory": { "type": "integer", "default": 65535 @@ -579939,6 +695864,7 @@ }, "additionalProperties": false, "required": [ + "maxBulkBanUsers", "maxChannels", "maxChannelsInCategory", "maxEmojis", diff --git a/flake.lock b/flake.lock index 77bf2b86..29505fc3 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1719254875, - "narHash": "sha256-ECni+IkwXjusHsm9Sexdtq8weAq/yUyt1TWIemXt3Ko=", + "lastModified": 1723362943, + "narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=", "owner": "nixos", "repo": "nixpkgs", - "rev": "2893f56de08021cffd9b6b6dfc70fd9ccd51eb60", + "rev": "a58bc8ad779655e790115244571758e8de055e3d", "type": "github" }, "original": { diff --git a/hashes.json b/hashes.json index bc319094..bc1807d4 100644 --- a/hashes.json +++ b/hashes.json @@ -1,3 +1,3 @@ { - "npmDepsHash": "sha256-RxGkjCU9qqqDMjhJ5aEq1w7c7lS4nAp0/3F0zASJQms=" + "npmDepsHash": "sha256-kdS1SwcBu6Dor92iO1ickLgz0T5UL16nyA49xXGajf4=" } diff --git a/package-lock.json b/package-lock.json index a350da90..9f77c385 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,29 +10,28 @@ "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { - "@aws-sdk/client-s3": "^3.385.0", + "@aws-sdk/client-s3": "^3.631.0", "@sentry/integrations": "^7.66.0", - "@sentry/node": "^7.66.0", + "@sentry/node": "^7.119.0", "ajv": "8.6.2", "ajv-formats": "2.1.1", - "amqplib": "^0.10.3", - "bcrypt": "^5.1.0", + "amqplib": "^0.10.4", + "bcrypt": "^5.1.1", "body-parser": "1.20.1", - "cheerio": "^1.0.0-rc.12", + "cheerio": "^1.0.0", "cookie-parser": "^1.4.6", - "dotenv": "^16.3.1", - "exif-be-gone": "^1.3.2", + "dotenv": "^16.4.5", + "exif-be-gone": "^1.5.1", "fast-zlib": "^2.0.1", - "fido2-lib": "^3.4.1", + "fido2-lib": "^3.5.3", "file-type": "~16.5.4", "form-data": "^4.0.0", "i18next": "^21.10.0", - "i18next-fs-backend": "^2.1.5", - "i18next-http-middleware": "^3.3.2", - "image-size": "^1.0.2", - "jimp": "^0.22.12", + "i18next-fs-backend": "^2.3.2", + "i18next-http-middleware": "^3.6.0", + "image-size": "^1.1.1", "json-bigint": "^1.0.0", - "jsonwebtoken": "^9.0.1", + "jsonwebtoken": "^9.0.2", "lambert-server": "^1.2.12", "missing-native-js-functions": "^1.4.3", "module-alias": "^2.2.3", @@ -40,46 +39,46 @@ "multer": "^1.4.5-lts.1", "murmurhash-js": "^1.0.0", "node-2fa": "^2.0.3", - "node-fetch": "^2.6.12", + "node-fetch": "^2.7.0", "node-os-utils": "^1.3.7", - "nodemailer": "^6.9.4", - "picocolors": "^1.0.0", + "nodemailer": "^6.9.14", + "picocolors": "^1.0.1", "probe-image-size": "^7.2.3", - "proxy-agent": "^6.3.0", - "reflect-metadata": "^0.1.13", - "ts-node": "^10.9.1", - "tslib": "^2.6.1", - "typeorm": "^0.3.17", + "proxy-agent": "^6.4.0", + "reflect-metadata": "^0.1.14", + "ts-node": "^10.9.2", + "tslib": "^2.6.3", + "typeorm": "^0.3.20", "typescript-json-schema": "^0.50.1", - "wretch": "^2.6.0", - "ws": "^8.13.0" + "wretch": "^2.9.0", + "ws": "^8.18.0" }, "devDependencies": { "@types/amqplib": "^0.8.2", - "@types/bcrypt": "^5.0.0", - "@types/body-parser": "^1.19.2", - "@types/cookie-parser": "^1.4.3", - "@types/express": "^4.17.17", - "@types/i18next-node-fs-backend": "^2.1.2", - "@types/json-bigint": "^1.0.1", - "@types/jsonwebtoken": "^9.0.2", - "@types/morgan": "^1.9.4", - "@types/multer": "^1.4.7", - "@types/murmurhash-js": "^1.0.4", - "@types/node": "^18.17.3", - "@types/node-fetch": "^2.6.4", - "@types/node-os-utils": "^1.3.1", - "@types/nodemailer": "^6.4.9", - "@types/probe-image-size": "^7.2.0", + "@types/bcrypt": "^5.0.2", + "@types/body-parser": "^1.19.5", + "@types/cookie-parser": "^1.4.7", + "@types/express": "^4.17.21", + "@types/i18next-node-fs-backend": "^2.1.5", + "@types/json-bigint": "^1.0.4", + "@types/jsonwebtoken": "^9.0.6", + "@types/morgan": "^1.9.9", + "@types/multer": "^1.4.11", + "@types/murmurhash-js": "^1.0.6", + "@types/node": "^18.19.44", + "@types/node-fetch": "^2.6.11", + "@types/node-os-utils": "^1.3.4", + "@types/nodemailer": "^6.4.15", + "@types/probe-image-size": "^7.2.5", "@types/sharp": "^0.31.1", - "@types/ws": "^8.5.5", + "@types/ws": "^8.5.12", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", - "eslint": "^8.56.0", - "express": "^4.18.2", + "eslint": "^8.57.0", + "express": "^4.19.2", "husky": "^8.0.3", "prettier": "^2.8.8", - "pretty-quick": "^3.1.3", + "pretty-quick": "^3.3.1", "typescript": "^4.9.5" }, "optionalDependencies": { @@ -89,17 +88,8 @@ "nodemailer-mailgun-transport": "^2.1.5", "nodemailer-mailjet-transport": "github:n0script22/nodemailer-mailjet-transport", "nodemailer-sendgrid-transport": "github:Maria-Golomb/nodemailer-sendgrid-transport", - "pg": "^8.11.3", - "sqlite3": "^5.1.6" - } - }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "pg": "^8.12.0", + "sqlite3": "^5.1.7" } }, "node_modules/@acuminous/bitsyntax": { @@ -116,698 +106,833 @@ } }, "node_modules/@aws-crypto/crc32": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz", - "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", + "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", "dependencies": { - "@aws-crypto/util": "^3.0.0", + "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/crc32/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@aws-crypto/crc32c": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-3.0.0.tgz", - "integrity": "sha512-ENNPPManmnVJ4BTXlOjAgD7URidbAznURqD0KvfREyc4o20DPYdEldU1f5cQ7Jbj0CJJSPaMIk/9ZshdB3210w==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz", + "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==", "dependencies": { - "@aws-crypto/util": "^3.0.0", + "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" + "tslib": "^2.6.2" } }, - "node_modules/@aws-crypto/crc32c/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/ie11-detection": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", - "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", - "dependencies": { - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, "node_modules/@aws-crypto/sha1-browser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-3.0.0.tgz", - "integrity": "sha512-NJth5c997GLHs6nOYTzFKTbYdMNA6/1XlKVgnZoaZcQ7z7UJlOgj2JdbHE8tiYLS3fzXNCguct77SPGat2raSw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz", + "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==", "dependencies": { - "@aws-crypto/ie11-detection": "^3.0.0", - "@aws-crypto/supports-web-crypto": "^3.0.0", - "@aws-crypto/util": "^3.0.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-locate-window": "^3.0.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/sha1-browser/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/sha256-browser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", - "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", - "dependencies": { - "@aws-crypto/ie11-detection": "^3.0.0", - "@aws-crypto/sha256-js": "^3.0.0", - "@aws-crypto/supports-web-crypto": "^3.0.0", - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/sha256-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", - "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", - "dependencies": { - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/supports-web-crypto": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", - "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", - "dependencies": { - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/util": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", - "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/util/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-sdk/client-s3": { - "version": "3.388.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.388.0.tgz", - "integrity": "sha512-9UN8gtr/4e4YnHb3Kb4VsxGTDe6olkL90ivK09jKwG2SX8m5OY2fIHSjtyqUHDuFb67JOk3WVEMbZEfxfx46+w==", - "dependencies": { - "@aws-crypto/sha1-browser": "3.0.0", - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.388.0", - "@aws-sdk/credential-provider-node": "3.388.0", - "@aws-sdk/middleware-bucket-endpoint": "3.387.0", - "@aws-sdk/middleware-expect-continue": "3.387.0", - "@aws-sdk/middleware-flexible-checksums": "3.387.0", - "@aws-sdk/middleware-host-header": "3.387.0", - "@aws-sdk/middleware-location-constraint": "3.387.0", - "@aws-sdk/middleware-logger": "3.387.0", - "@aws-sdk/middleware-recursion-detection": "3.387.0", - "@aws-sdk/middleware-sdk-s3": "3.387.0", - "@aws-sdk/middleware-signing": "3.387.0", - "@aws-sdk/middleware-ssec": "3.387.0", - "@aws-sdk/middleware-user-agent": "3.387.0", - "@aws-sdk/signature-v4-multi-region": "3.387.0", - "@aws-sdk/types": "3.387.0", - "@aws-sdk/util-endpoints": "3.387.0", - "@aws-sdk/util-user-agent-browser": "3.387.0", - "@aws-sdk/util-user-agent-node": "3.387.0", - "@aws-sdk/xml-builder": "3.310.0", - "@smithy/config-resolver": "^2.0.2", - "@smithy/eventstream-serde-browser": "^2.0.2", - "@smithy/eventstream-serde-config-resolver": "^2.0.2", - "@smithy/eventstream-serde-node": "^2.0.2", - "@smithy/fetch-http-handler": "^2.0.2", - "@smithy/hash-blob-browser": "^2.0.2", - "@smithy/hash-node": "^2.0.2", - "@smithy/hash-stream-node": "^2.0.2", - "@smithy/invalid-dependency": "^2.0.2", - "@smithy/md5-js": "^2.0.2", - "@smithy/middleware-content-length": "^2.0.2", - "@smithy/middleware-endpoint": "^2.0.2", - "@smithy/middleware-retry": "^2.0.2", - "@smithy/middleware-serde": "^2.0.2", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.2", - "@smithy/node-http-handler": "^2.0.2", - "@smithy/protocol-http": "^2.0.2", - "@smithy/smithy-client": "^2.0.2", - "@smithy/types": "^2.1.0", - "@smithy/url-parser": "^2.0.2", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.0.0", - "@smithy/util-defaults-mode-browser": "^2.0.2", - "@smithy/util-defaults-mode-node": "^2.0.2", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-stream": "^2.0.2", "@smithy/util-utf8": "^2.0.0", - "@smithy/util-waiter": "^2.0.2", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" }, "engines": { "node": ">=14.0.0" } }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", + "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", + "dependencies": { + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", + "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-s3": { + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.631.0.tgz", + "integrity": "sha512-VBZoG6oMMsL5zOvO8Wxxcpv4T/qmQiTv58C+7c4zaHsIM2lCzQsU042XwH/jenqPsse1FTM45HnanRDOLv99+w==", + "dependencies": { + "@aws-crypto/sha1-browser": "5.2.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.631.0", + "@aws-sdk/client-sts": "3.631.0", + "@aws-sdk/core": "3.629.0", + "@aws-sdk/credential-provider-node": "3.631.0", + "@aws-sdk/middleware-bucket-endpoint": "3.620.0", + "@aws-sdk/middleware-expect-continue": "3.620.0", + "@aws-sdk/middleware-flexible-checksums": "3.620.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-location-constraint": "3.609.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-sdk-s3": "3.629.0", + "@aws-sdk/middleware-ssec": "3.609.0", + "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/signature-v4-multi-region": "3.629.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@aws-sdk/xml-builder": "3.609.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/eventstream-serde-browser": "^3.0.6", + "@smithy/eventstream-serde-config-resolver": "^3.0.3", + "@smithy/eventstream-serde-node": "^3.0.5", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-blob-browser": "^3.1.2", + "@smithy/hash-node": "^3.0.3", + "@smithy/hash-stream-node": "^3.1.2", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/md5-js": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-stream": "^3.1.3", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@aws-sdk/client-sso": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.387.0.tgz", - "integrity": "sha512-E7uKSvbA0XMKSN5KLInf52hmMpe9/OKo6N9OPffGXdn3fNEQlvyQq3meUkqG7Is0ldgsQMz5EUBNtNybXzr3tQ==", + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.631.0.tgz", + "integrity": "sha512-tpXRQMbbTsKED6GGF0rZbg9Nr0DRCWImopX2lVh4deIeHQfNxeOtq2brqDWiPD593I190xeL/HMChSOmvDXNAw==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.387.0", - "@aws-sdk/middleware-logger": "3.387.0", - "@aws-sdk/middleware-recursion-detection": "3.387.0", - "@aws-sdk/middleware-user-agent": "3.387.0", - "@aws-sdk/types": "3.387.0", - "@aws-sdk/util-endpoints": "3.387.0", - "@aws-sdk/util-user-agent-browser": "3.387.0", - "@aws-sdk/util-user-agent-node": "3.387.0", - "@smithy/config-resolver": "^2.0.2", - "@smithy/fetch-http-handler": "^2.0.2", - "@smithy/hash-node": "^2.0.2", - "@smithy/invalid-dependency": "^2.0.2", - "@smithy/middleware-content-length": "^2.0.2", - "@smithy/middleware-endpoint": "^2.0.2", - "@smithy/middleware-retry": "^2.0.2", - "@smithy/middleware-serde": "^2.0.2", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.2", - "@smithy/node-http-handler": "^2.0.2", - "@smithy/protocol-http": "^2.0.2", - "@smithy/smithy-client": "^2.0.2", - "@smithy/types": "^2.1.0", - "@smithy/url-parser": "^2.0.2", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.0.0", - "@smithy/util-defaults-mode-browser": "^2.0.2", - "@smithy/util-defaults-mode-node": "^2.0.2", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.629.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.631.0.tgz", + "integrity": "sha512-afJAssIvsHibVq65qO3Q31NCfSTsPEnyr+PT80uGVAkKev1PJI1AjsxBGUTLtPMV8lrzDzDx5CG9ax1AZ3LG6w==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.629.0", + "@aws-sdk/credential-provider-node": "3.631.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.631.0" } }, "node_modules/@aws-sdk/client-sts": { - "version": "3.388.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.388.0.tgz", - "integrity": "sha512-y9FAcAYHT8O6T/jqhgsIQUb4gLiSTKD3xtzudDvjmFi8gl0oRIY1npbeckSiK6k07VQugm2s64I0nDnDxtWsBg==", + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.631.0.tgz", + "integrity": "sha512-Zo/2XDrmNpnSRlQLL8XOCJxuN7UIrGKf4itdjHqtEmD2PqstnYe6IMeEVOELpZ8iktjvsIrVr+qxlIX1QlmgCQ==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.388.0", - "@aws-sdk/middleware-host-header": "3.387.0", - "@aws-sdk/middleware-logger": "3.387.0", - "@aws-sdk/middleware-recursion-detection": "3.387.0", - "@aws-sdk/middleware-sdk-sts": "3.387.0", - "@aws-sdk/middleware-signing": "3.387.0", - "@aws-sdk/middleware-user-agent": "3.387.0", - "@aws-sdk/types": "3.387.0", - "@aws-sdk/util-endpoints": "3.387.0", - "@aws-sdk/util-user-agent-browser": "3.387.0", - "@aws-sdk/util-user-agent-node": "3.387.0", - "@smithy/config-resolver": "^2.0.2", - "@smithy/fetch-http-handler": "^2.0.2", - "@smithy/hash-node": "^2.0.2", - "@smithy/invalid-dependency": "^2.0.2", - "@smithy/middleware-content-length": "^2.0.2", - "@smithy/middleware-endpoint": "^2.0.2", - "@smithy/middleware-retry": "^2.0.2", - "@smithy/middleware-serde": "^2.0.2", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.2", - "@smithy/node-http-handler": "^2.0.2", - "@smithy/protocol-http": "^2.0.2", - "@smithy/smithy-client": "^2.0.2", - "@smithy/types": "^2.1.0", - "@smithy/url-parser": "^2.0.2", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.0.0", - "@smithy/util-defaults-mode-browser": "^2.0.2", - "@smithy/util-defaults-mode-node": "^2.0.2", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.631.0", + "@aws-sdk/core": "3.629.0", + "@aws-sdk/credential-provider-node": "3.631.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.631.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.631.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/core": { + "version": "3.629.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.629.0.tgz", + "integrity": "sha512-+/ShPU/tyIBM3oY1cnjgNA/tFyHtlWq+wXF9xEKRv19NOpYbWQ+xzNwVjGq8vR07cCRqy/sDQLWPhxjtuV/FiQ==", + "dependencies": { + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.387.0.tgz", - "integrity": "sha512-PVqNk7XPIYe5CMYNvELkcALtkl/pIM8/uPtqEtTg+mgnZBeL4fAmgXZiZMahQo1DxP5t/JaK384f6JG+A0qDjA==", + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", + "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.388.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.388.0.tgz", - "integrity": "sha512-3dg3A8AiZ5vXkSAYyyI3V/AW3Eo6KQJyE/glA+Nr2M0oAjT4z3vHhS3pf2B+hfKGZBTuKKgxusrrhrQABd/Diw==", + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.631.0.tgz", + "integrity": "sha512-34NmRl6GYlyKTHwiA3C3MjCtmXfoaOXI8b2h7P9eAC8leuIb/51v482g0K6X5P5FqaGY8ZreUq5BMsGjBRr1uQ==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.387.0", - "@aws-sdk/credential-provider-process": "3.387.0", - "@aws-sdk/credential-provider-sso": "3.388.0", - "@aws-sdk/credential-provider-web-identity": "3.387.0", - "@aws-sdk/types": "3.387.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.631.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.631.0" } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.388.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.388.0.tgz", - "integrity": "sha512-BqWAkIG08gj/wevpesaZhAjALjfUNVjseHQRk+DNUoHIfyibW7Ahf3q/GIPs11dA2o8ECwR9/fo68Sq+sK799A==", + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.631.0.tgz", + "integrity": "sha512-MlYcFknrMQ8RUVe0DMPE09mX8+97s7MLwnVV8l+LFi7m+ZfBz+h6LrohhOXC5elJHf4G3T0r/9Rwct63+zHK/w==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.387.0", - "@aws-sdk/credential-provider-ini": "3.388.0", - "@aws-sdk/credential-provider-process": "3.387.0", - "@aws-sdk/credential-provider-sso": "3.388.0", - "@aws-sdk/credential-provider-web-identity": "3.387.0", - "@aws-sdk/types": "3.387.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.631.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.631.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.387.0.tgz", - "integrity": "sha512-tQScLHmDlqkQN+mqw4s3cxepEUeHYDhFl5eH+J8puvPqWjXMYpCEdY79SAtWs6SZd4CWiZ0VLeYU6xQBZengbQ==", + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.388.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.388.0.tgz", - "integrity": "sha512-RH02+rntaO0UhnSBr42n+7q8HOztc+Dets/hh6cWovf3Yi9s9ghLgYLN9FXpSosfot3XkmT/HOCa+CphAmGN9A==", + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.631.0.tgz", + "integrity": "sha512-k3Mj1Fc7faVOGR+qrwROir/8No35G7gbVL5FuY467x3y0ELa/6w0j/0HM+5eqzGABW7pSL/OHONhWKlYwg7Gkw==", "dependencies": { - "@aws-sdk/client-sso": "3.387.0", - "@aws-sdk/token-providers": "3.388.0", - "@aws-sdk/types": "3.387.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/client-sso": "3.631.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.387.0.tgz", - "integrity": "sha512-6ueMPl+J3KWv6ZaAWF4Z138QCuBVFZRVAgwbtP3BNqWrrs4Q6TPksOQJ79lRDMpv0EUoyVl04B6lldNlhN8RdA==", + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" } }, "node_modules/@aws-sdk/middleware-bucket-endpoint": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.387.0.tgz", - "integrity": "sha512-o7Dsq0YTUHFcKXD6+30/fXv/Wzdxqz9WonhCu3ZFPwTDLZgOM4QDDKW8EcC1SplKP1IUyaEli8Affodag9T1cQ==", + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.620.0.tgz", + "integrity": "sha512-eGLL0W6L3HDb3OACyetZYOWpHJ+gLo0TehQKeQyy2G8vTYXqNTeqYhuI6up9HVjBzU9eQiULVQETmgQs7TFaRg==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@aws-sdk/util-arn-parser": "3.310.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/types": "^2.1.0", - "@smithy/util-config-provider": "^2.0.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-arn-parser": "3.568.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-expect-continue": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.387.0.tgz", - "integrity": "sha512-w415a4tjQc6a7isq0AEDWFBC0HWUCHXEDjDl94UACxfMmS9bVabuf04t9CQ+nBBVs6HdiNdfdc/pBR2pRwx2Yg==", + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.620.0.tgz", + "integrity": "sha512-QXeRFMLfyQ31nAHLbiTLtk0oHzG9QLMaof5jIfqcUwnOkO8YnQdeqzakrg1Alpy/VQ7aqzIi8qypkBe2KXZz0A==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-flexible-checksums": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.387.0.tgz", - "integrity": "sha512-QlH97rrKlcMyLG+2ps7+DtBHfPyRIpi7sD3y0iko2u3PGXk+PoLPK8wWyGql9sFopOYTl6/Jh2Rb1b6z6NbjEA==", + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.620.0.tgz", + "integrity": "sha512-ftz+NW7qka2sVuwnnO1IzBku5ccP+s5qZGeRTPgrKB7OzRW85gthvIo1vQR2w+OwHFk7WJbbhhWwbCbktnP4UA==", "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@aws-crypto/crc32c": "3.0.0", - "@aws-sdk/types": "3.387.0", - "@smithy/is-array-buffer": "^2.0.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/types": "^2.1.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@aws-crypto/crc32": "5.2.0", + "@aws-crypto/crc32c": "5.2.0", + "@aws-sdk/types": "3.609.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.387.0.tgz", - "integrity": "sha512-EWm9PXSr8dSp7hnRth1U7OfelXQp9dLf1yS1kUL+UhppYDJpjhdP7ql3NI4xJKw8e76sP2FuJYEuzWnJHuWoyQ==", + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-location-constraint": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.387.0.tgz", - "integrity": "sha512-Ipdry2V58CpDcWD0ZTz6yFtpTASEBxbuWdqUUYW7pOkZ/5GPGH8NhBky7M38iGqAO6FNysvWEVCUpIqNGkI1lw==", + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.609.0.tgz", + "integrity": "sha512-xzsdoTkszGVqGVPjUmgoP7TORiByLueMHieI1fhQL888WPdqctwAx3ES6d/bA9Q/i8jnc6hs+Fjhy8UvBTkE9A==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-logger": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.387.0.tgz", - "integrity": "sha512-FjAvJr1XyaInT81RxUwgifnbXoFJrRBFc64XeFJgFanGIQCWLYxRrK2HV9eBpao/AycbmuoHgLd/f0sa4hZFoQ==", + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.387.0.tgz", - "integrity": "sha512-ZF45T785ru8OwvYZw6awD9Z76OwSMM1eZzj2eY+FDz1cHfkpLjxEiti2iIH1FxbyK7n9ZqDUx29lVlCv238YyQ==", + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-sdk-s3": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.387.0.tgz", - "integrity": "sha512-OIUBDzGhglI6KjXVwPLh7hRbrfCpSTwWRkbXbLrPgZZuzWMoJJ3q59RVkpLnAV9Mdkg6+YA6JTw4k4hcmJblVw==", + "version": "3.629.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.629.0.tgz", + "integrity": "sha512-FRXLcnPWXBoq/T9mnGnrpqhrSKNSm22rqJ0L7P14KESmbGuwhF/7ELYYxXIpgnIpb/CIUVmIU5EE8lsW1VTe8A==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@aws-sdk/util-arn-parser": "3.310.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/core": "3.629.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-arn-parser": "3.568.0", + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-stream": "^3.1.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-sdk-sts": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.387.0.tgz", - "integrity": "sha512-7ZzRKOJ4V/JDQmKz9z+FjZqw59mrMATEMLR6ff0H0JHMX0Uk5IX8TQB058ss+ar14qeJ4UcteYzCqHNI0O1BHw==", - "dependencies": { - "@aws-sdk/middleware-signing": "3.387.0", - "@aws-sdk/types": "3.387.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-signing": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.387.0.tgz", - "integrity": "sha512-oJXlE0MES8gxNLo137PPNNiOICQGOaETTvq3kBSJgb/gtEAxQajMIlaNT7s1wsjOAruFHt4975nCXuY4lpx7GQ==", - "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.1.0", - "@smithy/util-middleware": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-ssec": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.387.0.tgz", - "integrity": "sha512-Jtie1gqqcs7ZuYDlz/kuI3CKCXoCL5Ov/Gj5X8/XmwrQJEpuB6z0KY5H1qY0xo+jtAhC8nDPv0GnuLoOfn85hw==", + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.609.0.tgz", + "integrity": "sha512-GZSD1s7+JswWOTamVap79QiDaIV7byJFssBW68GYjyRS5EBjNfwA/8s+6uE6g39R3ojyTbYOmvcANoZEhSULXg==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.387.0.tgz", - "integrity": "sha512-hTfFTwDtp86xS98BKa+RFuLfcvGftxwzrbZeisZV8hdb4ZhvNXjSxnvM3vetW0GUEnY9xHPSGyp2ERRTinPKFQ==", + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.631.0.tgz", + "integrity": "sha512-mpFRFaP9fjXhw8NiRTP+lBPKRKMSKzfCyTXQXrQCSo4fAUaz8LPCc8VdqyoNmx4CLBTRflbEHLx5PfInA0DsrA==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@aws-sdk/util-endpoints": "3.387.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.631.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.387.0.tgz", - "integrity": "sha512-SGuUbEFi8BXYVv4M7Hc0488I7uZbTVBW19j/B7bnyfbKFrndBXM366s/mChx4iELtESQ61AAstyafx5nGj5tIg==", + "version": "3.629.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.629.0.tgz", + "integrity": "sha512-GPX6dnmuLGDFp7CsGqGCzleEoNyr9ekgOzSBtcL5nKX++NruxO7f1QzJAbcYvz0gdKvz958UO0EKsGM6hnkTSg==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/middleware-sdk-s3": "3.629.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@aws-sdk/signature-v4-crt": "^3.118.0" - }, - "peerDependenciesMeta": { - "@aws-sdk/signature-v4-crt": { - "optional": true - } + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/token-providers": { - "version": "3.388.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.388.0.tgz", - "integrity": "sha512-2lo1gFJl624kfjo/YdU6zW+k6dEwhoqjNkDNbOZEFgS1KDofHe9GX8W4/ReKb0Ggho5/EcjzZ53/1CjkzUq4tA==", + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.387.0", - "@aws-sdk/middleware-logger": "3.387.0", - "@aws-sdk/middleware-recursion-detection": "3.387.0", - "@aws-sdk/middleware-user-agent": "3.387.0", - "@aws-sdk/types": "3.387.0", - "@aws-sdk/util-endpoints": "3.387.0", - "@aws-sdk/util-user-agent-browser": "3.387.0", - "@aws-sdk/util-user-agent-node": "3.387.0", - "@smithy/config-resolver": "^2.0.2", - "@smithy/fetch-http-handler": "^2.0.2", - "@smithy/hash-node": "^2.0.2", - "@smithy/invalid-dependency": "^2.0.2", - "@smithy/middleware-content-length": "^2.0.2", - "@smithy/middleware-endpoint": "^2.0.2", - "@smithy/middleware-retry": "^2.0.2", - "@smithy/middleware-serde": "^2.0.2", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.2", - "@smithy/node-http-handler": "^2.0.2", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^2.0.2", - "@smithy/shared-ini-file-loader": "^2.0.0", - "@smithy/smithy-client": "^2.0.2", - "@smithy/types": "^2.1.0", - "@smithy/url-parser": "^2.0.2", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.0.0", - "@smithy/util-defaults-mode-browser": "^2.0.2", - "@smithy/util-defaults-mode-node": "^2.0.2", - "@smithy/util-retry": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, "node_modules/@aws-sdk/types": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.387.0.tgz", - "integrity": "sha512-YTjFabNwjTF+6yl88f0/tWff018qmmgMmjlw45s6sdVKueWxdxV68U7gepNLF2nhaQPZa6FDOBoA51NaviVs0Q==", + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dependencies": { - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/util-arn-parser": { - "version": "3.310.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.310.0.tgz", - "integrity": "sha512-jL8509owp/xB9+Or0pvn3Fe+b94qfklc2yPowZZIFAkFcCSIdkIglz18cPDWnYAcy9JGewpMS1COXKIUhZkJsA==", + "version": "3.568.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.568.0.tgz", + "integrity": "sha512-XUKJWWo+KOB7fbnPP0+g/o5Ulku/X53t7i/h+sPHr5xxYTJJ9CYnbToo95mzxe7xWvkLrsNtJ8L+MnNn9INs2w==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.387.0.tgz", - "integrity": "sha512-g7kvuCXehGXHHBw9PkSQdwVyDFmNUZLmfrRmqMyrMDG9QLQrxr4pyWcSaYgTE16yUzhQQOR+QSey+BL6W9/N6g==", + "version": "3.631.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.631.0.tgz", + "integrity": "sha512-aavsyk17lK/r6rfVFYLh6/Y0eWvtbclWteJyW9PQLo5mpHPcTj6IbqMN4LHV27Y9IF7oOlbEAQ1CGTfpUlOvTg==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/util-locate-window": { - "version": "3.310.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.310.0.tgz", - "integrity": "sha512-qo2t/vBTnoXpjKxlsC2e1gBrRm80M3bId27r0BRB2VniSSe7bL1mmzM+/HFtujm0iAxtPM+aLEflLJlJeDPg0w==", + "version": "3.568.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.568.0.tgz", + "integrity": "sha512-3nh4TINkXYr+H41QaPelCceEB2FXP3fxp93YZXB/kqJvX0U9j0N0Uk45gvsjmEPzG8XxkPEeLIfT2I1M7A6Lig==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.387.0.tgz", - "integrity": "sha512-lpgSVvDqx+JjHZCTYs/yQSS7J71dPlJeAlvxc7bmx5m+vfwKe07HAnIs+929DngS0QbAp/VaXbTiMFsInLkO4Q==", + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/types": "^2.1.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", "bowser": "^2.11.0", - "tslib": "^2.5.0" + "tslib": "^2.6.2" } }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.387.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.387.0.tgz", - "integrity": "sha512-r9OVkcWpRYatjLhJacuHFgvO2T5s/Nu5DDbScMrkUD8b4aGIIqsrdZji0vZy9FCjsUFQMM92t9nt4SejrGjChA==", + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dependencies": { - "@aws-sdk/types": "3.387.0", - "@smithy/node-config-provider": "^2.0.2", - "@smithy/types": "^2.1.0", - "tslib": "^2.5.0" + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" }, "peerDependencies": { "aws-crt": ">=1.0.0" @@ -818,29 +943,22 @@ } } }, - "node_modules/@aws-sdk/util-utf8-browser": { - "version": "3.259.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", - "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", - "dependencies": { - "tslib": "^2.3.1" - } - }, "node_modules/@aws-sdk/xml-builder": { - "version": "3.310.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.310.0.tgz", - "integrity": "sha512-TqELu4mOuSIKQCqj63fGVs86Yh+vBx5nHRpWKNUNhB2nPTpfbziTs5c1X358be3peVWA4wPxW7Nt53KIg1tnNw==", + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.609.0.tgz", + "integrity": "sha512-l9XxNcA4HX98rwCC2/KoiWcmEiRfZe4G+mYwDbCFT87JIMj6GBhLDkAzr/W8KAaA2IDr8Vc6J8fZPgVulxxfMA==", "dependencies": { - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@babel/runtime": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.10.tgz", - "integrity": "sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ==", + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.0.tgz", + "integrity": "sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -849,9 +967,9 @@ } }, "node_modules/@cbor-extract/cbor-extract-darwin-arm64": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-darwin-arm64/-/cbor-extract-darwin-arm64-2.1.1.tgz", - "integrity": "sha512-blVBy5MXz6m36Vx0DfLd7PChOQKEs8lK2bD1WJn/vVgG4FXZiZmZb2GECHFvVPA5T7OnODd9xZiL3nMCv6QUhA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-darwin-arm64/-/cbor-extract-darwin-arm64-2.2.0.tgz", + "integrity": "sha512-P7swiOAdF7aSi0H+tHtHtr6zrpF3aAq/W9FXx5HektRvLTM2O89xCyXF3pk7pLc7QpaY7AoaE8UowVf9QBdh3w==", "cpu": [ "arm64" ], @@ -861,9 +979,9 @@ ] }, "node_modules/@cbor-extract/cbor-extract-darwin-x64": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-darwin-x64/-/cbor-extract-darwin-x64-2.1.1.tgz", - "integrity": "sha512-h6KFOzqk8jXTvkOftyRIWGrd7sKQzQv2jVdTL9nKSf3D2drCvQB/LHUxAOpPXo3pv2clDtKs3xnHalpEh3rDsw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-darwin-x64/-/cbor-extract-darwin-x64-2.2.0.tgz", + "integrity": "sha512-1liF6fgowph0JxBbYnAS7ZlqNYLf000Qnj4KjqPNW4GViKrEql2MgZnAsExhY9LSy8dnvA4C0qHEBgPrll0z0w==", "cpu": [ "x64" ], @@ -873,9 +991,9 @@ ] }, "node_modules/@cbor-extract/cbor-extract-linux-arm": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-arm/-/cbor-extract-linux-arm-2.1.1.tgz", - "integrity": "sha512-ds0uikdcIGUjPyraV4oJqyVE5gl/qYBpa/Wnh6l6xLE2lj/hwnjT2XcZCChdXwW/YFZ1LUHs6waoYN8PmK0nKQ==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-arm/-/cbor-extract-linux-arm-2.2.0.tgz", + "integrity": "sha512-QeBcBXk964zOytiedMPQNZr7sg0TNavZeuUCD6ON4vEOU/25+pLhNN6EDIKJ9VLTKaZ7K7EaAriyYQ1NQ05s/Q==", "cpu": [ "arm" ], @@ -885,9 +1003,9 @@ ] }, "node_modules/@cbor-extract/cbor-extract-linux-arm64": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-arm64/-/cbor-extract-linux-arm64-2.1.1.tgz", - "integrity": "sha512-SxAaRcYf8S0QHaMc7gvRSiTSr7nUYMqbUdErBEu+HYA4Q6UNydx1VwFE68hGcp1qvxcy9yT5U7gA+a5XikfwSQ==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-arm64/-/cbor-extract-linux-arm64-2.2.0.tgz", + "integrity": "sha512-rQvhNmDuhjTVXSPFLolmQ47/ydGOFXtbR7+wgkSY0bdOxCFept1hvg59uiLPT2fVDuJFuEy16EImo5tE2x3RsQ==", "cpu": [ "arm64" ], @@ -897,9 +1015,9 @@ ] }, "node_modules/@cbor-extract/cbor-extract-linux-x64": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-x64/-/cbor-extract-linux-x64-2.1.1.tgz", - "integrity": "sha512-GVK+8fNIE9lJQHAlhOROYiI0Yd4bAZ4u++C2ZjlkS3YmO6hi+FUxe6Dqm+OKWTcMpL/l71N6CQAmaRcb4zyJuA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-x64/-/cbor-extract-linux-x64-2.2.0.tgz", + "integrity": "sha512-cWLAWtT3kNLHSvP4RKDzSTX9o0wvQEEAj4SKvhWuOVZxiDAeQazr9A+PSiRILK1VYMLeDml89ohxCnUNQNQNCw==", "cpu": [ "x64" ], @@ -909,9 +1027,9 @@ ] }, "node_modules/@cbor-extract/cbor-extract-win32-x64": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-win32-x64/-/cbor-extract-win32-x64-2.1.1.tgz", - "integrity": "sha512-2Niq1C41dCRIDeD8LddiH+mxGlO7HJ612Ll3D/E73ZWBmycued+8ghTr/Ho3CMOWPUEr08XtyBMVXAjqF+TcKw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cbor-extract/cbor-extract-win32-x64/-/cbor-extract-win32-x64-2.2.0.tgz", + "integrity": "sha512-l2M+Z8DO2vbvADOBNLbbh9y5ST1RY5sqkWOg/58GkUPBYou/cuNZ68SGQ644f1CvZ8kcOxyZtw06+dxWHIoN/w==", "cpu": [ "x64" ], @@ -947,9 +1065,9 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.6.2.tgz", - "integrity": "sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" @@ -994,16 +1112,38 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@eslint/js": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", - "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1016,14 +1156,15 @@ "optional": true }, "node_modules/@hexagon/base64": { - "version": "1.1.27", - "resolved": "https://registry.npmjs.org/@hexagon/base64/-/base64-1.1.27.tgz", - "integrity": "sha512-PdUmzpvcUM3Rh39kvz9RdbPVYhMjBjdV7Suw7ZduP7urRLsZR8l5tzgSWKm7TExwBYDFwTnYrZbnE0rQ3N5NLQ==" + "version": "1.1.28", + "resolved": "https://registry.npmjs.org/@hexagon/base64/-/base64-1.1.28.tgz", + "integrity": "sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw==" }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "deprecated": "Use @eslint/config-array instead", "dev": true, "dependencies": { "@humanwhocodes/object-schema": "^2.0.2", @@ -1034,6 +1175,28 @@ "node": ">=10.10.0" } }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", @@ -1048,11 +1211,101 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", "dev": true }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@jimp/bmp": { "version": "0.22.12", "resolved": "https://registry.npmjs.org/@jimp/bmp/-/bmp-0.22.12.tgz", @@ -1082,30 +1335,6 @@ "tinycolor2": "^1.6.0" } }, - "node_modules/@jimp/core/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "optional": true, - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/@jimp/custom": { "version": "0.22.12", "resolved": "https://registry.npmjs.org/@jimp/custom/-/custom-0.22.12.tgz", @@ -1503,17 +1732,17 @@ "optional": true }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.9", @@ -1615,13 +1844,13 @@ } }, "node_modules/@peculiar/asn1-schema": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.3.6.tgz", - "integrity": "sha512-izNRxPoaeJeg/AyH8hER6s+H7p4itk+03QCa4sbxI3lNdseQYCuxzgsuNK8bTXChtLTjpJz6NmXKA73qLa3rCA==", + "version": "2.3.13", + "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.3.13.tgz", + "integrity": "sha512-3Xq3a01WkHRZL8X04Zsfg//mGaA21xlL4tlVn4v2xGT0JStiztATRkMwa5b+f/HXmY2smsiLXYK46Gwgzvfg3g==", "dependencies": { "asn1js": "^3.0.5", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.0" + "pvtsutils": "^1.3.5", + "tslib": "^2.6.2" } }, "node_modules/@peculiar/json-schema": { @@ -1636,20 +1865,29 @@ } }, "node_modules/@peculiar/webcrypto": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.4.3.tgz", - "integrity": "sha512-VtaY4spKTdN5LjJ04im/d/joXuvLbQdgy5Z4DXF4MFZhQ+MTrejbNMkfZBp1Bs3O5+bFqnJgyGdPuZQflvIa5A==", + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.4.6.tgz", + "integrity": "sha512-YBcMfqNSwn3SujUJvAaySy5tlYbYm6tVt9SKoXu8BaTdKGROiJDgPR3TXpZdAKUfklzm3lRapJEAltiMQtBgZg==", "dependencies": { - "@peculiar/asn1-schema": "^2.3.6", + "@peculiar/asn1-schema": "^2.3.8", "@peculiar/json-schema": "^1.1.12", - "pvtsutils": "^1.3.2", - "tslib": "^2.5.0", - "webcrypto-core": "^1.7.7" + "pvtsutils": "^1.3.5", + "tslib": "^2.6.2", + "webcrypto-core": "^1.7.9" }, "engines": { "node": ">=10.12.0" } }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "optional": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@sendgrid/client": { "version": "7.7.0", "resolved": "https://registry.npmjs.org/@sendgrid/client/-/client-7.7.0.tgz", @@ -1697,694 +1935,715 @@ "node": "6.* || 8.* || >=10.*" } }, - "node_modules/@sentry/integrations": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.66.0.tgz", - "integrity": "sha512-2PNEnihG9e9Rjbz205+A4BYtFcS2XdgwsN6obAU6Yir7VIbskwZXxx87lKZuz6S53sOWPHleC7uvUBjL+Q6vYg==", + "node_modules/@sentry-internal/tracing": { + "version": "7.119.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.119.0.tgz", + "integrity": "sha512-oKdFJnn+56f0DHUADlL8o9l8jTib3VDLbWQBVkjD9EprxfaCwt2m8L5ACRBdQ8hmpxCEo4I8/6traZ7qAdBUqA==", "dependencies": { - "@sentry/types": "7.66.0", - "@sentry/utils": "7.66.0", - "localforage": "^1.8.1", - "tslib": "^2.4.1 || ^1.9.3" + "@sentry/core": "7.119.0", + "@sentry/types": "7.119.0", + "@sentry/utils": "7.119.0" }, "engines": { "node": ">=8" } }, - "node_modules/@sentry/integrations/node_modules/@sentry/types": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.66.0.tgz", - "integrity": "sha512-uUMSoSiar6JhuD8p7ON/Ddp4JYvrVd2RpwXJRPH1A4H4Bd4DVt1mKJy1OLG6HdeQv39XyhB1lPZckKJg4tATPw==", + "node_modules/@sentry/core": { + "version": "7.119.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.119.0.tgz", + "integrity": "sha512-CS2kUv9rAJJEjiRat6wle3JATHypB0SyD7pt4cpX5y0dN5dZ1JrF57oLHRMnga9fxRivydHz7tMTuBhSSwhzjw==", + "dependencies": { + "@sentry/types": "7.119.0", + "@sentry/utils": "7.119.0" + }, "engines": { "node": ">=8" } }, - "node_modules/@sentry/integrations/node_modules/@sentry/utils": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.66.0.tgz", - "integrity": "sha512-9GYUVgXjK66uXXcLXVMXVzlptqMtq1eJENCuDeezQiEFrNA71KkLDg00wESp+LL+bl3wpVTBApArpbF6UEG5hQ==", + "node_modules/@sentry/integrations": { + "version": "7.119.0", + "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.119.0.tgz", + "integrity": "sha512-OHShvtsRW0A+ZL/ZbMnMqDEtJddPasndjq+1aQXw40mN+zeP7At/V1yPZyFaURy86iX7Ucxw5BtmzuNy7hLyTA==", "dependencies": { - "@sentry/types": "7.66.0", - "tslib": "^2.4.1 || ^1.9.3" + "@sentry/core": "7.119.0", + "@sentry/types": "7.119.0", + "@sentry/utils": "7.119.0", + "localforage": "^1.8.1" }, "engines": { "node": ">=8" } }, "node_modules/@sentry/node": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.66.0.tgz", - "integrity": "sha512-PxqIqLr4Sh5xcDfECiBQ4PuZ7v8yTgLhaRkruWrZPYxQrcJFPkwbFkw/IskzVnhT2VwXUmeWEIlRMQKBJ0t83A==", + "version": "7.119.0", + "resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.119.0.tgz", + "integrity": "sha512-9PFzN8xS6U0oZCflpVxS2SSIsHkCaj7qYBlsvHj4CTGWfao9ImwrU6+smy4qoG6oxwPfoVb5pOOMb4WpWOvXcQ==", "dependencies": { - "@sentry-internal/tracing": "7.66.0", - "@sentry/core": "7.66.0", - "@sentry/types": "7.66.0", - "@sentry/utils": "7.66.0", - "cookie": "^0.4.1", - "https-proxy-agent": "^5.0.0", - "lru_map": "^0.3.3", - "tslib": "^2.4.1 || ^1.9.3" + "@sentry-internal/tracing": "7.119.0", + "@sentry/core": "7.119.0", + "@sentry/integrations": "7.119.0", + "@sentry/types": "7.119.0", + "@sentry/utils": "7.119.0" }, "engines": { "node": ">=8" } }, - "node_modules/@sentry/node/node_modules/@sentry-internal/tracing": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.66.0.tgz", - "integrity": "sha512-3vCgC2hC3T45pn53yTDVcRpHoJTBxelDPPZVsipAbZnoOVPkj7n6dNfDhj3I3kwWCBPahPkXmE+R4xViR8VqJg==", - "dependencies": { - "@sentry/core": "7.66.0", - "@sentry/types": "7.66.0", - "@sentry/utils": "7.66.0", - "tslib": "^2.4.1 || ^1.9.3" - }, + "node_modules/@sentry/types": { + "version": "7.119.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.119.0.tgz", + "integrity": "sha512-27qQbutDBPKGbuJHROxhIWc1i0HJaGLA90tjMu11wt0E4UNxXRX+UQl4Twu68v4EV3CPvQcEpQfgsViYcXmq+w==", "engines": { "node": ">=8" } }, - "node_modules/@sentry/node/node_modules/@sentry/core": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.66.0.tgz", - "integrity": "sha512-WMAEPN86NeCJ1IT48Lqiz4MS5gdDjBwP4M63XP4msZn9aujSf2Qb6My5uT87AJr9zBtgk8MyJsuHr35F0P3q1w==", + "node_modules/@sentry/utils": { + "version": "7.119.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.119.0.tgz", + "integrity": "sha512-ZwyXexWn2ZIe2bBoYnXJVPc2esCSbKpdc6+0WJa8eutXfHq3FRKg4ohkfCBpfxljQGEfP1+kfin945lA21Ka+A==", "dependencies": { - "@sentry/types": "7.66.0", - "@sentry/utils": "7.66.0", - "tslib": "^2.4.1 || ^1.9.3" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@sentry/node/node_modules/@sentry/types": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.66.0.tgz", - "integrity": "sha512-uUMSoSiar6JhuD8p7ON/Ddp4JYvrVd2RpwXJRPH1A4H4Bd4DVt1mKJy1OLG6HdeQv39XyhB1lPZckKJg4tATPw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@sentry/node/node_modules/@sentry/utils": { - "version": "7.66.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.66.0.tgz", - "integrity": "sha512-9GYUVgXjK66uXXcLXVMXVzlptqMtq1eJENCuDeezQiEFrNA71KkLDg00wESp+LL+bl3wpVTBApArpbF6UEG5hQ==", - "dependencies": { - "@sentry/types": "7.66.0", - "tslib": "^2.4.1 || ^1.9.3" + "@sentry/types": "7.119.0" }, "engines": { "node": ">=8" } }, "node_modules/@smithy/abort-controller": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-2.0.3.tgz", - "integrity": "sha512-LbQ4fdsVuQC3/18Z/uia5wnk9fk8ikfHl3laYCEGhboEMJ/6oVk3zhydqljMxBCftHGUv7yUrTnZ6EAQhOf+PA==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.1.tgz", + "integrity": "sha512-MBJBiidoe+0cTFhyxT8g+9g7CeVccLM0IOKKUMCNQ1CNMJ/eIfoo0RTfVrXOONEI1UCN1W+zkiHSbzUNE9dZtQ==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/chunked-blob-reader": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-2.0.0.tgz", - "integrity": "sha512-k+J4GHJsMSAIQPChGBrjEmGS+WbPonCXesoqP9fynIqjn7rdOThdH8FAeCmokP9mxTYKQAKoHCLPzNlm6gh7Wg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-3.0.0.tgz", + "integrity": "sha512-sbnURCwjF0gSToGlsBiAmd1lRCmSn72nu9axfJu5lIx6RUEgHu6GwTMbqCdhQSi0Pumcm5vFxsi9XWXb2mTaoA==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" } }, "node_modules/@smithy/chunked-blob-reader-native": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-2.0.0.tgz", - "integrity": "sha512-HM8V2Rp1y8+1343tkZUKZllFhEQPNmpNdgFAncbTsxkZ18/gqjk23XXv3qGyXWp412f3o43ZZ1UZHVcHrpRnCQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-3.0.0.tgz", + "integrity": "sha512-VDkpCYW+peSuM4zJip5WDfqvg2Mo/e8yxOv3VF1m11y7B8KKMKVFtmZWDe36Fvk8rGuWrPZHHXZ7rR7uM5yWyg==", "dependencies": { - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" } }, "node_modules/@smithy/config-resolver": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-2.0.3.tgz", - "integrity": "sha512-E+fsc6BOzFOc6U6y9ogRH8Pw2HF1NVW14AAYy7l3OTXYWuYxHb/fzDZaA0FvD/dXyFoMy7AV1rYZsGzD4bMKzw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.5.tgz", + "integrity": "sha512-SkW5LxfkSI1bUC74OtfBbdz+grQXYiPYolyu8VfpLIjEoN/sHVBlLeGXMQ1vX4ejkgfv6sxVbQJ32yF2cl1veA==", "dependencies": { - "@smithy/types": "^2.2.0", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/core": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.3.2.tgz", + "integrity": "sha512-in5wwt6chDBcUv1Lw1+QzZxN9fBffi+qOixfb65yK4sDuKG7zAUO9HAFqmVzsZM3N+3tTyvZjtnDXePpvp007Q==", + "dependencies": { + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, "node_modules/@smithy/credential-provider-imds": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-2.0.3.tgz", - "integrity": "sha512-2e85iLgSuiGQ8BBFkot88kuv6sT5DHvkDO8FDvGwNunn2ybf24HhEkaWCMxK4pUeHtnA2dMa3hZbtfmJ7KJQig==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.0.tgz", + "integrity": "sha512-0SCIzgd8LYZ9EJxUjLXBmEKSZR/P/w6l7Rz/pab9culE/RWuqelAKGJvn5qUOl8BgX8Yj5HWM50A5hiB/RzsgA==", "dependencies": { - "@smithy/node-config-provider": "^2.0.3", - "@smithy/property-provider": "^2.0.3", - "@smithy/types": "^2.2.0", - "@smithy/url-parser": "^2.0.3", - "tslib": "^2.5.0" + "@smithy/node-config-provider": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/eventstream-codec": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-2.0.3.tgz", - "integrity": "sha512-3l/uKZBsV/6uMe2qXvh1C8ut/w6JHKgy7ic7N2QPR1SSuNWKNQBX0iVBqJpPtQz0UDeQYM4cNmwDBX+hw74EEw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-3.1.2.tgz", + "integrity": "sha512-0mBcu49JWt4MXhrhRAlxASNy0IjDRFU+aWNDRal9OtUJvJNiwDuyKMUONSOjLjSCeGwZaE0wOErdqULer8r7yw==", "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@smithy/types": "^2.2.0", - "@smithy/util-hex-encoding": "^2.0.0", - "tslib": "^2.5.0" + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^3.3.0", + "@smithy/util-hex-encoding": "^3.0.0", + "tslib": "^2.6.2" } }, "node_modules/@smithy/eventstream-serde-browser": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-2.0.3.tgz", - "integrity": "sha512-RwQeTFnc6nOP6iGjdnMFgDG8QtneHKptrVZxjc+be4KIoXGPyF3QAourxnrClxTl+MACXYUaCg6bWCozqfHMOw==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.6.tgz", + "integrity": "sha512-2hM54UWQUOrki4BtsUI1WzmD13/SeaqT/AB3EUJKbcver/WgKNaiJ5y5F5XXuVe6UekffVzuUDrBZVAA3AWRpQ==", "dependencies": { - "@smithy/eventstream-serde-universal": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/eventstream-serde-universal": "^3.0.5", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-2.0.3.tgz", - "integrity": "sha512-J8QzPnarBiJaPw5DBsZ5O2GHjfPHhCmKV5iVzdcAFt0PD81UWNL9HMwAKx99mY5WWPCaFKvb1yBeN2g/v4uA2w==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.3.tgz", + "integrity": "sha512-NVTYjOuYpGfrN/VbRQgn31x73KDLfCXCsFdad8DiIc3IcdxL+dYA9zEQPyOP7Fy2QL8CPy2WE4WCUD+ZsLNfaQ==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/eventstream-serde-node": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-2.0.3.tgz", - "integrity": "sha512-085r0AHMhwVF99rlAy8RVMhXMkxay4SdSwRdDUIe4MXQ6r2957BVpm3BcoxRpjcGgnoCldRc9tCRa0TclvUS5w==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.5.tgz", + "integrity": "sha512-+upXvnHNyZP095s11jF5dhGw/Ihzqwl5G+/KtMnoQOpdfC3B5HYCcDVG9EmgkhJMXJlM64PyN5gjJl0uXFQehQ==", "dependencies": { - "@smithy/eventstream-serde-universal": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/eventstream-serde-universal": "^3.0.5", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/eventstream-serde-universal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-2.0.3.tgz", - "integrity": "sha512-51nLy47MmU9Nb4dwlwsmP1XJViP72kuLtIqTeDeRSe5Ah4xfSP/df11roEhzUmE/rUYEkErj64RHkseeuFkCgg==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.5.tgz", + "integrity": "sha512-5u/nXbyoh1s4QxrvNre9V6vfyoLWuiVvvd5TlZjGThIikc3G+uNiG9uOTCWweSRjv1asdDIWK7nOmN7le4RYHQ==", "dependencies": { - "@smithy/eventstream-codec": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/eventstream-codec": "^3.1.2", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/fetch-http-handler": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-2.0.3.tgz", - "integrity": "sha512-0if2hyn+tDkyK9Tg1bXpo3IMUaezz/FKlaUTwTey3m87hF8gb7a0nKaST4NURE2eUVimViGCB7SH3/i4wFXALg==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.4.tgz", + "integrity": "sha512-kBprh5Gs5h7ug4nBWZi1FZthdqSM+T7zMmsZxx0IBvWUn7dK3diz2SHn7Bs4dQGFDk8plDv375gzenDoNwrXjg==", "dependencies": { - "@smithy/protocol-http": "^2.0.3", - "@smithy/querystring-builder": "^2.0.3", - "@smithy/types": "^2.2.0", - "@smithy/util-base64": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/protocol-http": "^4.1.0", + "@smithy/querystring-builder": "^3.0.3", + "@smithy/types": "^3.3.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" } }, "node_modules/@smithy/hash-blob-browser": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-2.0.3.tgz", - "integrity": "sha512-YQywO2eGG4x3klQZ+R7G8X3oCgrzQaCNC3zYq7kcGibE2Z+q9Lzt3prYiODUwAihDJTCG09xHq1p9IW+z/fp+Q==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-3.1.2.tgz", + "integrity": "sha512-hAbfqN2UbISltakCC2TP0kx4LqXBttEv2MqSPE98gVuDFMf05lU+TpC41QtqGP3Ff5A3GwZMPfKnEy0VmEUpmg==", "dependencies": { - "@smithy/chunked-blob-reader": "^2.0.0", - "@smithy/chunked-blob-reader-native": "^2.0.0", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/chunked-blob-reader": "^3.0.0", + "@smithy/chunked-blob-reader-native": "^3.0.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" } }, "node_modules/@smithy/hash-node": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-2.0.3.tgz", - "integrity": "sha512-wtN9eiRKEiryXrPbWQ7Acu0D3Uk65+PowtTqOslViMZNcKNlYHsxOP1S9rb2klnzA3yY1WSPO1tG78pjhRlvrQ==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.3.tgz", + "integrity": "sha512-2ctBXpPMG+B3BtWSGNnKELJ7SH9e4TNefJS0cd2eSkOOROeBnnVBnAy9LtJ8tY4vUEoe55N4CNPxzbWvR39iBw==", "dependencies": { - "@smithy/types": "^2.2.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/hash-stream-node": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-2.0.3.tgz", - "integrity": "sha512-rFUhbuynRMd1DlYewqXRog2bZIMaDL3sNTAK7fg+7DngPpus7hiIGuXn3tJNnCiqiNuxVrhi/ffWpwt21+8DtA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-3.1.2.tgz", + "integrity": "sha512-PBgDMeEdDzi6JxKwbfBtwQG9eT9cVwsf0dZzLXoJF4sHKHs5HEo/3lJWpn6jibfJwT34I1EBXpBnZE8AxAft6g==", "dependencies": { - "@smithy/types": "^2.2.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/invalid-dependency": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-2.0.3.tgz", - "integrity": "sha512-GtmVXD/s+OZlFG1o3HfUI55aBJZXX5/iznAQkgjRGf8prYoO8GvSZLDWHXJp91arybaJxYd133oJORGf4YxGAg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.3.tgz", + "integrity": "sha512-ID1eL/zpDULmHJbflb864k72/SNOZCADRc9i7Exq3RUNJw6raWUSlFEQ+3PX3EYs++bTxZB2dE9mEHTQLv61tw==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" } }, "node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.0.0.tgz", - "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/md5-js": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-2.0.3.tgz", - "integrity": "sha512-pYnD2US3SioMynHytq4n2BsB5L6uJ7pWKxl9sQqvWwYJXcT3VSnJ0/9adbVcWE+GrMRlGO4CpRg9SIKpdQYR+Q==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-3.0.3.tgz", + "integrity": "sha512-O/SAkGVwpWmelpj/8yDtsaVe6sINHLB1q8YE/+ZQbDxIw3SRLbTZuRaI10K12sVoENdnHqzPp5i3/H+BcZ3m3Q==", "dependencies": { - "@smithy/types": "^2.2.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" } }, "node_modules/@smithy/middleware-content-length": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-2.0.3.tgz", - "integrity": "sha512-2FiZ5vu2+iMRL8XWNaREUqqNHjtBubaY9Jb2b3huZ9EbgrXsJfCszK6PPidHTLe+B4T7AISqdF4ZSp9VPXuelg==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.5.tgz", + "integrity": "sha512-ILEzC2eyxx6ncej3zZSwMpB5RJ0zuqH7eMptxC4KN3f+v9bqT8ohssKbhNR78k/2tWW+KS5Spw+tbPF4Ejyqvw==", "dependencies": { - "@smithy/protocol-http": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/middleware-endpoint": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-2.0.3.tgz", - "integrity": "sha512-gNleUHhu5OKk/nrA6WbpLUk/Wk2hcyCvaw7sZiKMazs+zdzWb0kYzynRf675uCWolbvlw9BvkrVaSJo5TRz+Mg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.1.0.tgz", + "integrity": "sha512-5y5aiKCEwg9TDPB4yFE7H6tYvGFf1OJHNczeY10/EFF8Ir8jZbNntQJxMWNfeQjC1mxPsaQ6mR9cvQbf+0YeMw==", "dependencies": { - "@smithy/middleware-serde": "^2.0.3", - "@smithy/types": "^2.2.0", - "@smithy/url-parser": "^2.0.3", - "@smithy/util-middleware": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/middleware-serde": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/middleware-retry": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-2.0.3.tgz", - "integrity": "sha512-BpfaUwgOh8LpWP/x6KBb5IdBmd5+tEpTKIjDt7LWi3IVOYmRX5DjQo1eCEUqlKS1nxws/T7+/IyzvgBq8gF9rw==", + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.14.tgz", + "integrity": "sha512-7ZaWZJOjUxa5hgmuMspyt8v/zVsh0GXYuF7OvCmdcbVa/xbnKQoYC+uYKunAqRGTkxjOyuOCw9rmFUFOqqC0eQ==", "dependencies": { - "@smithy/protocol-http": "^2.0.3", - "@smithy/service-error-classification": "^2.0.0", - "@smithy/types": "^2.2.0", - "@smithy/util-middleware": "^2.0.0", - "@smithy/util-retry": "^2.0.0", - "tslib": "^2.5.0", - "uuid": "^8.3.2" + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/service-error-classification": "^3.0.3", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/middleware-serde": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-2.0.3.tgz", - "integrity": "sha512-5BxuOKL7pXqesvtunniDlvYQXVr7UJEF5nFVoK6+5chf5wplLA8IZWAn3NUcGq/f1u01w2m2q7atCoA6ftRLKA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.3.tgz", + "integrity": "sha512-puUbyJQBcg9eSErFXjKNiGILJGtiqmuuNKEYNYfUD57fUl4i9+mfmThtQhvFXU0hCVG0iEJhvQUipUf+/SsFdA==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/middleware-stack": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-2.0.0.tgz", - "integrity": "sha512-31XC1xNF65nlbc16yuh3wwTudmqs6qy4EseQUGF8A/p2m/5wdd/cnXJqpniy/XvXVwkHPz/GwV36HqzHtIKATQ==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.3.tgz", + "integrity": "sha512-r4klY9nFudB0r9UdSMaGSyjyQK5adUyPnQN/ZM6M75phTxOdnc/AhpvGD1fQUvgmqjQEBGCwpnPbDm8pH5PapA==", "dependencies": { - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/node-config-provider": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.0.3.tgz", - "integrity": "sha512-dYSVxOQMqtdmSOBW/J4RPvSYE4KKdGLgFHDJQGNsGo1d3y9IoNLwE32lT7doWwV0ryntlm4QZZwhfb3gISrTtA==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.4.tgz", + "integrity": "sha512-YvnElQy8HR4vDcAjoy7Xkx9YT8xZP4cBXcbJSgm/kxmiQu08DwUwj8rkGnyoJTpfl/3xYHH+d8zE+eHqoDCSdQ==", "dependencies": { - "@smithy/property-provider": "^2.0.3", - "@smithy/shared-ini-file-loader": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/node-http-handler": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-2.0.3.tgz", - "integrity": "sha512-wUO78aa0VVJVz54Lr1Nw6FYnkatbvh2saHgkT8fdtNWc7I/osaPMUJnRkBmTZZ5w+BIQ1rvr9dbGyYBTlRg2+Q==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.1.4.tgz", + "integrity": "sha512-+UmxgixgOr/yLsUxcEKGH0fMNVteJFGkmRltYFHnBMlogyFdpzn2CwqWmxOrfJELhV34v0WSlaqG1UtE1uXlJg==", "dependencies": { - "@smithy/abort-controller": "^2.0.3", - "@smithy/protocol-http": "^2.0.3", - "@smithy/querystring-builder": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/abort-controller": "^3.1.1", + "@smithy/protocol-http": "^4.1.0", + "@smithy/querystring-builder": "^3.0.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/property-provider": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.0.3.tgz", - "integrity": "sha512-SHV1SINUNysJ5HyPrMLHLkdofgalk9+5FnQCB/985hqcUxstN616hPZ7ngOjLpdhKp0yu1ul/esE9Gd4qh1tgg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.3.tgz", + "integrity": "sha512-zahyOVR9Q4PEoguJ/NrFP4O7SMAfYO1HLhB18M+q+Z4KFd4V2obiMnlVoUFzFLSPeVt1POyNWneHHrZaTMoc/g==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/protocol-http": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-2.0.3.tgz", - "integrity": "sha512-yzBYloviSLOwo2RT62vBRCPtk8mc/O2RMJfynEahbX8ZnduHpKaajvx3IuGubhamIbesi7M5HBVecDehBnlb9Q==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.0.tgz", + "integrity": "sha512-dPVoHYQ2wcHooGXg3LQisa1hH0e4y0pAddPMeeUPipI1tEOqL6A4N0/G7abeq+K8wrwSgjk4C0wnD1XZpJm5aA==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/querystring-builder": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-2.0.3.tgz", - "integrity": "sha512-HPSviVgGj9FT4jPdprkfSGF3nhFzpQMST1hOC1Oh6eaRB2KTQCsOZmS7U4IqGErVPafe6f/yRa1DV73B5gO50w==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.3.tgz", + "integrity": "sha512-vyWckeUeesFKzCDaRwWLUA1Xym9McaA6XpFfAK5qI9DKJ4M33ooQGqvM4J+LalH4u/Dq9nFiC8U6Qn1qi0+9zw==", "dependencies": { - "@smithy/types": "^2.2.0", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "@smithy/util-uri-escape": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/querystring-parser": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-2.0.3.tgz", - "integrity": "sha512-AaiZ2osstDbmOTz5uY+96o0G1E7k1U7dCYrNT8FFcyffdhScTzG7fXr12f5peie2W0XFu2Ub+b6tQwFuZwPoBA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.3.tgz", + "integrity": "sha512-zahM1lQv2YjmznnfQsWbYojFe55l0SLG/988brlLv1i8z3dubloLF+75ATRsqPBboUXsW6I9CPGE5rQgLfY0vQ==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/service-error-classification": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-2.0.0.tgz", - "integrity": "sha512-2z5Nafy1O0cTf69wKyNjGW/sNVMiqDnb4jgwfMG8ye8KnFJ5qmJpDccwIbJNhXIfbsxTg9SEec2oe1cexhMJvw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.3.tgz", + "integrity": "sha512-Jn39sSl8cim/VlkLsUhRFq/dKDnRUFlfRkvhOJaUbLBXUsLRLNf9WaxDv/z9BjuQ3A6k/qE8af1lsqcwm7+DaQ==", + "dependencies": { + "@smithy/types": "^3.3.0" + }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/shared-ini-file-loader": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.0.3.tgz", - "integrity": "sha512-1Vgco3K0rN5YG2OStoS2zUrBzdcFqgqp475rGdag206PCh7AHzmVSGXL6OpWPAqZl29WUqXfMP8tHOLG0H6vkA==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.4.tgz", + "integrity": "sha512-qMxS4hBGB8FY2GQqshcRUy1K6k8aBWP5vwm8qKkCT3A9K2dawUwOIJfqh9Yste/Bl0J2lzosVyrXDj68kLcHXQ==", "dependencies": { - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/signature-v4": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-2.0.3.tgz", - "integrity": "sha512-AZ+951EAcNqas2RTq4xQvuX4uZqPV/zCcbs7ACqpuxcjYAFU2FKRPpQHqsDN0jbJwI3Scw75xhSKcGWFf2/Olg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.1.0.tgz", + "integrity": "sha512-aRryp2XNZeRcOtuJoxjydO6QTaVhxx/vjaR+gx7ZjaFgrgPRyZ3HCTbfwqYj6ZWEBHkCSUfcaymKPURaByukag==", "dependencies": { - "@smithy/eventstream-codec": "^2.0.3", - "@smithy/is-array-buffer": "^2.0.0", - "@smithy/types": "^2.2.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-middleware": "^2.0.0", - "@smithy/util-uri-escape": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/smithy-client": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-2.0.3.tgz", - "integrity": "sha512-YP0HakPOJgvX2wvPEAGH9GB3NfuQE8CmBhR13bWtqWuIErmJnInTiSQcLSc0QiXHclH/8Qlq+qjKCR7N/4wvtQ==", + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.1.12.tgz", + "integrity": "sha512-wtm8JtsycthkHy1YA4zjIh2thJgIQ9vGkoR639DBx5lLlLNU0v4GARpQZkr2WjXue74nZ7MiTSWfVrLkyD8RkA==", "dependencies": { - "@smithy/middleware-stack": "^2.0.0", - "@smithy/types": "^2.2.0", - "@smithy/util-stream": "^2.0.3", - "tslib": "^2.5.0" + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/types": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.2.0.tgz", - "integrity": "sha512-Ahpt9KvD0mWeWiyaGo5EBE7KOByLl3jl4CD9Ps/r8qySgzVzo/4qsa+vvstOU3ZEriALmrPqUKIhqHt0Rn+m6g==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.3.0.tgz", + "integrity": "sha512-IxvBBCTFDHbVoK7zIxqA1ZOdc4QfM5HM7rGleCuHi7L1wnKv5Pn69xXJQ9hgxH60ZVygH9/JG0jRgtUncE3QUA==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/url-parser": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-2.0.3.tgz", - "integrity": "sha512-O7NlbDL4kh+th6qwtL7wNRcPCuOXFRWJzWKywfB/Nv56N1F8KiK0KbPn1z7MU5du/0LgjAMvhkg0mVDyiMCnqw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.3.tgz", + "integrity": "sha512-pw3VtZtX2rg+s6HMs6/+u9+hu6oY6U7IohGhVNnjbgKy86wcIsSZwgHrFR+t67Uyxvp4Xz3p3kGXXIpTNisq8A==", "dependencies": { - "@smithy/querystring-parser": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/querystring-parser": "^3.0.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" } }, "node_modules/@smithy/util-base64": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-2.0.0.tgz", - "integrity": "sha512-Zb1E4xx+m5Lud8bbeYi5FkcMJMnn+1WUnJF3qD7rAdXpaL7UjkFQLdmW5fHadoKbdHpwH9vSR8EyTJFHJs++tA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-3.0.0.tgz", + "integrity": "sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==", "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-body-length-browser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-2.0.0.tgz", - "integrity": "sha512-JdDuS4ircJt+FDnaQj88TzZY3+njZ6O+D3uakS32f2VNnDo3vyEuNdBOh/oFd8Df1zSZOuH1HEChk2AOYDezZg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" } }, "node_modules/@smithy/util-body-length-node": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-2.0.0.tgz", - "integrity": "sha512-ZV7Z/WHTMxHJe/xL/56qZwSUcl63/5aaPAGjkfynJm4poILjdD4GmFI+V+YWabh2WJIjwTKZ5PNsuvPQKt93Mg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.0.0.tgz", - "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-config-provider": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-2.0.0.tgz", - "integrity": "sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-defaults-mode-browser": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-2.0.3.tgz", - "integrity": "sha512-t9cirP55wYeSfDjjvPHSjNiuZj3wc9W3W3fjLXaVzuKKlKX98B9Vj7QM9WHJnFjJdsrYEwolLA8GVdqZeHOkHg==", + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.14.tgz", + "integrity": "sha512-0iwTgKKmAIf+vFLV8fji21Jb2px11ktKVxbX6LIDPAUJyWQqGqBVfwba7xwa1f2FZUoolYQgLvxQEpJycXuQ5w==", "dependencies": { - "@smithy/property-provider": "^2.0.3", - "@smithy/types": "^2.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", "bowser": "^2.11.0", - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { "node": ">= 10.0.0" } }, "node_modules/@smithy/util-defaults-mode-node": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.0.3.tgz", - "integrity": "sha512-Gca+fL0h+tl8cbvoLDMWCVzs1CL4jWLWvz/I6MCYZzaEAKkmd1qO4kPzBeGaI6hGA/IbrlWCFg7L+MTPzLwzfg==", + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.14.tgz", + "integrity": "sha512-e9uQarJKfXApkTMMruIdxHprhcXivH1flYCe8JRDTzkkLx8dA3V5J8GZlST9yfDiRWkJpZJlUXGN9Rc9Ade3OQ==", "dependencies": { - "@smithy/config-resolver": "^2.0.3", - "@smithy/credential-provider-imds": "^2.0.3", - "@smithy/node-config-provider": "^2.0.3", - "@smithy/property-provider": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/config-resolver": "^3.0.5", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { "node": ">= 10.0.0" } }, - "node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.0.0.tgz", - "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", + "node_modules/@smithy/util-endpoints": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.0.5.tgz", + "integrity": "sha512-ReQP0BWihIE68OAblC/WQmDD40Gx+QY1Ez8mTdFMXpmjfxSyz2fVQu3A4zXRfQU9sZXtewk3GmhfOHswvX+eNg==", "dependencies": { - "tslib": "^2.5.0" + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, "node_modules/@smithy/util-middleware": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-2.0.0.tgz", - "integrity": "sha512-eCWX4ECuDHn1wuyyDdGdUWnT4OGyIzV0LN1xRttBFMPI9Ff/4heSHVxneyiMtOB//zpXWCha1/SWHJOZstG7kA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.3.tgz", + "integrity": "sha512-l+StyYYK/eO3DlVPbU+4Bi06Jjal+PFLSMmlWM1BEwyLxZ3aKkf1ROnoIakfaA7mC6uw3ny7JBkau4Yc+5zfWw==", "dependencies": { - "tslib": "^2.5.0" + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-retry": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-2.0.0.tgz", - "integrity": "sha512-/dvJ8afrElasuiiIttRJeoS2sy8YXpksQwiM/TcepqdRVp7u4ejd9C4IQURHNjlfPUT7Y6lCDSa2zQJbdHhVTg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.3.tgz", + "integrity": "sha512-AFw+hjpbtVApzpNDhbjNG5NA3kyoMs7vx0gsgmlJF4s+yz1Zlepde7J58zpIRIsdjc+emhpAITxA88qLkPF26w==", "dependencies": { - "@smithy/service-error-classification": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/service-error-classification": "^3.0.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">= 14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-stream": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-2.0.3.tgz", - "integrity": "sha512-+8n2vIyp6o9KHGey0PoGatcDthwVb7C/EzWfqojXrHhZOXy6l+hnWlfoF8zVerKYH2CUtravdJKRTy7vdkOXfQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.1.3.tgz", + "integrity": "sha512-FIv/bRhIlAxC0U7xM1BCnF2aDRPq0UaelqBHkM2lsCp26mcBbgI0tCVTv+jGdsQLUmAMybua/bjDsSu8RQHbmw==", "dependencies": { - "@smithy/fetch-http-handler": "^2.0.3", - "@smithy/node-http-handler": "^2.0.3", - "@smithy/types": "^2.2.0", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-2.0.0.tgz", - "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-3.0.0.tgz", + "integrity": "sha512-LqR7qYLgZTD7nWLBecUi4aqolw8Mhza9ArpNEQ881MJJIU2sE5iHCK6TdyqqzcDLy0OPe10IY4T8ctVdtynubg==", "dependencies": { - "tslib": "^2.5.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-utf8": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.0.tgz", - "integrity": "sha512-rctU1VkziY84n5OXe3bPNpKR001ZCME2JCaBBFgtiM2hfKbHFudc/BkMuPab8hRbLd0j3vbnBTTZ1igBf0wgiQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@smithy/util-waiter": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-2.0.3.tgz", - "integrity": "sha512-3/Fzqoyecvh4cNvcHQDl1GznskXjGc9uZ8N6aoaPCKfsctgZad/J13xg8WC1UXc3PwKocHtuUvz0dRFDLaBppQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.1.2.tgz", + "integrity": "sha512-4pP0EV3iTsexDx+8PPGAKCQpd/6hsQBaQhqWzU4hqKPHN5epPsxKbvUTIiYIHTxaKt6/kEaqPBpu/ufvfbrRzw==", "dependencies": { - "@smithy/abort-controller": "^2.0.3", - "@smithy/types": "^2.2.0", - "tslib": "^2.5.0" + "@smithy/abort-controller": "^3.1.1", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, "node_modules/@sqltools/formatter": { @@ -2412,9 +2671,9 @@ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==" }, "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==" + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==" }, "node_modules/@tsconfig/node12": { "version": "1.0.11", @@ -2442,24 +2701,24 @@ } }, "node_modules/@types/bcrypt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.0.tgz", - "integrity": "sha512-agtcFKaruL8TmcvqbndlqHPSJgsolhf/qPWchFlgnW1gECTN/nKbFcoFnvKAQRFfKbh+BO6A3SWdJu9t+xF3Lw==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.2.tgz", + "integrity": "sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/bluebird": { - "version": "3.5.38", - "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.38.tgz", - "integrity": "sha512-yR/Kxc0dd4FfwtEoLZMoqJbM/VE/W7hXn/MIjb+axcwag0iFmSPK7OBUZq1YWLynJUoWQkfUrI7T0HDqGApNSg==", + "version": "3.5.42", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.42.tgz", + "integrity": "sha512-Jhy+MWRlro6UjVi578V/4ZGNfeCOcNCp0YaFNIUGFKlImowqwb1O/22wDVk3FDGMLqxdpOV3qQHD5fPEH4hK6A==", "dev": true }, "node_modules/@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", + "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", "dev": true, "dependencies": { "@types/connect": "*", @@ -2467,27 +2726,27 @@ } }, "node_modules/@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/cookie-parser": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@types/cookie-parser/-/cookie-parser-1.4.3.tgz", - "integrity": "sha512-CqSKwFwefj4PzZ5n/iwad/bow2hTCh0FlNAeWLtQM3JA/NX/iYagIpWG2cf1bQKQ2c9gU2log5VUCrn7LDOs0w==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/@types/cookie-parser/-/cookie-parser-1.4.7.tgz", + "integrity": "sha512-Fvuyi354Z+uayxzIGCwYTayFKocfV7TuDYZClCdIP9ckhvAu/ixDtCB6qx2TT0FKjPLf1f3P/J1rgf6lPs64mw==", "dev": true, "dependencies": { "@types/express": "*" } }, "node_modules/@types/express": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", + "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", "dev": true, "dependencies": { "@types/body-parser": "*", @@ -2497,9 +2756,9 @@ } }, "node_modules/@types/express-serve-static-core": { - "version": "4.17.35", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", - "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "version": "4.19.5", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.5.tgz", + "integrity": "sha512-y6W03tvrACO72aijJ5uF02FRq5cgDR9lUxddQ8vyF+GvmjJQqbzDcJngEjURc+ZsG31VI3hODNZJ2URj86pzmg==", "dev": true, "dependencies": { "@types/node": "*", @@ -2509,141 +2768,124 @@ } }, "node_modules/@types/http-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.1.tgz", - "integrity": "sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", + "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", "dev": true }, "node_modules/@types/i18next-node-fs-backend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@types/i18next-node-fs-backend/-/i18next-node-fs-backend-2.1.2.tgz", - "integrity": "sha512-yQXgOd3wTmXZRe6Ea0TGUWWpP2cAq33njfZQzx9Fi+yj7ij8+/q+68ck51B9GdrIatxNAhXY5GF8xJmsNV/aCA==", + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@types/i18next-node-fs-backend/-/i18next-node-fs-backend-2.1.5.tgz", + "integrity": "sha512-qLuS9SIlAnywXSzCIDi/TTm3DWzLKqLcd5O8K/OSX1Hif6soTu5H+GwZ9Jneoe0gRq6orwaPEe9d0dcmeAFLzA==", "dev": true, "dependencies": { "i18next": ">=17.0.11" } }, "node_modules/@types/json-bigint": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/json-bigint/-/json-bigint-1.0.1.tgz", - "integrity": "sha512-zpchZLNsNuzJHi6v64UBoFWAvQlPhch7XAi36FkH6tL1bbbmimIF+cS7vwkzY4u5RaSWMoflQfu+TshMPPw8uw==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/json-bigint/-/json-bigint-1.0.4.tgz", + "integrity": "sha512-ydHooXLbOmxBbubnA7Eh+RpBzuaIiQjh8WGJYQB50JFGFrdxW7JzVlyEV7fAXw0T2sqJ1ysTneJbiyNLqZRAag==", "dev": true }, "node_modules/@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" }, "node_modules/@types/jsonwebtoken": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", - "integrity": "sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==", + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.6.tgz", + "integrity": "sha512-/5hndP5dCjloafCXns6SZyESp3Ldq7YjH3zwzwczYnjxIT0Fqzk5ROSYVGfFyczIue7IUEj8hkvLbPoLQ18vQw==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/mime": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", - "dev": true - }, - "node_modules/@types/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", "dev": true }, "node_modules/@types/morgan": { - "version": "1.9.4", - "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.4.tgz", - "integrity": "sha512-cXoc4k+6+YAllH3ZHmx4hf7La1dzUk6keTR4bF4b4Sc0mZxU/zK4wO7l+ZzezXm/jkYj/qC+uYGZrarZdIVvyQ==", + "version": "1.9.9", + "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.9.tgz", + "integrity": "sha512-iRYSDKVaC6FkGSpEVVIvrRGw0DfJMiQzIn3qr2G5B3C//AWkulhXgaBd7tS9/J79GWSYMTHGs7PfI5b3Y8m+RQ==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/multer": { - "version": "1.4.7", - "resolved": "https://registry.npmjs.org/@types/multer/-/multer-1.4.7.tgz", - "integrity": "sha512-/SNsDidUFCvqqcWDwxv2feww/yqhNeTRL5CVoL3jU4Goc4kKEL10T7Eye65ZqPNi4HRx8sAEX59pV1aEH7drNA==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/@types/multer/-/multer-1.4.11.tgz", + "integrity": "sha512-svK240gr6LVWvv3YGyhLlA+6LRRWA4mnGIU7RcNmgjBYFl6665wcXrRfxGp5tEPVHUNm5FMcmq7too9bxCwX/w==", "dev": true, "dependencies": { "@types/express": "*" } }, "node_modules/@types/murmurhash-js": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@types/murmurhash-js/-/murmurhash-js-1.0.4.tgz", - "integrity": "sha512-lTFERysuLTbtxv/GTcBDV3j3UR1C9WTNiU7rY9QvEUn1G60q7HRXj6c+eFGo0ymMFOlb6kqZsO2WYyzc15oGHA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/murmurhash-js/-/murmurhash-js-1.0.6.tgz", + "integrity": "sha512-P2RRwRpevEKO0FrK5xNjxBywg0Br24tEv8K2+iWg56PtcCUNGAkaaOWKBQiUpofA8H/gmgdHXrcvSgp2uXCVAQ==", "dev": true }, "node_modules/@types/needle": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@types/needle/-/needle-3.2.0.tgz", - "integrity": "sha512-6XzvzEyJ2ozFNfPajFmqH9JOt0Hp+9TawaYpJT59iIP/zR0U37cfWCRwosyIeEBBZBi021Osq4jGAD3AOju5fg==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@types/needle/-/needle-3.3.0.tgz", + "integrity": "sha512-UFIuc1gdyzAqeVUYpSL+cliw2MmU/ZUhVZKE7Zo4wPbgc8hbljeKSnn6ls6iG8r5jpegPXLUIhJ+Wb2kLVs8cg==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/node": { - "version": "18.17.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.5.tgz", - "integrity": "sha512-xNbS75FxH6P4UXTPUJp/zNPq6/xsfdJKussCWNOnz4aULWIRwMgP1LgaB5RiBnMX1DPCYenuqGZfnIAx5mbFLA==" + "version": "18.19.44", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.44.tgz", + "integrity": "sha512-ZsbGerYg72WMXUIE9fYxtvfzLEuq6q8mKERdWFnqTmOvudMxnz+CBNRoOwJ2kNpFOncrKjT1hZwxjlFgQ9qvQA==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/node-fetch": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", - "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", "dev": true, "dependencies": { "@types/node": "*", - "form-data": "^3.0.0" - } - }, - "node_modules/@types/node-fetch/node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" + "form-data": "^4.0.0" } }, "node_modules/@types/node-os-utils": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@types/node-os-utils/-/node-os-utils-1.3.1.tgz", - "integrity": "sha512-gokG1AaQo78X3f1KXOPAfwbhERX95XL0nhosOhwFck0hZ3BG52Mfch3oj3gAhXuUsou3lwi+ewZWjDo0wshKwQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@types/node-os-utils/-/node-os-utils-1.3.4.tgz", + "integrity": "sha512-BCUYrbdoO4FUbx6MB9atLNFnkxdliFaxdiTJMIPPiecXIApc5zf4NIqV5G1jWv/ReZvtYyHLs40RkBjHX+vykA==", "dev": true }, "node_modules/@types/nodemailer": { - "version": "6.4.9", - "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-6.4.9.tgz", - "integrity": "sha512-XYG8Gv+sHjaOtUpiuytahMy2mM3rectgroNbs6R3djZEKmPNiIJwe9KqOJBGzKKnNZNKvnuvmugBgpq3w/S0ig==", + "version": "6.4.15", + "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-6.4.15.tgz", + "integrity": "sha512-0EBJxawVNjPkng1zm2vopRctuWVCxk34JcIlRuXSf54habUWdz1FB7wHDqOqvDa8Mtpt0Q3LTXQkAs2LNyK5jQ==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/notp": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@types/notp/-/notp-2.0.2.tgz", - "integrity": "sha512-JUcVYN9Tmw0AjoAfvjslS4hbv39fPBbZdftBK3b50g5z/DmhLsu6cd0UOEBiQuMwy2FirshF2Gk9gAvfWjshMw==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/notp/-/notp-2.0.5.tgz", + "integrity": "sha512-ZsZS0PYUa6ZE4K3yOGerBvaxCp4ePf6ZmkFbPeilcqz2Ui/lmXox7KlRt7XZkXzqUgXhFLkc09ixyVmFLCU3gQ==", "dependencies": { "@types/node": "*" } }, "node_modules/@types/probe-image-size": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@types/probe-image-size/-/probe-image-size-7.2.0.tgz", - "integrity": "sha512-R5H3vw62gHNHrn+JGZbKejb+Z2D/6E5UNVlhCzIaBBLroMQMOFqy5Pap2gM+ZZHdqBtVU0/cx/M6to+mOJcoew==", + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/@types/probe-image-size/-/probe-image-size-7.2.5.tgz", + "integrity": "sha512-9Bg6d/GNnjmhMMxadDstwrSlquuuLf0jQuPszbU6n3QUfybif3V/ryD3J2i9iaiC5JB/FU/8E41n88SM/UB+Tg==", "dev": true, "dependencies": { "@types/needle": "*", @@ -2651,27 +2893,27 @@ } }, "node_modules/@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", + "version": "6.9.15", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz", + "integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==", "dev": true }, "node_modules/@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", "dev": true }, "node_modules/@types/semver": { - "version": "7.5.6", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", - "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "version": "7.5.8", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", + "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", "dev": true }, "node_modules/@types/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", - "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", + "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", "dev": true, "dependencies": { "@types/mime": "^1", @@ -2679,14 +2921,14 @@ } }, "node_modules/@types/serve-static": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.2.tgz", - "integrity": "sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==", + "version": "1.15.7", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", + "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", "dev": true, "dependencies": { "@types/http-errors": "*", - "@types/mime": "*", - "@types/node": "*" + "@types/node": "*", + "@types/send": "*" } }, "node_modules/@types/sharp": { @@ -2698,18 +2940,10 @@ "@types/node": "*" } }, - "node_modules/@types/stream-buffers": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/stream-buffers/-/stream-buffers-3.0.4.tgz", - "integrity": "sha512-qU/K1tb2yUdhXkLIATzsIPwbtX6BpZk0l3dPW6xqWyhfzzM1ECaQ/8faEnu3CNraLiQ9LHyQQPBGp7N9Fbs25w==", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/ws": { - "version": "8.5.5", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.5.tgz", - "integrity": "sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==", + "version": "8.5.12", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz", + "integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==", "dev": true, "dependencies": { "@types/node": "*" @@ -2863,30 +3097,6 @@ } } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/@typescript-eslint/utils": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", @@ -2953,9 +3163,9 @@ } }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", "bin": { "acorn": "bin/acorn" }, @@ -2973,9 +3183,12 @@ } }, "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.3.tgz", + "integrity": "sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==", + "dependencies": { + "acorn": "^8.11.0" + }, "engines": { "node": ">=0.4.0" } @@ -3054,9 +3267,9 @@ } }, "node_modules/amqplib": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.10.3.tgz", - "integrity": "sha512-UHmuSa7n8vVW/a5HGh2nFPqAEr8+cD4dEZ6u9GjP91nHfr1a54RyAKyra7Sb5NH7NBKOUlyQSMXIp0qAixKexw==", + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.10.4.tgz", + "integrity": "sha512-DMZ4eCEjAVdX1II2TfIUpJhfKAuoCeDIo/YyETbfAqehHTXxxs7WOOd+N1Xxr4cKhx12y23zk8/os98FxlZHrw==", "dependencies": { "@acuminous/bitsyntax": "^0.1.2", "buffer-more-ints": "~1.0.0", @@ -3122,6 +3335,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "deprecated": "This package is no longer supported.", "dependencies": { "delegates": "^1.0.0", "readable-stream": "^3.6.0" @@ -3181,15 +3395,6 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/array-differ": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz", - "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", @@ -3204,15 +3409,6 @@ "node": ">=8" } }, - "node_modules/arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -3244,9 +3440,9 @@ } }, "node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", "optional": true }, "node_modules/asynckit": { @@ -3255,12 +3451,12 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "optional": true, "dependencies": { - "follow-redirects": "^1.15.0", + "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } @@ -3307,20 +3503,20 @@ } }, "node_modules/basic-ftp": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.3.tgz", - "integrity": "sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", "engines": { "node": ">=10.0.0" } }, "node_modules/bcrypt": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.0.tgz", - "integrity": "sha512-RHBS7HI5N5tEnGTmtR/pppX0mmDSBpQ4aCBsj7CEQfYXDcO74A8sIBYcJMuCsis2E81zDxeENYhv66oZwLiA+Q==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz", + "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==", "hasInstallScript": true, "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.10", + "@mapbox/node-pre-gyp": "^1.0.11", "node-addon-api": "^5.0.0" }, "engines": { @@ -3328,9 +3524,9 @@ } }, "node_modules/bignumber.js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", - "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", "engines": { "node": "*" } @@ -3344,6 +3540,60 @@ "file-uri-to-path": "1.0.0" } }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "optional": true, + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "optional": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bl/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/bl/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "optional": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -3403,30 +3653,29 @@ "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "balanced-match": "^1.0.0" } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, "node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "funding": [ { "type": "github", @@ -3441,9 +3690,10 @@ "url": "https://feross.org/support" } ], + "optional": true, "dependencies": { "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "ieee754": "^1.1.13" } }, "node_modules/buffer-equal": { @@ -3470,15 +3720,6 @@ "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-1.0.0.tgz", "integrity": "sha512-EMetuGFz5SLsT0QTnXzINh4Ksr+oo4i+UGTXEshiGCQWnsgSs7ZhJ8fzlwQ+OzEMs0MpDAMr1hxnblp5a4vcHg==" }, - "node_modules/buffer-writer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz", - "integrity": "sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==", - "optional": true, - "engines": { - "node": ">=4" - } - }, "node_modules/busboy": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", @@ -3560,12 +3801,18 @@ } }, "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3581,32 +3828,41 @@ } }, "node_modules/cbor-extract": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/cbor-extract/-/cbor-extract-2.1.1.tgz", - "integrity": "sha512-1UX977+L+zOJHsp0mWFG13GLwO6ucKgSmSW6JTl8B9GUvACvHeIVpFqhU92299Z6PfD09aTXDell5p+lp1rUFA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cbor-extract/-/cbor-extract-2.2.0.tgz", + "integrity": "sha512-Ig1zM66BjLfTXpNgKpvBePq271BPOvu8MR0Jl080yG7Jsl+wAZunfrwiwA+9ruzm/WEdIV5QF/bjDZTqyAIVHA==", "hasInstallScript": true, "optional": true, "dependencies": { - "node-gyp-build-optional-packages": "5.0.3" + "node-gyp-build-optional-packages": "5.1.1" }, "bin": { "download-cbor-prebuilds": "bin/download-prebuilds.js" }, "optionalDependencies": { - "@cbor-extract/cbor-extract-darwin-arm64": "2.1.1", - "@cbor-extract/cbor-extract-darwin-x64": "2.1.1", - "@cbor-extract/cbor-extract-linux-arm": "2.1.1", - "@cbor-extract/cbor-extract-linux-arm64": "2.1.1", - "@cbor-extract/cbor-extract-linux-x64": "2.1.1", - "@cbor-extract/cbor-extract-win32-x64": "2.1.1" + "@cbor-extract/cbor-extract-darwin-arm64": "2.2.0", + "@cbor-extract/cbor-extract-darwin-x64": "2.2.0", + "@cbor-extract/cbor-extract-linux-arm": "2.2.0", + "@cbor-extract/cbor-extract-linux-arm64": "2.2.0", + "@cbor-extract/cbor-extract-linux-x64": "2.2.0", + "@cbor-extract/cbor-extract-win32-x64": "2.2.0" } }, "node_modules/cbor-x": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/cbor-x/-/cbor-x-1.5.3.tgz", - "integrity": "sha512-adrN0S67C7jY2hgqeGcw+Uj6iEGLQa5D/p6/9YNl5AaVIYJaJz/bARfWsP8UikBZWbhS27LN0DJK4531vo9ODw==", + "version": "1.5.9", + "resolved": "https://registry.npmjs.org/cbor-x/-/cbor-x-1.5.9.tgz", + "integrity": "sha512-OEI5rEu3MeR0WWNUXuIGkxmbXVhABP+VtgAXzm48c9ulkrsvxshjjk94XSOGphyAKeNGLPfAxxzEtgQ6rEVpYQ==", "optionalDependencies": { - "cbor-extract": "^2.1.1" + "cbor-extract": "^2.2.0" + } + }, + "node_modules/centra": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/centra/-/centra-2.7.0.tgz", + "integrity": "sha512-PbFMgMSrmgx6uxCdm57RUos9Tc3fclMvhLSATYN39XsDV29B89zZ3KA89jmY0vwSGazyU+uerqwa6t+KaodPcg==", + "optional": true, + "dependencies": { + "follow-redirects": "^1.15.6" } }, "node_modules/chalk": { @@ -3625,20 +3881,24 @@ } }, "node_modules/cheerio": { - "version": "1.0.0-rc.12", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", - "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0.tgz", + "integrity": "sha512-quS9HgjQpdaXOvsZz82Oz7uxtXiy6UIsIQcpBj7HRw2M63Skasm9qlDocAM7jNuaxdhpPU7c4kJN+gA5MCu4ww==", "dependencies": { "cheerio-select": "^2.1.0", "dom-serializer": "^2.0.0", "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "htmlparser2": "^8.0.1", - "parse5": "^7.0.0", - "parse5-htmlparser2-tree-adapter": "^7.0.0" + "domutils": "^3.1.0", + "encoding-sniffer": "^0.2.0", + "htmlparser2": "^9.1.0", + "parse5": "^7.1.2", + "parse5-htmlparser2-tree-adapter": "^7.0.0", + "parse5-parser-stream": "^7.1.2", + "undici": "^6.19.5", + "whatwg-mimetype": "^4.0.0" }, "engines": { - "node": ">= 6" + "node": ">=18.17" }, "funding": { "url": "https://github.com/cheeriojs/cheerio?sponsor=1" @@ -3799,10 +4059,13 @@ } }, "node_modules/component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", - "optional": true + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", + "optional": true, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/concat-map": { "version": "0.0.1", @@ -3907,9 +4170,9 @@ } }, "node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", "engines": { "node": ">= 0.6" } @@ -3926,14 +4189,6 @@ "node": ">= 0.8.0" } }, - "node_modules/cookie-parser/node_modules/cookie": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", @@ -3959,7 +4214,6 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3996,32 +4250,22 @@ } }, "node_modules/data-uri-to-buffer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-5.0.1.tgz", - "integrity": "sha512-a9l6T1qqDogvvnw0nKlfZzqsyikEBZBClF39V3TFoKhDtGBqHu2HkuomJc02j5zft8zrUaXEuoicLeW54RkzPg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", "engines": { "node": ">= 14" } }, - "node_modules/date-fns": { - "version": "2.30.0", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", - "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", - "dependencies": { - "@babel/runtime": "^7.21.0" - }, - "engines": { - "node": ">=0.11" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/date-fns" - } + "node_modules/dayjs": { + "version": "1.11.12", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.12.tgz", + "integrity": "sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg==" }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", "dependencies": { "ms": "2.1.2" }, @@ -4034,6 +4278,30 @@ } } }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "optional": true, + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "optional": true, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -4049,6 +4317,22 @@ "node": ">=0.10.0" } }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/degenerator": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", @@ -4200,16 +4484,21 @@ } }, "node_modules/dotenv": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", - "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "engines": { "node": ">=12" }, "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" + "url": "https://dotenvx.com" } }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + }, "node_modules/ecdsa-sig-formatter": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", @@ -4246,14 +4535,37 @@ } }, "node_modules/encoding-japanese": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.0.0.tgz", - "integrity": "sha512-++P0RhebUC8MJAwJOsT93dT+5oc5oPImp1HubZpAuCZ5kTLnhuuBhKHj2jJeO/Gj93idPBWmIuQ9QWMe5rX3pQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.1.0.tgz", + "integrity": "sha512-58XySVxUgVlBikBTbQ8WdDxBDHIdXucB16LO5PBHR8t75D54wQrNo4cg+58+R1CtJfKnsVsvt9XlteRaR8xw1w==", "optional": true, "engines": { "node": ">=8.10.0" } }, + "node_modules/encoding-sniffer": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.0.tgz", + "integrity": "sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg==", + "dependencies": { + "iconv-lite": "^0.6.3", + "whatwg-encoding": "^3.1.1" + }, + "funding": { + "url": "https://github.com/fb55/encoding-sniffer?sponsor=1" + } + }, + "node_modules/encoding-sniffer/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/encoding/node_modules/iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", @@ -4270,7 +4582,7 @@ "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, + "devOptional": true, "dependencies": { "once": "^1.4.0" } @@ -4312,10 +4624,29 @@ "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", "optional": true }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "engines": { "node": ">=6" } @@ -4357,25 +4688,17 @@ "source-map": "~0.6.1" } }, - "node_modules/escodegen/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, "node_modules/eslint": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", - "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.56.0", - "@humanwhocodes/config-array": "^0.11.13", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -4420,6 +4743,22 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", @@ -4448,29 +4787,14 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, "node_modules/eslint/node_modules/json-schema-traverse": { @@ -4479,6 +4803,18 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", @@ -4509,9 +4845,9 @@ } }, "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, "dependencies": { "estraverse": "^5.1.0" @@ -4520,15 +4856,6 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -4541,20 +4868,10 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { + "node_modules/estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "optional": true, "engines": { "node": ">=4.0" } @@ -4599,12 +4916,9 @@ } }, "node_modules/exif-be-gone": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/exif-be-gone/-/exif-be-gone-1.3.2.tgz", - "integrity": "sha512-jVkZWBJNw1SrAzrZ99/ePYx6FqfN6t/+y1xnCAnV5wCcASLBr548OvABfp1WSZGffz31+6DNy0W4ZZSBjs6dJw==", - "dependencies": { - "@types/stream-buffers": "^3.0.3" - }, + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/exif-be-gone/-/exif-be-gone-1.5.1.tgz", + "integrity": "sha512-+fV9PoomNVR5Hmp0n1c0ZVl78/GaFrpnC0t7q4F9Aey8NcL+7Lutcez8KY2Ni30NWpvgLXawqiRFFwtdo4QgFg==", "bin": { "exif-be-gone": "cli.js" } @@ -4615,17 +4929,26 @@ "integrity": "sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==", "optional": true }, + "node_modules/expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "optional": true, + "engines": { + "node": ">=6" + } + }, "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", + "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.1", + "body-parser": "1.20.2", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.5.0", + "cookie": "0.6.0", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", @@ -4664,10 +4987,33 @@ "express": "^4.16.2" } }, + "node_modules/express/node_modules/body-parser": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", + "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, "node_modules/express/node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", "engines": { "node": ">= 0.6" } @@ -4685,6 +5031,20 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, + "node_modules/express/node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/express/node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -4710,9 +5070,9 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -4756,17 +5116,17 @@ "optional": true }, "node_modules/fast-xml-parser": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", - "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", + "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, { "type": "github", "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" } ], "dependencies": { @@ -4786,26 +5146,27 @@ } }, "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dev": true, "dependencies": { "reusify": "^1.0.4" } }, "node_modules/fido2-lib": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/fido2-lib/-/fido2-lib-3.4.1.tgz", - "integrity": "sha512-efNrRbckp48AW7Q43o6gcp8/wnoBM7hwKikQntdiR2/NqVMPaCXFQs8kJ9wQqfv5V3PxZdg4kD9DpxdqYl6jxQ==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/fido2-lib/-/fido2-lib-3.5.3.tgz", + "integrity": "sha512-IwDuTvCcTpD6rhZkCr1MTp5oZkLUanuWr9xoSvLgc33VdFHl/hc/hkh9L/YzejoY18tP6mkXRkDWfFQMJ69ZfQ==", "dependencies": { - "@hexagon/base64": "~1.1.26", - "@peculiar/webcrypto": "~1.4.3", + "@hexagon/base64": "~1.1.28", + "@peculiar/webcrypto": "~1.4.5", "asn1js": "~3.0.2", - "cbor-x": "~1.5.3", - "jose": "^4.14.4", + "cbor-x": "~1.5.8", + "jose": "^4.15.5", "pkijs": "~3.0.15", - "tldts": "~6.0.5" + "punycode.js": "^2.3.1", + "tldts": "~6.1.11" }, "engines": { "node": ">=10" @@ -4846,9 +5207,9 @@ "optional": true }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -4904,12 +5265,13 @@ } }, "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "dependencies": { - "flatted": "^3.1.0", + "flatted": "^3.2.9", + "keyv": "^4.5.3", "rimraf": "^3.0.2" }, "engines": { @@ -4917,15 +5279,15 @@ } }, "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", @@ -4942,6 +5304,32 @@ } } }, + "node_modules/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -4986,17 +5374,23 @@ "node": ">= 0.6" } }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "optional": true + }, "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", "dependencies": { "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">=14.14" } }, "node_modules/fs-minipass": { @@ -5029,14 +5423,18 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/gauge": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "deprecated": "This package is no longer supported.", "dependencies": { "aproba": "^1.0.3 || ^2.0.0", "color-support": "^1.1.2", @@ -5061,14 +5459,18 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5090,14 +5492,14 @@ } }, "node_modules/get-uri": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.1.tgz", - "integrity": "sha512-7ZqONUVqaabogsYNWlYj0t3YZaL6dhuEueZXGF+/YVmf6dHmaFg8/6psJKqhx9QykIDKzpGcy2cn4oV4YC7V/Q==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.3.tgz", + "integrity": "sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==", "dependencies": { "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^5.0.1", + "data-uri-to-buffer": "^6.0.2", "debug": "^4.3.4", - "fs-extra": "^8.1.0" + "fs-extra": "^11.2.0" }, "engines": { "node": ">= 14" @@ -5113,10 +5515,17 @@ "omggif": "^1.0.10" } }, + "node_modules/github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "optional": true + }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -5144,6 +5553,26 @@ "node": ">=10.13.0" } }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/global": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", @@ -5189,6 +5618,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -5200,17 +5640,6 @@ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -5219,10 +5648,21 @@ "node": ">=8" } }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", "engines": { "node": ">= 0.4" }, @@ -5246,6 +5686,17 @@ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/helmet": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", @@ -5272,9 +5723,9 @@ } }, "node_modules/htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.1.0.tgz", + "integrity": "sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -5285,8 +5736,8 @@ "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" + "domutils": "^3.1.0", + "entities": "^4.5.0" } }, "node_modules/http-cache-semantics": { @@ -5311,9 +5762,9 @@ } }, "node_modules/http-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", - "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" @@ -5323,9 +5774,9 @@ } }, "node_modules/http-proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", - "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dependencies": { "debug": "^4.3.4" }, @@ -5401,14 +5852,14 @@ } }, "node_modules/i18next-fs-backend": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/i18next-fs-backend/-/i18next-fs-backend-2.1.5.tgz", - "integrity": "sha512-7fgSH8nVhXSBYPHR/W3tEXXhcnwHwNiND4Dfx9knzPzdsWTUTL/TdDVV+DY0dL0asHKLbdoJaXS4LdVW6R8MVQ==" + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/i18next-fs-backend/-/i18next-fs-backend-2.3.2.tgz", + "integrity": "sha512-LIwUlkqDZnUI8lnUxBnEj8K/FrHQTT/Sc+1rvDm9E8YvvY5YxzoEAASNx+W5M9DfD5s77lI5vSAFWeTp26B/3Q==" }, "node_modules/i18next-http-middleware": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/i18next-http-middleware/-/i18next-http-middleware-3.3.2.tgz", - "integrity": "sha512-PSeLXQXr9Qiv9Q3GCWCoIJenKVbxCcVsXb7VMp/mOprV4gu+AMJT7VHw4+QEf6oYW6GU31QSLnfDpLNoSMtx3g==" + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/i18next-http-middleware/-/i18next-http-middleware-3.6.0.tgz", + "integrity": "sha512-pLyTOC8Dzj83byN0s4hd/i/Ewg6T36YjMrc+Zfnqz2Ca0G5ab9IPvPR8xZqr6TS0s/ZtPs2MZucDkWgqoRmNXA==" }, "node_modules/iconv-lite": { "version": "0.4.24", @@ -5441,9 +5892,9 @@ ] }, "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, "engines": { "node": ">= 4" @@ -5465,9 +5916,9 @@ "optional": true }, "node_modules/image-size": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz", - "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.1.1.tgz", + "integrity": "sha512-541xKlUw6jr/6gGuk92F+mYM5zaFAc5ahphvkqvNe2bQ6gVBkd6bfrmVJ2t4KDAfikAYZyIqTnktX3i6/aQDrQ==", "dependencies": { "queue": "6.0.2" }, @@ -5475,7 +5926,7 @@ "image-size": "bin/image-size.js" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.x" } }, "node_modules/immediate": { @@ -5527,6 +5978,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -5537,10 +5989,29 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "optional": true + }, "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==", + "optional": true + }, + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } }, "node_modules/ipaddr.js": { "version": "1.9.1", @@ -5629,8 +6100,7 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "devOptional": true + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/isomorphic-fetch": { "version": "3.0.0", @@ -5642,6 +6112,20 @@ "whatwg-fetch": "^3.4.1" } }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/jimp": { "version": "0.22.12", "resolved": "https://registry.npmjs.org/jimp/-/jimp-0.22.12.tgz", @@ -5661,9 +6145,9 @@ "optional": true }, "node_modules/jose": { - "version": "4.14.4", - "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.4.tgz", - "integrity": "sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==", + "version": "4.15.9", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.9.tgz", + "integrity": "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==", "funding": { "url": "https://github.com/sponsors/panva" } @@ -5686,6 +6170,11 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" + }, "node_modules/json-bigint": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", @@ -5694,17 +6183,29 @@ "bignumber.js": "^9.0.0" } }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, "node_modules/json-stable-stringify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz", - "integrity": "sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz", + "integrity": "sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==", "dependencies": { - "jsonify": "^0.0.1" + "call-bind": "^1.0.5", + "isarray": "^2.0.5", + "jsonify": "^0.0.1", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5716,10 +6217,18 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, + "node_modules/json-stable-stringify/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + }, "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -5733,14 +6242,20 @@ } }, "node_modules/jsonwebtoken": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.1.tgz", - "integrity": "sha512-K8wx7eJ5TPvEjuiVSkv167EVboBDv9PZdDoF7BgeQnBLVvZWW9clr2PsQHVJDTKaEIH5JBIwHujGcHp7GgI2eg==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", "dependencies": { "jws": "^3.2.2", - "lodash": "^4.17.21", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", "ms": "^2.1.1", - "semver": "^7.3.8" + "semver": "^7.5.4" }, "engines": { "node": ">=12", @@ -5766,6 +6281,15 @@ "safe-buffer": "^5.0.1" } }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, "node_modules/lambert-server": { "version": "1.2.12", "resolved": "https://registry.npmjs.org/lambert-server/-/lambert-server-1.2.12.tgz", @@ -5793,21 +6317,21 @@ } }, "node_modules/libbase64": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.2.1.tgz", - "integrity": "sha512-l+nePcPbIG1fNlqMzrh68MLkX/gTxk/+vdvAb388Ssi7UuUN31MI44w4Yf33mM3Cm4xDfw48mdf3rkdHszLNew==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.3.0.tgz", + "integrity": "sha512-GgOXd0Eo6phYgh0DJtjQ2tO8dc0IVINtZJeARPeiIJqge+HdsWSuaDTe8ztQ7j/cONByDZ3zeB325AHiv5O0dg==", "optional": true }, "node_modules/libmime": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.2.1.tgz", - "integrity": "sha512-A0z9O4+5q+ZTj7QwNe/Juy1KARNb4WaviO4mYeFC4b8dBT2EEqK2pkM+GC8MVnkOjqhl5nYQxRgnPYRRTNmuSQ==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.5.tgz", + "integrity": "sha512-nSlR1yRZ43L3cZCiWEw7ali3jY29Hz9CQQ96Oy+sSspYnIP5N54ucOPHqooBsXzwrX1pwn13VUE05q4WmzfaLg==", "optional": true, "dependencies": { - "encoding-japanese": "2.0.0", + "encoding-japanese": "2.1.0", "iconv-lite": "0.6.3", - "libbase64": "1.2.1", - "libqp": "2.0.1" + "libbase64": "1.3.0", + "libqp": "2.1.0" } }, "node_modules/libmime/node_modules/iconv-lite": { @@ -5823,9 +6347,9 @@ } }, "node_modules/libqp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/libqp/-/libqp-2.0.1.tgz", - "integrity": "sha512-Ka0eC5LkF3IPNQHJmYBWljJsw0UvM6j+QdKRbWyCdTmYwvIDE6a7bCm0UkTAL/K+3KXK5qXT/ClcInU01OpdLg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/libqp/-/libqp-2.1.0.tgz", + "integrity": "sha512-O6O6/fsG5jiUVbvdgT7YX3xY3uIadR6wEZ7+vy9u7PKHAlSEB6blvC1o5pHBjgsi95Uo0aiBBdkyFecj6jtb7A==", "optional": true }, "node_modules/lie": { @@ -5837,9 +6361,9 @@ } }, "node_modules/load-bmfont": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.1.tgz", - "integrity": "sha512-8UyQoYmdRDy81Brz6aLAUhfZLwr5zV0L3taTQ4hju7m6biuwiWiJXjPhBJxbUQJA8PrkvJ/7Enqmwk2sM14soA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.2.tgz", + "integrity": "sha512-qElWkmjW9Oq1F9EI5Gt7aD9zcdHb9spJCW1L/dmPf7KzCCEJxq8nhHz5eCgI9aMf7vrG/wyaCqdsI+Iy9ZTlog==", "optional": true, "dependencies": { "buffer-equal": "0.0.1", @@ -5847,7 +6371,7 @@ "parse-bmfont-ascii": "^1.0.3", "parse-bmfont-binary": "^1.0.5", "parse-bmfont-xml": "^1.1.4", - "phin": "^2.9.1", + "phin": "^3.7.1", "xhr": "^2.0.1", "xtend": "^4.0.0" } @@ -5875,20 +6399,45 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==" }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" }, - "node_modules/lru_map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", - "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==" + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" }, "node_modules/lru-cache": { "version": "7.18.3", @@ -6040,12 +6589,12 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dev": true, "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -6091,6 +6640,18 @@ "node": ">=6" } }, + "node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/min-document": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", @@ -6101,14 +6662,18 @@ } }, "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.1" }, "engines": { - "node": "*" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/minimist": { @@ -6223,6 +6788,12 @@ "mkdirp": "bin/cmd.js" } }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "optional": true + }, "node_modules/module-alias": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/module-alias/-/module-alias-2.2.3.tgz", @@ -6298,22 +6869,6 @@ "node": ">= 6.0.0" } }, - "node_modules/multimatch": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-4.0.0.tgz", - "integrity": "sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==", - "dev": true, - "dependencies": { - "@types/minimatch": "^3.0.3", - "array-differ": "^3.0.0", - "array-union": "^2.1.0", - "arrify": "^2.0.1", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/murmurhash-js": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz", @@ -6384,9 +6939,15 @@ } }, "node_modules/nan": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", - "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==", + "version": "2.20.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.20.0.tgz", + "integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw==", + "optional": true + }, + "node_modules/napi-build-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", + "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", "optional": true }, "node_modules/natural-compare": { @@ -6446,15 +7007,27 @@ "tslib": "^2.1.0" } }, + "node_modules/node-abi": { + "version": "3.65.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.65.0.tgz", + "integrity": "sha512-ThjYBfoDNr08AWx6hGaRbfPwxKV9kVzAzOzlLKbk2CuqXE2xnCh+cbAGnwM3t8Lq4v9rUB7VfondlkBckcJrVA==", + "optional": true, + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/node-addon-api": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" }, "node_modules/node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -6495,10 +7068,13 @@ } }, "node_modules/node-gyp-build-optional-packages": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.3.tgz", - "integrity": "sha512-k75jcVzk5wnnc/FMxsf4udAoTEUv2jY3ycfdSd3yWu6Cnd1oee6/CfZJApyscA4FJOmdoixWwiwOyf16RzD5JA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.1.1.tgz", + "integrity": "sha512-+P72GAjVAbTxjjwUmwjVrqrdZROD4nf8KgpBoDxqXXTiYZZt/ud60dE5yvCSr9lRO8e8yv6kgJIC0K0PfZFVQw==", "optional": true, + "dependencies": { + "detect-libc": "^2.0.1" + }, "bin": { "node-gyp-build-optional-packages": "bin.js", "node-gyp-build-optional-packages-optional": "optional.js", @@ -6509,6 +7085,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "deprecated": "This package is no longer supported.", "optional": true, "dependencies": { "delegates": "^1.0.0", @@ -6522,6 +7099,7 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "deprecated": "This package is no longer supported.", "optional": true, "dependencies": { "aproba": "^1.0.3 || ^2.0.0", @@ -6541,6 +7119,7 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "deprecated": "This package is no longer supported.", "optional": true, "dependencies": { "are-we-there-yet": "^3.0.0", @@ -6613,9 +7192,9 @@ "integrity": "sha512-fvnX9tZbR7WfCG5BAy3yO/nCLyjVWD6MghEq0z5FDfN+ZXpLWNITBdbifxQkQ25ebr16G0N7eRWJisOcMEHG3Q==" }, "node_modules/nodemailer": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.4.tgz", - "integrity": "sha512-CXjQvrQZV4+6X5wP6ZIgdehJamI63MFoYFGGPtHudWym9qaEHDNdPzaj5bfMCvxG1vhAileSWW90q7nL0N36mA==", + "version": "6.9.14", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.14.tgz", + "integrity": "sha512-Dobp/ebDKBvz91sbtRKhcznLThrKxKt97GI2FAlAyy+fk19j73Uz3sBXolVtmcXjaorivqsbbbjDY+Jkt4/bQA==", "engines": { "node": ">=6.0.0" } @@ -6654,7 +7233,6 @@ "node_modules/nodemailer-mailjet-transport": { "version": "1.0.4", "resolved": "git+ssh://git@github.com/n0script22/nodemailer-mailjet-transport.git#201cba5534a2d1f4090e88065781c4075611a63d", - "license": "MIT", "optional": true, "dependencies": { "addressparser": "^1.0.1", @@ -6680,7 +7258,6 @@ "node_modules/nodemailer-sendgrid-transport": { "version": "0.2.0", "resolved": "git+ssh://git@github.com/Maria-Golomb/nodemailer-sendgrid-transport.git#a9cee4346d10aa02988948086f3a746f8e804bc3", - "license": "MIT", "optional": true, "dependencies": { "@sendgrid/mail": "^7.4.5" @@ -6724,6 +7301,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "deprecated": "This package is no longer supported.", "dependencies": { "are-we-there-yet": "^2.0.0", "console-control-strings": "^1.1.0", @@ -6751,13 +7329,24 @@ } }, "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", + "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/omggif": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/omggif/-/omggif-1.0.10.tgz", @@ -6807,17 +7396,17 @@ } }, "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { "node": ">= 0.8.0" @@ -6878,27 +7467,27 @@ } }, "node_modules/pac-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.0.tgz", - "integrity": "sha512-t4tRAMx0uphnZrio0S0Jw9zg3oDbz1zVhQ/Vy18FjLfP1XOLNUEjaVxYCYRI6NS+BsMBXKIzV6cTLOkO9AtywA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.2.tgz", + "integrity": "sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBA+bTfxYzeKW73eHg==", "dependencies": { "@tootallnate/quickjs-emscripten": "^0.23.0", "agent-base": "^7.0.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.0", - "pac-resolver": "^7.0.0", - "socks-proxy-agent": "^8.0.1" + "https-proxy-agent": "^7.0.5", + "pac-resolver": "^7.0.1", + "socks-proxy-agent": "^8.0.4" }, "engines": { "node": ">= 14" } }, "node_modules/pac-proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", - "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dependencies": { "debug": "^4.3.4" }, @@ -6907,9 +7496,9 @@ } }, "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", - "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", + "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -6919,23 +7508,21 @@ } }, "node_modules/pac-resolver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", - "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", "dependencies": { "degenerator": "^5.0.0", - "ip": "^1.1.8", "netmask": "^2.0.2" }, "engines": { "node": ">= 14" } }, - "node_modules/packet-reader": { + "node_modules/package-json-from-dist": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", - "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==", - "optional": true + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" }, "node_modules/pako": { "version": "1.0.11", @@ -7006,6 +7593,17 @@ "url": "https://github.com/inikulin/parse5?sponsor=1" } }, + "node_modules/parse5-parser-stream": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz", + "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==", + "dependencies": { + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -7035,11 +7633,38 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, "engines": { "node": ">=8" } }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" + }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", @@ -7067,16 +7692,14 @@ } }, "node_modules/pg": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz", - "integrity": "sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g==", + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.12.0.tgz", + "integrity": "sha512-A+LHUSnwnxrnL/tZ+OLfqR1SxLN3c/pgDztZ47Rpbsd4jUytsTtwQo/TLPRzPJMp/1pbhYVhH9cuSZLAajNfjQ==", "optional": true, "dependencies": { - "buffer-writer": "2.0.0", - "packet-reader": "1.0.0", - "pg-connection-string": "^2.6.2", - "pg-pool": "^3.6.1", - "pg-protocol": "^1.6.0", + "pg-connection-string": "^2.6.4", + "pg-pool": "^3.6.2", + "pg-protocol": "^1.6.1", "pg-types": "^2.1.0", "pgpass": "1.x" }, @@ -7102,9 +7725,9 @@ "optional": true }, "node_modules/pg-connection-string": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.2.tgz", - "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.4.tgz", + "integrity": "sha512-v+Z7W/0EO707aNMaAEfiGnGL9sxxumwLl2fJvCQtMn9Fxsg+lPpPkdcyBSv/KFgpGdYkMfn+EI1Or2EHjpgLCA==", "optional": true }, "node_modules/pg-int8": { @@ -7117,18 +7740,18 @@ } }, "node_modules/pg-pool": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.1.tgz", - "integrity": "sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.2.tgz", + "integrity": "sha512-Htjbg8BlwXqSBQ9V8Vjtc+vzf/6fVUuak/3/XXKA9oxZprwW3IMDQTGHP+KDmVL7rtd+R1QjbnCFPuTHm3G4hg==", "optional": true, "peerDependencies": { "pg": ">=8.0" } }, "node_modules/pg-protocol": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.0.tgz", - "integrity": "sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.1.tgz", + "integrity": "sha512-jPIlvgoD63hrEuihvIg+tJhoGjUsLPn6poJY9N5CnlPd91c2T18T/9zBtLxZSb1EhYxBRoZJtzScCaWlYLtktg==", "optional": true }, "node_modules/pg-types": { @@ -7157,16 +7780,21 @@ } }, "node_modules/phin": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/phin/-/phin-2.9.3.tgz", - "integrity": "sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "optional": true + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/phin/-/phin-3.7.1.tgz", + "integrity": "sha512-GEazpTWwTZaEQ9RhL7Nyz0WwqilbqgLahDM3D0hxWwmVDI52nXEybHqiN6/elwpkJBhcuj+WbBu+QfT0uhPGfQ==", + "optional": true, + "dependencies": { + "centra": "^2.7.0" + }, + "engines": { + "node": ">= 8" + } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -7202,9 +7830,9 @@ } }, "node_modules/pkijs": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.0.15.tgz", - "integrity": "sha512-n7nAl9JpqdeQsjy+rPmswkmZ3oO/Fu5uN9me45PPQVdWjd0X7HKfL8+HYwfxihqoDSSPUIajkOcqFxEUxMqhwQ==", + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.0.16.tgz", + "integrity": "sha512-iDUm90wfgtfd1PDV1oEnQj/4jBIU9hCSJeV0kQKThwDpbseFxC4TdpoMYlwE9maol5u0wMGZX9cNG2h1/0Lhww==", "dependencies": { "asn1js": "^3.0.5", "bytestreamjs": "^2.0.0", @@ -7264,6 +7892,32 @@ "node": ">=0.10.0" } }, + "node_modules/prebuild-install": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz", + "integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^1.0.1", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -7289,39 +7943,27 @@ } }, "node_modules/pretty-quick": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-3.1.3.tgz", - "integrity": "sha512-kOCi2FJabvuh1as9enxYmrnBC6tVMoVOenMaBqRfsvBHB0cbpYHjdQEpSglpASDFEXVwplpcGR4CLEaisYAFcA==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-3.3.1.tgz", + "integrity": "sha512-3b36UXfYQ+IXXqex6mCca89jC8u0mYLqFAN5eTQKoXO6oCQYcIVYZEB/5AlBHI7JPYygReM2Vv6Vom/Gln7fBg==", "dev": true, "dependencies": { - "chalk": "^3.0.0", - "execa": "^4.0.0", + "execa": "^4.1.0", "find-up": "^4.1.0", - "ignore": "^5.1.4", - "mri": "^1.1.5", - "multimatch": "^4.0.0" + "ignore": "^5.3.0", + "mri": "^1.2.0", + "picocolors": "^1.0.0", + "picomatch": "^3.0.1", + "tslib": "^2.6.2" }, "bin": { - "pretty-quick": "bin/pretty-quick.js" + "pretty-quick": "dist/cli.js" }, "engines": { "node": ">=10.13" }, "peerDependencies": { - "prettier": ">=2.0.0" - } - }, - "node_modules/pretty-quick/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" + "prettier": "^2.0.0" } }, "node_modules/pretty-quick/node_modules/find-up": { @@ -7376,6 +8018,18 @@ "node": ">=8" } }, + "node_modules/pretty-quick/node_modules/picomatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz", + "integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/probe-image-size": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/probe-image-size/-/probe-image-size-7.2.3.tgz", @@ -7432,27 +8086,27 @@ } }, "node_modules/proxy-agent": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.0.tgz", - "integrity": "sha512-0LdR757eTj/JfuU7TL2YCuAZnxWXu3tkJbg4Oq3geW/qFNT/32T0sp2HnZ9O0lMR4q3vwAt0+xCA8SR0WAD0og==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.4.0.tgz", + "integrity": "sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ==", "dependencies": { "agent-base": "^7.0.2", "debug": "^4.3.4", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.0", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.3", "lru-cache": "^7.14.1", - "pac-proxy-agent": "^7.0.0", + "pac-proxy-agent": "^7.0.1", "proxy-from-env": "^1.1.0", - "socks-proxy-agent": "^8.0.1" + "socks-proxy-agent": "^8.0.2" }, "engines": { "node": ">= 14" } }, "node_modules/proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", - "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dependencies": { "debug": "^4.3.4" }, @@ -7461,9 +8115,9 @@ } }, "node_modules/proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", - "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", + "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -7481,24 +8135,32 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, + "devOptional": true, "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", "engines": { "node": ">=6" } }, "node_modules/pvtsutils": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.3.tgz", - "integrity": "sha512-6sAOMlXyrJ+8tRN5IAaYfuYZRp1C2uJ0SyDynEFxL+VY8kCRib9Lpj/+KPaNFpaQWr/iRik5nrzz6iaNlxgEGA==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.5.tgz", + "integrity": "sha512-ARvb14YB9Nm2Xi6nBq1ZX6dAM0FsJnuk+31aUp4TrcZEdKUlSqOqsxJHUPJDNE3qiIp+iUPEIeR6Je/tgV7zsA==", "dependencies": { "tslib": "^2.6.1" } @@ -7580,6 +8242,30 @@ "node": ">= 0.8" } }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "optional": true, + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/rc/node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/readable-stream": { "version": "1.1.14", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", @@ -7647,14 +8333,14 @@ } }, "node_modules/reflect-metadata": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", - "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.14.tgz", + "integrity": "sha512-ZhYeb6nRaXCfhnndflDK8qI6ZQ/YcWZCISRAWICW9XYqMUwjZM9Z0DveWX/ABN01oxSHwVxKQmxeYZSsm0jh5A==" }, "node_modules/regenerator-runtime": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", - "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==" + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" }, "node_modules/require-directory": { "version": "2.1.1", @@ -7709,6 +8395,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dependencies": { "glob": "^7.1.3" }, @@ -7753,14 +8440,14 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" }, "node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "bin": { "semver": "bin/semver.js" }, @@ -7828,6 +8515,22 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", @@ -7849,7 +8552,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -7861,19 +8563,22 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, "engines": { "node": ">=8" } }, "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -7884,6 +8589,51 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/simple-get": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true, + "dependencies": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -7903,35 +8653,35 @@ } }, "node_modules/socks": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", - "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", + "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", "dependencies": { - "ip": "^2.0.0", + "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" }, "engines": { - "node": ">= 10.13.0", + "node": ">= 10.0.0", "npm": ">= 3.0.0" } }, "node_modules/socks-proxy-agent": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.1.tgz", - "integrity": "sha512-59EjPbbgg8U3x62hhKOFVAmySQUcfRQ4C7Q/D5sEHnZTQRrQlNKINks44DMR1gwXp0p4LaVIeccX2KHTTcHVqQ==", + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz", + "integrity": "sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw==", "dependencies": { - "agent-base": "^7.0.1", + "agent-base": "^7.1.1", "debug": "^4.3.4", - "socks": "^2.7.1" + "socks": "^2.8.3" }, "engines": { "node": ">= 14" } }, "node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", - "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", "dependencies": { "debug": "^4.3.4" }, @@ -7939,11 +8689,6 @@ "node": ">= 14" } }, - "node_modules/socks/node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -7970,15 +8715,21 @@ "node": ">= 10.x" } }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" + }, "node_modules/sqlite3": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.6.tgz", - "integrity": "sha512-olYkWoKFVNSSSQNvxVUfjiVbz3YtBwTJj+mfV5zpHmqW3sELx2Cf4QCdirMelhM5Zh+KDVaKgQHqCxrqiWHybw==", + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.7.tgz", + "integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==", "hasInstallScript": true, "optional": true, "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.0", - "node-addon-api": "^4.2.0", + "bindings": "^1.5.0", + "node-addon-api": "^7.0.0", + "prebuild-install": "^7.1.1", "tar": "^6.1.11" }, "optionalDependencies": { @@ -7994,9 +8745,9 @@ } }, "node_modules/sqlite3/node_modules/node-addon-api": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", - "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", "optional": true }, "node_modules/sqlstring": { @@ -8075,6 +8826,20 @@ "node": ">=8" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -8086,6 +8851,18 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", @@ -8129,9 +8906,10 @@ } }, "node_modules/superagent": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-7.1.5.tgz", - "integrity": "sha512-HQYyGuDRFGmZ6GNC4hq2f37KnsY9Lr0/R1marNZTgMweVDQLTLJJ6DGQ9Tj/xVVs5HEnop9EMmTbywb5P30aqw==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-7.1.6.tgz", + "integrity": "sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==", + "deprecated": "Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net", "optional": true, "dependencies": { "component-emitter": "^1.3.0", @@ -8141,7 +8919,7 @@ "form-data": "^4.0.0", "formidable": "^2.0.1", "methods": "^1.1.2", - "mime": "^2.5.0", + "mime": "2.6.0", "qs": "^6.10.3", "readable-stream": "^3.6.0", "semver": "^7.3.7" @@ -8212,6 +8990,15 @@ "source-map": "~0.6.1" } }, + "node_modules/superagent-proxy/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "optional": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/superagent-proxy/node_modules/file-uri-to-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz", @@ -8221,6 +9008,20 @@ "node": ">= 6" } }, + "node_modules/superagent-proxy/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "optional": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, "node_modules/superagent-proxy/node_modules/get-uri": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-3.0.2.tgz", @@ -8252,6 +9053,15 @@ "node": ">= 6" } }, + "node_modules/superagent-proxy/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optional": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/superagent-proxy/node_modules/levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", @@ -8379,6 +9189,15 @@ "node": ">= 0.8.0" } }, + "node_modules/superagent-proxy/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "optional": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/superagent-proxy/node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -8452,9 +9271,9 @@ } }, "node_modules/tar": { - "version": "6.1.15", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz", - "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -8467,6 +9286,83 @@ "node": ">=10" } }, + "node_modules/tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "optional": true, + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-fs/node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "optional": true + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "optional": true, + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "optional": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/tar-stream/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/tar-stream/node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "optional": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/tar/node_modules/minipass": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", @@ -8532,20 +9428,20 @@ "optional": true }, "node_modules/tldts": { - "version": "6.0.14", - "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.0.14.tgz", - "integrity": "sha512-mYU7xwVGfiiC4lkWr4h3Q6U4kfAq3aWP1KsJZyRlVVeDQ3ZSBLmE20543dWSqI0U799PNzhpHObex5n60TeBGw==", + "version": "6.1.39", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.39.tgz", + "integrity": "sha512-UCGXcPhYIUELc+FifEeDXYkoTWNU6iOEdM/Q5LsvkTz2SnpQ3q5onA+DiiZlR5YDskMhfK1YBQDeWL7PH9/miQ==", "dependencies": { - "tldts-core": "^6.0.14" + "tldts-core": "^6.1.39" }, "bin": { "tldts": "bin/cli.js" } }, "node_modules/tldts-core": { - "version": "6.0.14", - "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.0.14.tgz", - "integrity": "sha512-ESYhU/bgs6jiHlnl5h029f+0dB7EKRiTaxM/jHLZ6powScbmsgsrFcFjmyrjDgCvI/BRY79TEBBClmqLNEPyjQ==" + "version": "6.1.39", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.39.tgz", + "integrity": "sha512-+Qib8VaRq6F56UjP4CJXd30PI4s3hFumDywUlsbiEWoA8+lfAaWNTLr3e6/zZOgHzVyon4snHaybeFHd8C0j/A==" }, "node_modules/to-regex-range": { "version": "5.0.1", @@ -8589,9 +9485,9 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/ts-api-utils": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz", - "integrity": "sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", "dev": true, "engines": { "node": ">=16" @@ -8601,9 +9497,9 @@ } }, "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -8643,9 +9539,21 @@ } }, "node_modules/tslib": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", - "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==" + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "optional": true, + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } }, "node_modules/type-check": { "version": "0.4.0", @@ -8689,21 +9597,21 @@ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" }, "node_modules/typeorm": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.17.tgz", - "integrity": "sha512-UDjUEwIQalO9tWw9O2A4GU+sT3oyoUXheHJy4ft+RFdnRdQctdQ34L9SqE2p7LdwzafHx1maxT+bqXON+Qnmig==", + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.20.tgz", + "integrity": "sha512-sJ0T08dV5eoZroaq9uPKBoNcGslHBR4E4y+EBHs//SiGbblGe7IeduP/IH4ddCcj0qp3PHwDwGnuvqEAnKlq/Q==", "dependencies": { "@sqltools/formatter": "^1.2.5", "app-root-path": "^3.1.0", "buffer": "^6.0.3", "chalk": "^4.1.2", "cli-highlight": "^2.1.11", - "date-fns": "^2.29.3", + "dayjs": "^1.11.9", "debug": "^4.3.4", "dotenv": "^16.0.3", - "glob": "^8.1.0", + "glob": "^10.3.10", "mkdirp": "^2.1.3", - "reflect-metadata": "^0.1.13", + "reflect-metadata": "^0.2.1", "sha.js": "^2.4.11", "tslib": "^2.5.0", "uuid": "^9.0.0", @@ -8715,7 +9623,7 @@ "typeorm-ts-node-esm": "cli-ts-node-esm.js" }, "engines": { - "node": ">= 12.9.0" + "node": ">=16.13.0" }, "funding": { "url": "https://opencollective.com/typeorm" @@ -8723,13 +9631,13 @@ "peerDependencies": { "@google-cloud/spanner": "^5.18.0", "@sap/hana-client": "^2.12.25", - "better-sqlite3": "^7.1.2 || ^8.0.0", + "better-sqlite3": "^7.1.2 || ^8.0.0 || ^9.0.0", "hdb-pool": "^0.1.6", "ioredis": "^5.0.4", - "mongodb": "^5.2.0", - "mssql": "^9.1.1", + "mongodb": "^5.8.0", + "mssql": "^9.1.1 || ^10.0.1", "mysql2": "^2.2.5 || ^3.0.1", - "oracledb": "^5.1.0", + "oracledb": "^6.3.0", "pg": "^8.5.1", "pg-native": "^3.0.0", "pg-query-stream": "^4.0.0", @@ -8793,41 +9701,68 @@ } } }, - "node_modules/typeorm/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "node_modules/typeorm/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "dependencies": { - "balanced-match": "^1.0.0" + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" } }, "node_modules/typeorm/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, - "engines": { - "node": ">=12" + "bin": { + "glob": "dist/esm/bin.mjs" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/typeorm/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typeorm/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "engines": { + "node": ">=16 || 14 >=14.17" } }, "node_modules/typeorm/node_modules/mkdirp": { @@ -8844,13 +9779,10 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/typeorm/node_modules/uuid": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", - "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", - "bin": { - "uuid": "dist/bin/uuid" - } + "node_modules/typeorm/node_modules/reflect-metadata": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==" }, "node_modules/typescript": { "version": "4.9.5", @@ -8882,9 +9814,9 @@ } }, "node_modules/typescript-json-schema/node_modules/@types/node": { - "version": "14.18.54", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.54.tgz", - "integrity": "sha512-uq7O52wvo2Lggsx1x21tKZgqkJpvwCseBBPtX/nKQfpVlEsLOb11zZ1CRsWUKvJF0+lzuA9jwvA7Pr2Wt7i3xw==" + "version": "14.18.63", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", + "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" }, "node_modules/typescript-json-schema/node_modules/cliui": { "version": "7.0.4", @@ -8958,6 +9890,19 @@ "node": ">=10" } }, + "node_modules/undici": { + "version": "6.19.7", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.19.7.tgz", + "integrity": "sha512-HR3W/bMGPSr90i8AAp2C4DM3wChFdJPLrWYpIS++LxS8K+W535qftjt+4MyjNYHeWabMj1nvtmLIi7l++iq91A==", + "engines": { + "node": ">=18.17" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/unique-filename": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", @@ -8977,11 +9922,11 @@ } }, "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "engines": { - "node": ">= 4.0.0" + "node": ">= 10.0.0" } }, "node_modules/unpipe": { @@ -9038,9 +9983,13 @@ } }, "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } @@ -9076,15 +10025,15 @@ } }, "node_modules/webcrypto-core": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.7.7.tgz", - "integrity": "sha512-7FjigXNsBfopEj+5DV2nhNpfic2vumtjjgPmeDKk45z+MJwXKKfhPB7118Pfzrmh4jqOMST6Ch37iPAHoImg5g==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.8.0.tgz", + "integrity": "sha512-kR1UQNH8MD42CYuLzvibfakG5Ew5seG85dMMoAM/1LqvckxaF6pUiidLuraIu4V+YCIFabYecUZAW0TuxAoaqw==", "dependencies": { - "@peculiar/asn1-schema": "^2.3.6", + "@peculiar/asn1-schema": "^2.3.8", "@peculiar/json-schema": "^1.1.12", "asn1js": "^3.0.1", - "pvtsutils": "^1.3.2", - "tslib": "^2.4.0" + "pvtsutils": "^1.3.5", + "tslib": "^2.6.2" } }, "node_modules/webidl-conversions": { @@ -9092,12 +10041,42 @@ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, + "node_modules/whatwg-encoding": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", + "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/whatwg-encoding/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/whatwg-fetch": { "version": "3.6.20", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.20.tgz", "integrity": "sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==", "optional": true }, + "node_modules/whatwg-mimetype": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", + "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", + "engines": { + "node": ">=18" + } + }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", @@ -9111,7 +10090,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "devOptional": true, "dependencies": { "isexe": "^2.0.0" }, @@ -9134,7 +10112,7 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "optional": true, + "devOptional": true, "engines": { "node": ">=0.10.0" } @@ -9155,23 +10133,40 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/wretch": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/wretch/-/wretch-2.6.0.tgz", - "integrity": "sha512-7A4TFHSX+cpxxO6Hd4f0ZE9f8wAgO9wRqX3JeOAtHlJy+kdYP+oPjkF1LYmnTSiTMhODR2YWOdMEc4hCCXEw2w==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/wretch/-/wretch-2.9.0.tgz", + "integrity": "sha512-kKp1xWQO+Vh9I6RJq7Yers2KKrmF7LXB00c9knMDn3IdB7etcQOarrsHArpj1sZ1Dlav8ss6R1DuUpDSTqmQew==", "engines": { "node": ">=14" } }, "node_modules/ws": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", - "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "engines": { "node": ">=10.0.0" }, diff --git a/package.json b/package.json index 7f466e44..e95d6253 100644 --- a/package.json +++ b/package.json @@ -59,14 +59,14 @@ "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "eslint": "^8.56.0", - "express": "^4.18.2", + "express": "^4.19.2", "husky": "^8.0.3", "prettier": "^2.8.8", "pretty-quick": "^3.1.3", "typescript": "^4.9.5" }, "dependencies": { - "@aws-sdk/client-s3": "^3.385.0", + "@aws-sdk/client-s3": "^3.629.0", "@sentry/integrations": "^7.66.0", "@sentry/node": "^7.66.0", "ajv": "8.6.2", @@ -97,7 +97,7 @@ "node-2fa": "^2.0.3", "node-fetch": "^2.6.12", "node-os-utils": "^1.3.7", - "nodemailer": "^6.9.4", + "nodemailer": "^6.9.14", "picocolors": "^1.0.0", "probe-image-size": "^7.2.3", "proxy-agent": "^6.3.0", @@ -107,7 +107,7 @@ "typeorm": "^0.3.17", "typescript-json-schema": "^0.50.1", "wretch": "^2.6.0", - "ws": "^8.13.0" + "ws": "^8.17.1" }, "_moduleAliases": { "@spacebar/api": "dist/api", diff --git a/patches/express+4.18.2.patch b/patches/express+4.19.2.patch similarity index 78% rename from patches/express+4.18.2.patch rename to patches/express+4.19.2.patch index de52db60..c69be207 100644 --- a/patches/express+4.18.2.patch +++ b/patches/express+4.19.2.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/express/lib/response.js b/node_modules/express/lib/response.js -index fede486..e3d868e 100644 +index dd7b3c8..a339896 100644 --- a/node_modules/express/lib/response.js +++ b/node_modules/express/lib/response.js @@ -27,7 +27,6 @@ var merge = require('utils-merge'); @@ -10,21 +10,15 @@ index fede486..e3d868e 100644 var cookie = require('cookie'); var send = require('send'); var extname = path.extname; -@@ -49,13 +48,6 @@ var res = Object.create(http.ServerResponse.prototype) +@@ -54,7 +53,6 @@ module.exports = res + * @private + */ - module.exports = res - --/** -- * Module variables. -- * @private -- */ -- -var charsetRegExp = /;\s*charset\s*=/; -- + var schemaAndHostRegExp = /^(?:[a-zA-Z][a-zA-Z0-9+.-]*:)?\/\/[^\\\/\?]+/; + /** - * Set status `code`. - * -@@ -164,17 +156,6 @@ res.send = function send(body) { +@@ -165,16 +163,6 @@ res.send = function send(body) { break; } @@ -38,11 +32,10 @@ index fede486..e3d868e 100644 - this.set('Content-Type', setCharset(type, 'utf-8')); - } - } -- + // determine if ETag should be generated var etagFn = app.get('etag fn') - var generateETag = !this.get('ETag') && typeof etagFn === 'function' -@@ -780,17 +761,6 @@ res.header = function header(field, val) { +@@ -781,17 +769,6 @@ res.header = function header(field, val) { ? val.map(String) : String(val); diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index 9e41b453..a6cad51c 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -16,8 +16,8 @@ along with this program. If not, see . */ -import { checkToken, Rights } from "@spacebar/util"; import * as Sentry from "@sentry/node"; +import { checkToken, Rights } from "@spacebar/util"; import { NextFunction, Request, Response } from "express"; import { HTTPError } from "lambert-server"; @@ -32,7 +32,7 @@ export const NO_AUTHORIZATION_ROUTES = [ "/auth/forgot", "/auth/reset", // Routes with a seperate auth system - "/webhooks/", + /\/webhooks\/\d+\/\w+\/?/, // no token requires auth // Public information endpoints "/ping", "/gateway", diff --git a/src/api/routes/applications/#id/bot/index.ts b/src/api/routes/applications/#id/bot/index.ts index 3c431e3d..af754106 100644 --- a/src/api/routes/applications/#id/bot/index.ts +++ b/src/api/routes/applications/#id/bot/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -57,7 +57,7 @@ router.post( res.send({ token: await generateToken(user.id), - }).status(204); + }); }, ); diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts index c2222b0a..4792c534 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts @@ -331,4 +331,74 @@ router.delete( }, ); +router.delete( + "/:emoji/:burst/:user_id", + route({ + responses: { + 204: {}, + 400: { + body: "APIErrorResponse", + }, + 404: {}, + 403: {}, + }, + }), + async (req: Request, res: Response) => { + let { user_id } = req.params; + const { message_id, channel_id } = req.params; + + const emoji = getEmoji(req.params.emoji); + + const channel = await Channel.findOneOrFail({ + where: { id: channel_id }, + }); + const message = await Message.findOneOrFail({ + where: { id: message_id, channel_id }, + }); + + if (user_id === "@me") user_id = req.user_id; + else { + const permissions = await getPermission( + req.user_id, + undefined, + channel_id, + ); + permissions.hasThrow("MANAGE_MESSAGES"); + } + + const already_added = message.reactions.find( + (x) => + (x.emoji.id === emoji.id && emoji.id) || + x.emoji.name === emoji.name, + ); + if (!already_added || !already_added.user_ids.includes(user_id)) + throw new HTTPError("Reaction not found", 404); + + already_added.count--; + + if (already_added.count <= 0) message.reactions.remove(already_added); + else + already_added.user_ids.splice( + already_added.user_ids.indexOf(user_id), + 1, + ); + + await message.save(); + + await emitEvent({ + event: "MESSAGE_REACTION_REMOVE", + channel_id, + data: { + user_id: req.user_id, + channel_id, + message_id, + guild_id: channel.guild_id, + emoji, + }, + } as MessageReactionRemoveEvent); + + res.sendStatus(204); + }, +); + export default router; diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 645c6db2..521ab7a1 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -130,30 +130,45 @@ router.get( query.take = Math.floor(limit / 2); if (query.take != 0) { const [right, left] = await Promise.all([ - Message.find({ ...query, where: { id: LessThan(around) } }), Message.find({ ...query, - where: { id: MoreThanOrEqual(around) }, + where: { channel_id, id: LessThan(around) }, + }), + Message.find({ + ...query, + where: { channel_id, id: MoreThanOrEqual(around) }, + order: { timestamp: "ASC" }, }), ]); left.push(...right); - messages = left; + messages = left.sort( + (a, b) => a.timestamp.getTime() - b.timestamp.getTime(), + ); } else { query.take = 1; const message = await Message.findOne({ ...query, - where: { id: around }, + where: { channel_id, id: around }, }); messages = message ? [message] : []; } } else { if (after) { if (BigInt(after) > BigInt(Snowflake.generate())) - return res.status(422); + throw new HTTPError( + "after parameter must not be greater than current time", + 422, + ); + query.where.id = MoreThan(after); + query.order = { timestamp: "ASC" }; } else if (before) { if (BigInt(before) > BigInt(Snowflake.generate())) - return res.status(422); + throw new HTTPError( + "before parameter must not be greater than current time", + 422, + ); + query.where.id = LessThan(before); } diff --git a/src/api/routes/channels/#channel_id/webhooks.ts b/src/api/routes/channels/#channel_id/webhooks.ts index d54756a1..2060760d 100644 --- a/src/api/routes/channels/#channel_id/webhooks.ts +++ b/src/api/routes/channels/#channel_id/webhooks.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -26,8 +26,8 @@ import { WebhookCreateSchema, WebhookType, handleFile, - trimSpecial, isTextChannel, + trimSpecial, } from "@spacebar/util"; import crypto from "crypto"; import { Request, Response, Router } from "express"; @@ -35,10 +35,12 @@ import { HTTPError } from "lambert-server"; const router: Router = Router(); -//TODO: implement webhooks router.get( "/", route({ + description: + "Returns a list of channel webhook objects. Requires the MANAGE_WEBHOOKS permission.", + permission: "MANAGE_WEBHOOKS", responses: { 200: { body: "APIWebhookArray", @@ -46,7 +48,32 @@ router.get( }, }), async (req: Request, res: Response) => { - res.json([]); + const { channel_id } = req.params; + const webhooks = await Webhook.find({ + where: { channel_id }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json( + webhooks.map((webhook) => ({ + ...webhook, + url: + instanceUrl + + "/webhooks/" + + webhook.id + + "/" + + webhook.token, + })), + ); }, ); @@ -89,15 +116,15 @@ router.post( if (avatar) avatar = await handleFile(`/avatars/${channel_id}`, avatar); - const hook = Webhook.create({ + const hook = await Webhook.create({ type: WebhookType.Incoming, name, avatar, guild_id: channel.guild_id, channel_id: channel.id, user_id: req.user_id, - token: crypto.randomBytes(24).toString("base64"), - }); + token: crypto.randomBytes(24).toString("base64url"), + }).save(); const user = await User.getPublicUser(req.user_id); diff --git a/src/api/routes/discovery.ts b/src/api/routes/discovery.ts index a045c191..dd3cc15d 100644 --- a/src/api/routes/discovery.ts +++ b/src/api/routes/discovery.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -39,8 +39,8 @@ router.get( const { primary_only } = req.query; const out = primary_only - ? await Categories.find() - : await Categories.find({ where: { is_primary: true } }); + ? await Categories.find({ where: { is_primary: true } }) + : await Categories.find(); res.send(out); }, diff --git a/src/api/routes/guilds/#guild_id/bulk-ban.ts b/src/api/routes/guilds/#guild_id/bulk-ban.ts index f544103a..e5f7a0d8 100644 --- a/src/api/routes/guilds/#guild_id/bulk-ban.ts +++ b/src/api/routes/guilds/#guild_id/bulk-ban.ts @@ -27,6 +27,7 @@ import { } from "@spacebar/util"; import { Request, Response, Router } from "express"; import { HTTPError } from "lambert-server"; +import { Config } from "@spacebar/util"; const router: Router = Router(); @@ -52,7 +53,8 @@ router.post( const userIds: Array = req.body.user_ids; if (!userIds) throw new HTTPError("The user_ids array is missing", 400); - if (userIds.length > 200) + + if (userIds.length > Config.get().limits.guild.maxBulkBanUsers) throw new HTTPError( "The user_ids array must be between 1 and 200 in length", 400, diff --git a/src/api/routes/guilds/#guild_id/webhooks.ts b/src/api/routes/guilds/#guild_id/webhooks.ts index d58659a4..47e19947 100644 --- a/src/api/routes/guilds/#guild_id/webhooks.ts +++ b/src/api/routes/guilds/#guild_id/webhooks.ts @@ -1,27 +1,66 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -import { Router, Response, Request } from "express"; import { route } from "@spacebar/api"; +import { Config, Webhook } from "@spacebar/util"; +import { Request, Response, Router } from "express"; const router = Router(); -//TODO: implement webhooks -router.get("/", route({}), async (req: Request, res: Response) => { - res.json([]); -}); +router.get( + "/", + route({ + description: + "Returns a list of guild webhook objects. Requires the MANAGE_WEBHOOKS permission.", + permission: "MANAGE_WEBHOOKS", + responses: { + 200: { + body: "APIWebhookArray", + }, + }, + }), + async (req: Request, res: Response) => { + const { guild_id } = req.params; + const webhooks = await Webhook.find({ + where: { guild_id }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json( + webhooks.map((webhook) => ({ + ...webhook, + url: + instanceUrl + + "/webhooks/" + + webhook.id + + "/" + + webhook.token, + })), + ); + }, +); + export default router; diff --git a/src/api/routes/read-states/ack-bulk.ts b/src/api/routes/read-states/ack-bulk.ts index 3ee25d1a..2f41937b 100644 --- a/src/api/routes/read-states/ack-bulk.ts +++ b/src/api/routes/read-states/ack-bulk.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -60,7 +60,7 @@ router.post( }), ]); - return res.status(204); + return res.sendStatus(204); }, ); diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index db0922d6..44271cad 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -19,6 +19,8 @@ import { route } from "@spacebar/api"; import { Badge, + Config, + FieldErrors, Member, PrivateUserProjection, User, @@ -136,6 +138,18 @@ router.patch( select: [...PrivateUserProjection, "data"], }); + if (body.bio) { + const { maxBio } = Config.get().limits.user; + if (body.bio.length > maxBio) { + throw FieldErrors({ + bio: { + code: "BIO_INVALID", + message: `Bio must be less than ${maxBio} in length`, + }, + }); + } + } + user.assign(body); await user.save(); diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index ad11a428..5caf0d11 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -120,7 +120,7 @@ router.patch( if (!body.password) throw FieldErrors({ password: { - message: req.t("auth:register.INVALID_PASSWORD"), + message: req.t("auth:login.INVALID_PASSWORD"), code: "INVALID_PASSWORD", }, }); @@ -160,6 +160,15 @@ router.patch( }, }); } + + if (!body.password) { + throw FieldErrors({ + password: { + message: req.t("auth:login.INVALID_PASSWORD"), + code: "INVALID_PASSWORD", + }, + }); + } } if (body.discriminator) { @@ -180,6 +189,18 @@ router.patch( } } + if (body.bio) { + const { maxBio } = Config.get().limits.user; + if (body.bio.length > maxBio) { + throw FieldErrors({ + bio: { + code: "BIO_INVALID", + message: `Bio must be less than ${maxBio} in length`, + }, + }); + } + } + user.assign(body); user.validate(); await user.save(); diff --git a/src/api/routes/users/@me/notes.ts b/src/api/routes/users/@me/notes.ts index 248e61f9..365e73b4 100644 --- a/src/api/routes/users/@me/notes.ts +++ b/src/api/routes/users/@me/notes.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -107,7 +107,7 @@ router.put( user_id: owner.id, }); - return res.status(204); + return res.sendStatus(204); }, ); diff --git a/src/api/routes/webhooks/#webhook_id/#token/index.ts b/src/api/routes/webhooks/#webhook_id/#token/index.ts new file mode 100644 index 00000000..8e0ad0dd --- /dev/null +++ b/src/api/routes/webhooks/#webhook_id/#token/index.ts @@ -0,0 +1,251 @@ +import { handleMessage, postHandleMessage, route } from "@spacebar/api"; +import { + Attachment, + Config, + DiscordApiErrors, + FieldErrors, + Message, + MessageCreateEvent, + Webhook, + WebhookExecuteSchema, + emitEvent, + uploadFile, +} from "@spacebar/util"; +import { Request, Response, Router } from "express"; +import { HTTPError } from "lambert-server"; +import multer from "multer"; +import { MoreThan } from "typeorm"; +const router = Router(); + +router.get( + "/", + route({ + description: "Returns a webhook object for the given id and token.", + responses: { + 200: { + body: "APIWebhook", + }, + 404: {}, + }, + }), + async (req: Request, res: Response) => { + const { webhook_id, token } = req.params; + const webhook = await Webhook.findOne({ + where: { + id: webhook_id, + }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + if (!webhook) { + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + } + + if (webhook.token !== token) { + throw DiscordApiErrors.INVALID_WEBHOOK_TOKEN_PROVIDED; + } + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json({ + ...webhook, + url: instanceUrl + "/webhooks/" + webhook.id + "/" + webhook.token, + }); + }, +); + +// TODO: config max upload size +const messageUpload = multer({ + limits: { + fileSize: Config.get().limits.message.maxAttachmentSize, + fields: 10, + // files: 1 + }, + storage: multer.memoryStorage(), +}); // max upload 50 mb + +// https://discord.com/developers/docs/resources/webhook#execute-webhook +// TODO: GitHub/Slack compatible hooks +router.post( + "/", + messageUpload.any(), + (req, res, next) => { + if (req.body.payload_json) { + req.body = JSON.parse(req.body.payload_json); + } + + next(); + }, + route({ + requestBody: "WebhookExecuteSchema", + query: { + wait: { + type: "boolean", + required: false, + description: + "waits for server confirmation of message send before response, and returns the created message body", + }, + thread_id: { + type: "string", + required: false, + description: + "Send a message to the specified thread within a webhook's channel.", + }, + }, + responses: { + 204: {}, + 400: { + body: "APIErrorResponse", + }, + 404: {}, + }, + }), + async (req: Request, res: Response) => { + const { wait } = req.query; + if (!wait) return res.status(204).send(); + + const { webhook_id, token } = req.params; + + const body = req.body as WebhookExecuteSchema; + const attachments: Attachment[] = []; + + // ensure one of content, embeds, components, or file is present + if ( + !body.content && + !body.embeds && + !body.components && + !body.file && + !body.attachments + ) { + throw DiscordApiErrors.CANNOT_SEND_EMPTY_MESSAGE; + } + + // block username from containing certain words + // TODO: configurable additions + const blockedContains = ["discord", "clyde", "spacebar"]; + for (const word of blockedContains) { + if (body.username?.toLowerCase().includes(word)) { + return res.status(400).json({ + username: [`Username cannot contain "${word}"`], + }); + } + } + + // block username from being certain words + // TODO: configurable additions + const blockedEquals = ["everyone", "here"]; + for (const word of blockedEquals) { + if (body.username?.toLowerCase() === word) { + return res.status(400).json({ + username: [`Username cannot be "${word}"`], + }); + } + } + + const webhook = await Webhook.findOne({ + where: { + id: webhook_id, + }, + relations: ["channel", "guild", "application"], + }); + + if (!webhook) { + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + } + + if (!webhook.channel.isWritable()) { + throw new HTTPError( + `Cannot send messages to channel of type ${webhook.channel.type}`, + 400, + ); + } + + if (webhook.token !== token) { + throw DiscordApiErrors.INVALID_WEBHOOK_TOKEN_PROVIDED; + } + + // TODO: creating messages by users checks if the user can bypass rate limits, we cant do that on webhooks, but maybe we could check the application if there is one? + const limits = Config.get().limits; + if (limits.absoluteRate.register.enabled) { + const count = await Message.count({ + where: { + channel_id: webhook.channel_id, + timestamp: MoreThan( + new Date( + Date.now() - limits.absoluteRate.sendMessage.window, + ), + ), + }, + }); + + if (count >= limits.absoluteRate.sendMessage.limit) + throw FieldErrors({ + channel_id: { + code: "TOO_MANY_MESSAGES", + message: req.t("common:toomany.MESSAGE"), + }, + }); + } + + const files = (req.files as Express.Multer.File[]) ?? []; + for (const currFile of files) { + try { + const file = await uploadFile( + `/attachments/${webhook.channel.id}`, + currFile, + ); + attachments.push( + Attachment.create({ ...file, proxy_url: file.url }), + ); + } catch (error) { + return res.status(400).json({ message: error?.toString() }); + } + } + + // TODO: set username and avatar based on body + + const embeds = body.embeds || []; + const message = await handleMessage({ + ...body, + type: 0, + pinned: false, + webhook_id: webhook.id, + application_id: webhook.application?.id, + embeds, + // TODO: Support thread_id/thread_name once threads are implemented + channel_id: webhook.channel_id, + attachments, + timestamp: new Date(), + }); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + //@ts-ignore dont care2 + message.edited_timestamp = null; + + webhook.channel.last_message_id = message.id; + + await Promise.all([ + message.save(), + emitEvent({ + event: "MESSAGE_CREATE", + channel_id: webhook.channel_id, + data: message, + } as MessageCreateEvent), + ]); + + // no await as it shouldnt block the message send function and silently catch error + postHandleMessage(message).catch((e) => + console.error("[Message] post-message handler failed", e), + ); + + return res.json(message); + }, +); + +export default router; diff --git a/src/api/routes/webhooks/#webhook_id/index.ts b/src/api/routes/webhooks/#webhook_id/index.ts new file mode 100644 index 00000000..59fdb76d --- /dev/null +++ b/src/api/routes/webhooks/#webhook_id/index.ts @@ -0,0 +1,57 @@ +import { route } from "@spacebar/api"; +import { + Config, + DiscordApiErrors, + getPermission, + Webhook, +} from "@spacebar/util"; +import { Request, Response, Router } from "express"; +const router = Router(); + +router.get( + "/", + route({ + description: + "Returns a webhook object for the given id. Requires the MANAGE_WEBHOOKS permission or to be the owner of the webhook.", + responses: { + 200: { + body: "APIWebhook", + }, + 404: {}, + }, + }), + async (req: Request, res: Response) => { + const { webhook_id } = req.params; + const webhook = await Webhook.findOneOrFail({ + where: { id: webhook_id }, + relations: [ + "user", + "channel", + "source_channel", + "guild", + "source_guild", + "application", + ], + }); + + if (webhook.guild_id) { + const permission = await getPermission( + req.user_id, + webhook.guild_id, + ); + + if (!permission.has("MANAGE_WEBHOOKS")) + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + } else if (webhook.user_id != req.user_id) + throw DiscordApiErrors.UNKNOWN_WEBHOOK; + + const instanceUrl = + Config.get().api.endpointPublic || "http://localhost:3001"; + return res.json({ + ...webhook, + url: instanceUrl + "/webhooks/" + webhook.id + "/" + webhook.token, + }); + }, +); + +export default router; diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index c3658668..f037417a 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -43,9 +43,12 @@ import { //CHANNEL_MENTION, USER_MENTION, Webhook, + handleFile, + Permissions, } from "@spacebar/util"; import { HTTPError } from "lambert-server"; import { In } from "typeorm"; +import fetch from "node-fetch"; const allow_empty = false; // TODO: check webhook, application, system author, stickers // TODO: embed gifs/videos/images @@ -93,52 +96,102 @@ export async function handleMessage(opts: MessageOptions): Promise { where: { id: opts.application_id }, }); } + + let permission: undefined | Permissions; if (opts.webhook_id) { message.webhook = await Webhook.findOneOrFail({ where: { id: opts.webhook_id }, }); - } - const permission = await getPermission( - opts.author_id, - channel.guild_id, - opts.channel_id, - ); - permission.hasThrow("SEND_MESSAGES"); - if (permission.cache.member) { - message.member = permission.cache.member; - } + message.author = + (await User.findOne({ + where: { id: opts.webhook_id }, + })) || undefined; - if (opts.tts) permission.hasThrow("SEND_TTS_MESSAGES"); - if (opts.message_reference) { - permission.hasThrow("READ_MESSAGE_HISTORY"); - // code below has to be redone when we add custom message routing - if (message.guild_id !== null) { - const guild = await Guild.findOneOrFail({ - where: { id: channel.guild_id }, + if (!message.author) { + message.author = User.create({ + id: opts.webhook_id, + username: message.webhook.name, + discriminator: "0000", + avatar: message.webhook.avatar, + public_flags: 0, + premium: false, + premium_type: 0, + bot: true, + created_at: new Date(), + verified: true, + rights: "0", + data: { + valid_tokens_since: new Date(), + }, }); - if (!opts.message_reference.guild_id) - opts.message_reference.guild_id = channel.guild_id; - if (!opts.message_reference.channel_id) - opts.message_reference.channel_id = opts.channel_id; - - if (!guild.features.includes("CROSS_CHANNEL_REPLIES")) { - if (opts.message_reference.guild_id !== channel.guild_id) - throw new HTTPError( - "You can only reference messages from this guild", - ); - if (opts.message_reference.channel_id !== opts.channel_id) - throw new HTTPError( - "You can only reference messages from this channel", - ); - } - - message.message_reference = opts.message_reference; + await message.author.save(); + } + + if (opts.username) { + message.username = opts.username; + message.author.username = message.username; + } + if (opts.avatar_url) { + const avatarData = await fetch(opts.avatar_url); + const base64 = await avatarData + .buffer() + .then((x) => x.toString("base64")); + + const dataUri = + "data:" + + avatarData.headers.get("content-type") + + ";base64," + + base64; + + message.avatar = await handleFile( + `/avatars/${opts.webhook_id}`, + dataUri as string, + ); + message.author.avatar = message.avatar; + } + } else { + permission = await getPermission( + opts.author_id, + channel.guild_id, + opts.channel_id, + ); + permission.hasThrow("SEND_MESSAGES"); + if (permission.cache.member) { + message.member = permission.cache.member; + } + + if (opts.tts) permission.hasThrow("SEND_TTS_MESSAGES"); + if (opts.message_reference) { + permission.hasThrow("READ_MESSAGE_HISTORY"); + // code below has to be redone when we add custom message routing + if (message.guild_id !== null) { + const guild = await Guild.findOneOrFail({ + where: { id: channel.guild_id }, + }); + if (!opts.message_reference.guild_id) + opts.message_reference.guild_id = channel.guild_id; + if (!opts.message_reference.channel_id) + opts.message_reference.channel_id = opts.channel_id; + + if (!guild.features.includes("CROSS_CHANNEL_REPLIES")) { + if (opts.message_reference.guild_id !== channel.guild_id) + throw new HTTPError( + "You can only reference messages from this guild", + ); + if (opts.message_reference.channel_id !== opts.channel_id) + throw new HTTPError( + "You can only reference messages from this channel", + ); + } + + message.message_reference = opts.message_reference; + } + /** Q: should be checked if the referenced message exists? ANSWER: NO + otherwise backfilling won't work **/ + message.type = MessageType.REPLY; } - /** Q: should be checked if the referenced message exists? ANSWER: NO - otherwise backfilling won't work **/ - message.type = MessageType.REPLY; } // TODO: stickers/activity @@ -183,14 +236,18 @@ export async function handleMessage(opts: MessageOptions): Promise { const role = await Role.findOneOrFail({ where: { id: mention, guild_id: channel.guild_id }, }); - if (role.mentionable || permission.has("MANAGE_ROLES")) { + if ( + role.mentionable || + opts.webhook_id || + permission?.has("MANAGE_ROLES") + ) { mention_role_ids.push(mention); } }, ), ); - if (permission.has("MENTION_EVERYONE")) { + if (opts.webhook_id || permission?.has("MENTION_EVERYONE")) { mention_everyone = !!content.match(EVERYONE_MENTION) || !!content.match(HERE_MENTION); @@ -316,4 +373,6 @@ interface MessageOptions extends MessageCreateSchema { attachments?: Attachment[]; edited_timestamp?: Date; timestamp?: Date; + username?: string; + avatar_url?: string; } diff --git a/src/gateway/events/Close.ts b/src/gateway/events/Close.ts index 16f6b188..311ed32a 100644 --- a/src/gateway/events/Close.ts +++ b/src/gateway/events/Close.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -50,7 +50,7 @@ export async function Close(this: WebSocket, code: number, reason: Buffer) { } as SessionsReplace); const session = sessions.first() || { activities: [], - client_info: {}, + client_status: {}, status: "offline", }; @@ -68,7 +68,7 @@ export async function Close(this: WebSocket, code: number, reason: Buffer) { data: { user: userOrId, activities: session.activities, - client_status: session?.client_info, + client_status: session?.client_status, status: session.status, }, } as PresenceUpdateEvent); diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 41f9f83d..e30a1ee0 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -122,8 +122,8 @@ export async function onIdentify(this: WebSocket, data: Payload) { session_id: this.session_id, status: identify.presence?.status || "online", client_info: { - client: identify.properties?.$device, - os: identify.properties?.os, + client: identify.properties?.device || identify.properties?.$device, + os: identify.properties?.os || identify.properties?.$os, version: 0, }, activities: identify.presence?.activities, // TODO: validation @@ -372,7 +372,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { data: { user: user.toPublicUser(), activities: session.activities, - client_status: session.client_info, + client_status: session.client_status, status: session.status, }, } as PresenceUpdateEvent), diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 3c21b708..27e9b00a 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -248,7 +248,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) { d: { user: user, activities: session?.activities || [], - client_status: session?.client_info, + client_status: session?.client_status, status: session?.status || "offline", } as Presence, }); diff --git a/src/gateway/opcodes/PresenceUpdate.ts b/src/gateway/opcodes/PresenceUpdate.ts index 03736263..f84da120 100644 --- a/src/gateway/opcodes/PresenceUpdate.ts +++ b/src/gateway/opcodes/PresenceUpdate.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -35,14 +35,19 @@ export async function onPresenceUpdate(this: WebSocket, { d }: Payload) { { status: presence.status, activities: presence.activities }, ); + const session = await Session.findOneOrFail({ + select: ["client_status"], + where: { session_id: this.session_id }, + }); + await emitEvent({ event: "PRESENCE_UPDATE", user_id: this.user_id, data: { user: await User.getPublicUser(this.user_id), - activities: presence.activities, - client_status: {}, // TODO: status: presence.status, + activities: presence.activities, + client_status: session.client_status, }, } as PresenceUpdateEvent); } diff --git a/src/gateway/opcodes/RequestGuildMembers.ts b/src/gateway/opcodes/RequestGuildMembers.ts index 304d4b39..d294f4d3 100644 --- a/src/gateway/opcodes/RequestGuildMembers.ts +++ b/src/gateway/opcodes/RequestGuildMembers.ts @@ -1,23 +1,124 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -import { WebSocket } from "@spacebar/gateway"; +import { + getPermission, + GuildMembersChunkEvent, + Member, + Presence, + RequestGuildMembersSchema, + Session, +} from "@spacebar/util"; +import { WebSocket, Payload, OPCODES, Send } from "@spacebar/gateway"; +import { check } from "./instanceOf"; +import { FindManyOptions, In, Like } from "typeorm"; -export function onRequestGuildMembers(this: WebSocket) { - // return this.close(CLOSECODES.Unknown_error); +export async function onRequestGuildMembers(this: WebSocket, { d }: Payload) { + // TODO: check data + check.call(this, RequestGuildMembersSchema, d); + + const { guild_id, query, presences, nonce } = + d as RequestGuildMembersSchema; + let { limit, user_ids } = d as RequestGuildMembersSchema; + + if ("query" in d && (!limit || Number.isNaN(limit))) + throw new Error('"query" requires "limit" to be set'); + if ("query" in d && user_ids) + throw new Error('"query" and "user_ids" are mutually exclusive'); + if (user_ids && !Array.isArray(user_ids)) user_ids = [user_ids]; + user_ids = user_ids as string[] | undefined; + + // TODO: Configurable limit? + if ((query || (user_ids && user_ids.length > 0)) && (!limit || limit > 100)) + limit = 100; + + const permissions = await getPermission(this.user_id, guild_id); + permissions.hasThrow("VIEW_CHANNEL"); + + const whereQuery: FindManyOptions["where"] = {}; + if (query) { + whereQuery.user = { + username: Like(query + "%"), + }; + } else if (user_ids && user_ids.length > 0) { + whereQuery.id = In(user_ids); + } + + const memberFind: FindManyOptions = { + where: { + ...whereQuery, + guild_id, + }, + relations: ["user", "roles"], + }; + if (limit) memberFind.take = Math.abs(Number(limit || 100)); + const members = await Member.find(memberFind); + + const baseData = { + guild_id, + nonce, + }; + + const chunkCount = Math.ceil(members.length / 1000); + + let notFound: string[] = []; + if (user_ids && user_ids.length > 0) + notFound = user_ids.filter( + (id) => !members.some((member) => member.id == id), + ); + + const chunks: GuildMembersChunkEvent["data"][] = []; + while (members.length > 0) { + const chunk: Member[] = members.splice(0, 1000); + + const presenceList: Presence[] = []; + if (presences) { + for await (const member of chunk) { + const session = await Session.findOne({ + where: { user_id: member.id }, + }); + if (session) + presenceList.push({ + user: member.user.toPublicUser(), + status: session.status, + activities: session.activities, + client_status: session.client_status, + }); + } + } + + chunks.push({ + ...baseData, + members: chunk.map((member) => member.toPublicMember()), + presences: presences ? presenceList : undefined, + chunk_index: chunks.length, + chunk_count: chunkCount, + }); + } + + if (notFound.length > 0) chunks[0].not_found = notFound; + + chunks.forEach((chunk) => { + Send(this, { + op: OPCODES.Dispatch, + s: this.sequence++, + t: "GUILD_MEMBERS_CHUNK", + d: chunk, + }); + }); } diff --git a/src/util/config/types/subconfigurations/limits/GuildLimits.ts b/src/util/config/types/subconfigurations/limits/GuildLimits.ts index b64d9485..e77cf424 100644 --- a/src/util/config/types/subconfigurations/limits/GuildLimits.ts +++ b/src/util/config/types/subconfigurations/limits/GuildLimits.ts @@ -21,5 +21,6 @@ export class GuildLimits { maxEmojis: number = 2000; maxMembers: number = 25000000; maxChannels: number = 65535; + maxBulkBanUsers: number = 200; maxChannelsInCategory: number = 65535; } diff --git a/src/util/config/types/subconfigurations/limits/UserLimits.ts b/src/util/config/types/subconfigurations/limits/UserLimits.ts index 8f9b1a97..afe9afbe 100644 --- a/src/util/config/types/subconfigurations/limits/UserLimits.ts +++ b/src/util/config/types/subconfigurations/limits/UserLimits.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -20,4 +20,5 @@ export class UserLimits { maxGuilds: number = 1048576; maxUsername: number = 32; maxFriends: number = 5000; + maxBio: number = 190; } diff --git a/src/util/entities/Categories.ts b/src/util/entities/Categories.ts index bba1bfa7..13d969de 100644 --- a/src/util/entities/Categories.ts +++ b/src/util/entities/Categories.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -46,6 +46,10 @@ export class Categories extends BaseClassWithoutId { @Column({ type: "simple-json" }) localizations: string; + // Whether to show the category prominently (e.g. in a sidebar) instead of only secondary (e.g. in search results) @Column({ nullable: true }) is_primary: boolean; + + @Column({ nullable: true }) + icon?: string; } diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index d28c8c29..1dd89dc1 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.ts @@ -216,17 +216,23 @@ export class Message extends BaseClass { }; @Column({ type: "simple-json", nullable: true }) - components?: MessageComponent[]; + components?: ActionRowComponent[]; @Column({ type: "simple-json", nullable: true }) poll?: Poll; + @Column({ nullable: true }) + username?: string; + + @Column({ nullable: true }) + avatar?: string; + toJSON(): Message { return { ...this, author_id: undefined, member_id: undefined, - webhook_id: undefined, + webhook_id: this.webhook_id ?? undefined, application_id: undefined, nonce: this.nonce ?? undefined, @@ -237,7 +243,12 @@ export class Message extends BaseClass { reactions: this.reactions ?? undefined, sticker_items: this.sticker_items ?? undefined, message_reference: this.message_reference ?? undefined, - author: this.author?.toPublicUser() ?? undefined, + author: { + ...(this.author?.toPublicUser() ?? undefined), + // Webhooks + username: this.username ?? this.author?.username, + avatar: this.avatar ?? this.author?.avatar, + }, activity: this.activity ?? undefined, application: this.application ?? undefined, components: this.components ?? undefined, @@ -248,21 +259,100 @@ 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/entities/Session.ts b/src/util/entities/Session.ts index 6c6f7caa..15f8faa2 100644 --- a/src/util/entities/Session.ts +++ b/src/util/entities/Session.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -19,7 +19,7 @@ import { User } from "./User"; import { BaseClass } from "./BaseClass"; import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; -import { Status } from "../interfaces/Status"; +import { ClientStatus, Status } from "../interfaces/Status"; import { Activity } from "../interfaces/Activity"; //TODO we need to remove all sessions on server start because if the server crashes without closing websockets it won't delete them @@ -43,7 +43,6 @@ export class Session extends BaseClass { @Column({ type: "simple-json", nullable: true }) activities: Activity[]; - // TODO client_status @Column({ type: "simple-json", select: false }) client_info: { client: string; @@ -51,6 +50,9 @@ export class Session extends BaseClass { version: number; }; + @Column({ type: "simple-json" }) + client_status: ClientStatus; + @Column({ nullable: false, type: "varchar" }) status: Status; //TODO enum } diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index c929039e..b299bcfc 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -130,7 +130,7 @@ export class User extends BaseClass { bot: boolean = false; // if user is bot @Column() - bio: string = ""; // short description of the user (max 190 chars -> should be configurable) + bio: string = ""; // short description of the user @Column() system: boolean = false; // shouldn't be used, the api sends this field type true, if the generated message comes from a system generated author diff --git a/src/util/entities/Webhook.ts b/src/util/entities/Webhook.ts index 91498a22..9539d6e8 100644 --- a/src/util/entities/Webhook.ts +++ b/src/util/entities/Webhook.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -35,23 +35,23 @@ export class Webhook extends BaseClass { type: WebhookType; @Column({ nullable: true }) - name?: string; + name: string; @Column({ nullable: true }) - avatar?: string; + avatar: string; @Column({ nullable: true }) token?: string; @Column({ nullable: true }) @RelationId((webhook: Webhook) => webhook.guild) - guild_id: string; + guild_id?: string; @JoinColumn({ name: "guild_id" }) @ManyToOne(() => Guild, { onDelete: "CASCADE", }) - guild: Guild; + guild?: Guild; @Column({ nullable: true }) @RelationId((webhook: Webhook) => webhook.channel) @@ -85,11 +85,23 @@ export class Webhook extends BaseClass { @Column({ nullable: true }) @RelationId((webhook: Webhook) => webhook.guild) - source_guild_id: string; + source_guild_id?: string; @JoinColumn({ name: "source_guild_id" }) @ManyToOne(() => Guild, { onDelete: "CASCADE", }) - source_guild: Guild; + source_guild?: Guild; + + @Column({ nullable: true }) + @RelationId((webhook: Webhook) => webhook.channel) + source_channel_id: string; + + @JoinColumn({ name: "source_channel_id" }) + @ManyToOne(() => Channel, { + onDelete: "CASCADE", + }) + source_channel: Channel; + + url: string; } diff --git a/src/util/interfaces/Event.ts b/src/util/interfaces/Event.ts index 98a64e94..a31e2263 100644 --- a/src/util/interfaces/Event.ts +++ b/src/util/interfaces/Event.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -280,8 +280,8 @@ export interface GuildMembersChunkEvent extends Event { members: PublicMember[]; chunk_index: number; chunk_count: number; - not_found: string[]; - presences: Presence[]; + not_found?: string[]; + presences?: Presence[]; nonce?: string; }; } diff --git a/src/util/interfaces/Status.ts b/src/util/interfaces/Status.ts index 407a813e..0f2f4e13 100644 --- a/src/util/interfaces/Status.ts +++ b/src/util/interfaces/Status.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -21,5 +21,6 @@ export type Status = "idle" | "dnd" | "online" | "offline" | "invisible"; export interface ClientStatus { desktop?: string; // e.g. Windows/Linux/Mac mobile?: string; // e.g. iOS/Android - web?: string; // e.g. browser, bot account + web?: string; // e.g. browser, bot account, unknown + embedded?: string; // e.g. embedded } diff --git a/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts b/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts new file mode 100644 index 00000000..775847e0 --- /dev/null +++ b/src/util/migration/mariadb/1721298824927-webhookMessageProperties.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookMessageProperties1721298824927 + implements MigrationInterface +{ + name = "WebhookMessageProperties1721298824927"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` ADD `username` text NULL", + ); + await queryRunner.query( + "ALTER TABLE `messages` ADD `avatar` text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` DROP COLUMN `username`", + ); + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `avatar`"); + } +} diff --git a/src/util/migration/mariadb/1723347738541-client_status.ts b/src/util/migration/mariadb/1723347738541-client_status.ts new file mode 100644 index 00000000..0e02c45e --- /dev/null +++ b/src/util/migration/mariadb/1723347738541-client_status.ts @@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class client_status1723347738541 implements MigrationInterface { + name = "client_status1723347738541"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `sessions` ADD `client_status` text NULL AFTER `client_info`", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `sessions` DROP COLUMN `client_status`", + ); + } +} diff --git a/src/util/migration/mariadb/1723577874393-discoveryCategoryIcon.ts b/src/util/migration/mariadb/1723577874393-discoveryCategoryIcon.ts new file mode 100644 index 00000000..18bc0a77 --- /dev/null +++ b/src/util/migration/mariadb/1723577874393-discoveryCategoryIcon.ts @@ -0,0 +1,15 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class DiscoveryCategoryIcon1723577874393 implements MigrationInterface { + name = "DiscoveryCategoryIcon1723577874393"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `categories` ADD `icon` text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `categories` DROP COLUMN `icon`"); + } +} diff --git a/src/util/migration/mariadb/1723644478176-webhookSourceChannel.ts b/src/util/migration/mariadb/1723644478176-webhookSourceChannel.ts new file mode 100644 index 00000000..ac2b1799 --- /dev/null +++ b/src/util/migration/mariadb/1723644478176-webhookSourceChannel.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookSourceChannel1723644478176 implements MigrationInterface { + name = "WebhookSourceChannel1723644478176"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `webhooks` ADD COLUMN `source_channel_id` VARCHAR(255) NULL DEFAULT NULL AFTER `source_guild_id`", + ); + await queryRunner.query( + "ALTER TABLE `webhooks` ADD CONSTRAINT `FK_d64f38834fa676f6caa4786ddd6` FOREIGN KEY (`source_channel_id`) REFERENCES `channels` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `webhooks` DROP FOREIGN KEY `FK_d64f38834fa676f6caa4786ddd6`", + ); + await queryRunner.query( + "ALTER TABLE `webhooks` DROP COLUMN `source_channel_id`", + ); + } +} diff --git a/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts b/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts new file mode 100644 index 00000000..775847e0 --- /dev/null +++ b/src/util/migration/mysql/1721298824927-webhookMessageProperties.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookMessageProperties1721298824927 + implements MigrationInterface +{ + name = "WebhookMessageProperties1721298824927"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` ADD `username` text NULL", + ); + await queryRunner.query( + "ALTER TABLE `messages` ADD `avatar` text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `messages` DROP COLUMN `username`", + ); + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `avatar`"); + } +} diff --git a/src/util/migration/mysql/1723347738541-client_status.ts b/src/util/migration/mysql/1723347738541-client_status.ts new file mode 100644 index 00000000..0e02c45e --- /dev/null +++ b/src/util/migration/mysql/1723347738541-client_status.ts @@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class client_status1723347738541 implements MigrationInterface { + name = "client_status1723347738541"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `sessions` ADD `client_status` text NULL AFTER `client_info`", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `sessions` DROP COLUMN `client_status`", + ); + } +} diff --git a/src/util/migration/mysql/1723577874393-discoveryCategoryIcon.ts b/src/util/migration/mysql/1723577874393-discoveryCategoryIcon.ts new file mode 100644 index 00000000..18bc0a77 --- /dev/null +++ b/src/util/migration/mysql/1723577874393-discoveryCategoryIcon.ts @@ -0,0 +1,15 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class DiscoveryCategoryIcon1723577874393 implements MigrationInterface { + name = "DiscoveryCategoryIcon1723577874393"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `categories` ADD `icon` text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `categories` DROP COLUMN `icon`"); + } +} diff --git a/src/util/migration/mysql/1723644478176-webhookSourceChannel.ts b/src/util/migration/mysql/1723644478176-webhookSourceChannel.ts new file mode 100644 index 00000000..ac2b1799 --- /dev/null +++ b/src/util/migration/mysql/1723644478176-webhookSourceChannel.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookSourceChannel1723644478176 implements MigrationInterface { + name = "WebhookSourceChannel1723644478176"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `webhooks` ADD COLUMN `source_channel_id` VARCHAR(255) NULL DEFAULT NULL AFTER `source_guild_id`", + ); + await queryRunner.query( + "ALTER TABLE `webhooks` ADD CONSTRAINT `FK_d64f38834fa676f6caa4786ddd6` FOREIGN KEY (`source_channel_id`) REFERENCES `channels` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `webhooks` DROP FOREIGN KEY `FK_d64f38834fa676f6caa4786ddd6`", + ); + await queryRunner.query( + "ALTER TABLE `webhooks` DROP COLUMN `source_channel_id`", + ); + } +} diff --git a/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts b/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts new file mode 100644 index 00000000..bd603f10 --- /dev/null +++ b/src/util/migration/postgres/1721298824927-webhookMessageProperties.ts @@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookMessageProperties1721298824927 + implements MigrationInterface +{ + name = "WebhookMessageProperties1721298824927"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages ADD username text NULL"); + await queryRunner.query("ALTER TABLE messages ADD avatar text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages DROP COLUMN username"); + await queryRunner.query("ALTER TABLE messages DROP COLUMN avatar"); + } +} diff --git a/src/util/migration/postgres/1723347738541-client_status.ts b/src/util/migration/postgres/1723347738541-client_status.ts new file mode 100644 index 00000000..35d9391f --- /dev/null +++ b/src/util/migration/postgres/1723347738541-client_status.ts @@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class client_status1723347738541 implements MigrationInterface { + name = "client_status1723347738541"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE sessions ADD client_status text NULL", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE sessions DROP COLUMN client_status", + ); + } +} diff --git a/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts b/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts new file mode 100644 index 00000000..29b4138a --- /dev/null +++ b/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class DiscoveryCategoryIcon1723577874393 implements MigrationInterface { + name = "DiscoveryCategoryIcon1723577874393"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE categories ADD icon text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE categories DROP COLUMN icon"); + } +} diff --git a/src/util/migration/postgres/1723644478176-webhookSourceChannel.ts b/src/util/migration/postgres/1723644478176-webhookSourceChannel.ts new file mode 100644 index 00000000..63ce961f --- /dev/null +++ b/src/util/migration/postgres/1723644478176-webhookSourceChannel.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class WebhookSourceChannel1723644478176 implements MigrationInterface { + name = "WebhookSourceChannel1723644478176"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE webhooks ADD COLUMN source_channel_id VARCHAR(255) NULL DEFAULT NULL", + ); + await queryRunner.query( + "ALTER TABLE webhooks ADD CONSTRAINT FK_d64f38834fa676f6caa4786ddd6 FOREIGN KEY (source_channel_id) REFERENCES channels (id) ON UPDATE NO ACTION ON DELETE CASCADE", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE webhooks DROP CONSTRAINT FK_d64f38834fa676f6caa4786ddd6", + ); + await queryRunner.query( + "ALTER TABLE webhooks DROP COLUMN source_channel_id", + ); + } +} diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 014f6c87..15537ca8 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -16,9 +16,14 @@ 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 = { +export type MessageCreateAttachment = { id: string; filename: string; }; @@ -52,9 +57,9 @@ export interface MessageCreateSchema { TODO: we should create an interface for attachments TODO: OpenWAAO<-->attachment-style metadata conversion **/ - attachments?: Attachment[]; + attachments?: MessageCreateAttachment[]; 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/RequestGuildMembersSchema.ts b/src/util/schemas/RequestGuildMembersSchema.ts new file mode 100644 index 00000000..01ba4f2e --- /dev/null +++ b/src/util/schemas/RequestGuildMembersSchema.ts @@ -0,0 +1,35 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +export interface RequestGuildMembersSchema { + guild_id: string; + query?: string; + limit?: number; + presences?: boolean; + user_ids?: string | string[]; + nonce?: string; +} + +export const RequestGuildMembersSchema = { + guild_id: String, + $query: String, + $limit: Number, + $presences: Boolean, + $user_ids: [] as string | string[], + $nonce: String, +}; diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts index e155b9af..4be6ad43 100644 --- a/src/util/schemas/UserModifySchema.ts +++ b/src/util/schemas/UserModifySchema.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -23,9 +23,6 @@ export interface UserModifySchema { */ username?: string; avatar?: string | null; - /** - * @maxLength 1024 - */ bio?: string; accent_color?: number; banner?: string | null; diff --git a/src/util/schemas/WebhookCreateSchema.ts b/src/util/schemas/WebhookCreateSchema.ts index f92cb63e..7bd0afa8 100644 --- a/src/util/schemas/WebhookCreateSchema.ts +++ b/src/util/schemas/WebhookCreateSchema.ts @@ -16,7 +16,6 @@ along with this program. If not, see . */ -// TODO: webhooks export interface WebhookCreateSchema { /** * @maxLength 80 diff --git a/src/util/schemas/WebhookExecuteSchema.ts b/src/util/schemas/WebhookExecuteSchema.ts new file mode 100644 index 00000000..943cbe9e --- /dev/null +++ b/src/util/schemas/WebhookExecuteSchema.ts @@ -0,0 +1,46 @@ +/* + Spacebar: A FOSS re-implementation and extension of the Discord.com backend. + Copyright (C) 2023 Spacebar and Spacebar Contributors + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +import { Embed } from "../entities"; +import { MessageCreateAttachment } from "./MessageCreateSchema"; + +export interface WebhookExecuteSchema { + content?: string; + username?: string; + avatar_url?: string; + tts?: boolean; + embeds?: Embed[]; + allowed_mentions?: { + parse?: string[]; + roles?: string[]; + users?: string[]; + replied_user?: boolean; + }; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + components?: any[]; + file?: { filename: string }; + payload_json?: string; + /** + TODO: we should create an interface for attachments + TODO: OpenWAAO<-->attachment-style metadata conversion + **/ + attachments?: MessageCreateAttachment[]; + flags?: number; + thread_name?: string; + applied_tags?: string[]; +} diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index 44a504cd..62199dfb 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -58,6 +58,7 @@ export * from "./PurgeSchema"; export * from "./RegisterSchema"; export * from "./RelationshipPostSchema"; export * from "./RelationshipPutSchema"; +export * from "./RequestGuildMembersSchema"; export * from "./RoleModifySchema"; export * from "./RolePositionUpdateSchema"; export * from "./SelectProtocolSchema"; @@ -79,5 +80,6 @@ export * from "./VoiceStateUpdateSchema"; export * from "./VoiceVideoSchema"; export * from "./WebAuthnSchema"; export * from "./WebhookCreateSchema"; +export * from "./WebhookExecuteSchema"; export * from "./WidgetModifySchema"; export * from "./responses"; 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; } diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index 98ae2d31..a6caae00 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -578,7 +578,7 @@ export const DiscordApiErrors = { UNKNOWN_TOKEN: new ApiError("Unknown token", 10012), UNKNOWN_USER: new ApiError("Unknown user", 10013), UNKNOWN_EMOJI: new ApiError("Unknown emoji", 10014), - UNKNOWN_WEBHOOK: new ApiError("Unknown webhook", 10015), + UNKNOWN_WEBHOOK: new ApiError("Unknown webhook", 10015, 404), UNKNOWN_WEBHOOK_SERVICE: new ApiError("Unknown webhook service", 10016), UNKNOWN_CONNECTION: new ApiError("Unknown connection", 10017, 400), UNKNOWN_SESSION: new ApiError("Unknown session", 10020),