From 48eb55ee07d237ff2272e9763c1bbb5c72842f53 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 21 Mar 2026 14:46:30 +0100 Subject: Fix schemas script --- assets/openapi.json | 14135 ++++++++++++++++++++------------------ assets/schemas.json | 16424 +++++++++++++++++++++++--------------------- package.json | 15 +- scripts/schema.js | 5 +- src/util/util/Database.ts | 4 +- 5 files changed, 15716 insertions(+), 14867 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 3b1d8024..3f396f60 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -239,257 +239,396 @@ "type" ] }, - "InteractionCallbackSchema": { + "AckBulkSchema": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/InteractionCallbackType" - }, - "data": { - "$ref": "#/components/schemas/Message" + "read_states": { + "type": "array", + "items": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "read_state_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_id", + "read_state_type" + ] + } } }, "required": [ - "data", - "type" + "read_states" ] }, - "InteractionCreateSchema": { + "ActivitySchema": { "type": "object", "properties": { - "version": { - "type": "integer" - }, - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "application_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/InteractionType" + "afk": { + "type": "boolean" }, - "token": { - "type": "string" + "status": { + "$ref": "#/components/schemas/Status" }, - "data": { - "type": "object", - "properties": {}, - "additionalProperties": true + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Activity" + } }, - "guild": { - "$ref": "#/components/schemas/InteractionGuild" + "since": { + "type": "integer" + } + }, + "required": [ + "status" + ] + }, + "ApplicationAuthorizeSchema": { + "type": "object", + "properties": { + "authorize": { + "type": "boolean" }, "guild_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "guild_locale": { "type": "string" }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "channel_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "permissions": { "type": "string" }, - "member": { - "$ref": "#/components/schemas/PublicMember" - }, - "user": { - "$ref": "#/components/schemas/PublicUser" - }, - "locale": { + "captcha_key": { "type": "string" }, - "message": { - "$ref": "#/components/schemas/Message" - }, - "app_permissions": { + "code": { + "minLength": 6, + "maxLength": 6, "type": "string" + } + }, + "required": [ + "authorize", + "guild_id", + "permissions" + ] + }, + "AutomodMentionSpamRuleSchema": { + "type": "object", + "properties": { + "mention_total_limit": { + "type": "integer" }, - "entitlements": { - "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } - }, - "entitlement_sku_ids": { + "mention_raid_protection_enabled": { + "type": "boolean" + } + }, + "required": [ + "mention_raid_protection_enabled", + "mention_total_limit" + ] + }, + "AutomodSuspectedSpamRuleSchema": { + "type": "object" + }, + "AutomodCommonlyFlaggedWordsRuleSchema": { + "type": "object", + "properties": { + "allow_list": { "type": "array", - "items": { - "type": "string" - } - }, - "authorizing_integration_owners": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { + "items": [ + { "type": "string" } - } - }, - "context": { - "type": "integer" + ], + "minItems": 1, + "maxItems": 1 }, - "attachment_size_limit": { - "type": "integer" + "presets": { + "type": "array", + "items": [ + { + "type": "integer" + } + ], + "minItems": 1, + "maxItems": 1 } }, "required": [ - "app_permissions", - "application_id", - "attachment_size_limit", - "id", - "token", - "type", - "version" + "allow_list", + "presets" ] }, - "ApplicationCreateSchema": { + "AutomodCustomWordsRuleSchema": { "type": "object", "properties": { - "name": { - "type": "string" + "allow_list": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "team_id": { - "type": "string" + "keyword_filter": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 + }, + "regex_patterns": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 } }, "required": [ - "name" + "allow_list", + "keyword_filter", + "regex_patterns" ] }, - "ApplicationModifySchema": { + "AutomodRuleSchema": { "type": "object", "properties": { - "description": { + "creator_id": { "type": "string" }, - "icon": { - "type": "string" + "enabled": { + "type": "boolean" }, - "cover_image": { - "type": "string" + "event_type": { + "type": "integer" }, - "interactions_endpoint_url": { - "type": "string" + "exempt_channels": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "max_participants": { - "type": "integer", - "nullable": true + "exempt_roles": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "name": { + "guild_id": { "type": "string" }, - "privacy_policy_url": { + "name": { "type": "string" }, - "role_connections_verification_url": { - "type": "string" + "position": { + "type": "integer" }, - "tags": { - "type": "array", - "items": { - "type": "string" - } + "trigger_type": { + "type": "integer" }, - "terms_of_service_url": { + "trigger_metadata": { + "anyOf": [ + { + "$ref": "#/components/schemas/AutomodMentionSpamRuleSchema" + }, + { + "$ref": "#/components/schemas/AutomodSuspectedSpamRuleSchema" + }, + { + "$ref": "#/components/schemas/AutomodCommonlyFlaggedWordsRuleSchema" + }, + { + "$ref": "#/components/schemas/AutomodCustomWordsRuleSchema" + } + ] + } + }, + "required": [ + "creator_id", + "enabled", + "event_type", + "exempt_channels", + "exempt_roles", + "guild_id", + "name", + "position", + "trigger_metadata", + "trigger_type" + ] + }, + "BackupCodesChallengeSchema": { + "type": "object", + "properties": { + "password": { + "minLength": 1, + "maxLength": 72, "type": "string" + } + }, + "required": [ + "password" + ] + }, + "BanCreateSchema": { + "type": "object", + "properties": { + "delete_message_seconds": { + "type": "integer" }, - "bot_public": { - "type": "boolean" - }, - "bot_require_code_grant": { - "type": "boolean" - }, - "flags": { + "delete_message_days": { "type": "integer" }, - "custom_install_url": { + "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" + ] }, - "SendableApplicationCommandDataSchema": { + "BanRegistrySchema": { "type": "object", "properties": { "id": { - "$ref": "#/components/schemas/Snowflake" + "type": "string" }, - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" + "user_id": { + "type": "string" }, - "name": { + "guild_id": { "type": "string" }, - "version": { - "$ref": "#/components/schemas/Snowflake" + "executor_id": { + "type": "string" }, - "application_command": { - "type": "object", - "properties": {}, - "additionalProperties": true + "ip": { + "type": "string" }, - "options": { + "reason": { + "type": "string" + } + }, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ] + }, + "BotModifySchema": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + }, + "banner": { + "type": "string" + } + } + }, + "BulkBanSchema": { + "type": "object", + "properties": { + "user_ids": { "type": "array", "items": { - "$ref": "#/components/schemas/ApplicationCommandOption" + "type": "string" } }, - "target_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/components/schemas/Snowflake" - }, - "attachments": { + "delete_message_seconds": { + "type": "integer" + } + }, + "required": [ + "user_ids" + ] + }, + "BulkDeleteSchema": { + "type": "object", + "properties": { + "messages": { "type": "array", "items": { - "type": "object", - "properties": {}, - "additionalProperties": true + "type": "string" } } }, "required": [ - "id", - "name", - "version" + "messages" ] }, - "SendableMessageComponentDataSchema": { + "ChannelModifySchema": { "type": "object", "properties": { - "component_type": { + "name": { + "type": "string" + }, + "type": { "enum": [ + 0, 1, 10, 11, 12, 13, 14, + 15, 16, 17, 18, - 19, 2, - 20, - 21, - 22, - 23, + 255, 3, 4, 5, @@ -500,875 +639,861 @@ ], "type": "number" }, - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "custom_id": { + "topic": { "type": "string" }, - "values": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/Snowflake" - } - } - ] - } - }, - "required": [ - "custom_id" - ] - }, - "SendableModalSubmitDataSchema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/Snowflake" + "icon": { + "type": "string", + "nullable": true }, - "custom_id": { - "type": "string" + "bitrate": { + "type": "integer" }, - "attachments": { + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "invitable": { + "type": "boolean" + }, + "permission_overwrites": { "type": "array", "items": { - "$ref": "#/components/schemas/UploadAttachmentRequestSchema" - } - } - }, - "required": [ - "custom_id", - "id" - ] - }, - "GuildProfileResponse": { - "type": "object", - "properties": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "parent_id": { + "type": "string" + }, "id": { "type": "string" }, - "name": { + "nsfw": { + "type": "boolean" + }, + "rtc_region": { "type": "string" }, - "icon_hash": { + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { "type": "string", "nullable": true }, - "member_count": { + "flags": { "type": "integer" }, - "online_count": { + "default_thread_rate_limit_per_user": { "type": "integer" }, - "description": { - "type": "string" + "video_quality_mode": { + "type": "integer" }, - "brand_color_primary": { - "type": "string" + "auto_archive_duration": { + "type": "integer" }, - "banner_hash": { - "type": "string", - "nullable": true + "archived": { + "type": "boolean" }, - "game_application_ids": { + "locked": { + "type": "boolean" + }, + "available_tags": { "type": "array", "items": { - "type": "string" - } - }, - "game_activity": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GameActivity" + "additionalProperties": false, + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "moderated": { + "type": [ + "null", + "boolean" + ] + }, + "emoji_id": { + "type": [ + "null", + "string" + ] + }, + "emoji_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] } - }, - "tag": { - "type": "string", - "nullable": true - }, - "badge": { - "$ref": "#/components/schemas/GuildBadgeType" - }, - "badge_color_primary": { + } + } + }, + "ChannelPermissionOverwriteSchema": { + "type": "object", + "properties": { + "allow": { "type": "string" }, - "badge_color_secondary": { + "deny": { "type": "string" }, - "badge_hash": { + "id": { "type": "string" }, - "traits": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildTrait" - } - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "visibility": { - "$ref": "#/components/schemas/GuildVisibilityLevel" - }, - "custom_banner_hash": { - "type": "string", - "nullable": true - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" + "type": { + "$ref": "#/components/schemas/ChannelPermissionOverwriteType" } }, "required": [ - "badge", - "badge_color_primary", - "badge_color_secondary", - "badge_hash", - "banner_hash", - "brand_color_primary", - "custom_banner_hash", - "description", - "features", - "game_activity", - "game_application_ids", - "icon_hash", + "allow", + "deny", "id", - "member_count", - "name", - "online_count", - "premium_subscription_count", - "premium_tier", - "tag", - "traits", - "visibility" + "type" ] }, - "GuildAvailableSchema": { + "ChannelReorderSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "lock_permissions": { + "type": "boolean" + }, + "parent_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + "CodesVerificationSchema": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "key": { "type": "string" }, - "available": { + "nonce": { + "type": "string" + }, + "regenerate": { "type": "boolean" } }, "required": [ - "available", - "id" + "key", + "nonce" ] }, - "InstanceUserDeleteSchema": { - "$ref": "#/components/schemas/InstanceUserDeleteSchemaContent" - }, - "UserSettingsUpdateSchema": { + "ConnectedAccountSchema": { "type": "object", "properties": { - "afk_timeout": { - "type": "integer" + "external_id": { + "type": "string" }, - "allow_accessibility_detection": { + "user_id": { + "type": "string" + }, + "token_data": { + "$ref": "#/components/schemas/ConnectedAccountTokenData" + }, + "friend_sync": { "type": "boolean" }, - "animate_emoji": { + "name": { + "type": "string" + }, + "revoked": { "type": "boolean" }, - "animate_stickers": { + "show_activity": { "type": "integer" }, - "contact_sync_enabled": { - "type": "boolean" + "type": { + "type": "string" }, - "convert_emoticons": { + "verified": { "type": "boolean" }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/components/schemas/CustomStatus" - }, - { - "type": "null" - } - ] - }, - "default_guilds_restricted": { - "type": "boolean" - }, - "detect_platform_accounts": { - "type": "boolean" - }, - "developer_mode": { - "type": "boolean" - }, - "disable_games_tab": { - "type": "boolean" - }, - "enable_tts_command": { - "type": "boolean" - }, - "explicit_content_filter": { - "type": "integer" - }, - "friend_discovery_flags": { + "visibility": { "type": "integer" }, - "friend_source_flags": { - "$ref": "#/components/schemas/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean" - }, - "gif_auto_play": { - "type": "boolean" - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildFolder" - } - }, - "guild_positions": { + "integrations": { "type": "array", "items": { "type": "string" } }, - "inline_attachment_media": { - "type": "boolean" + "metadata_": {}, + "metadata_visibility": { + "type": "integer" }, - "inline_embed_media": { + "two_way_link": { "type": "boolean" - }, - "locale": { + } + }, + "required": [ + "external_id", + "name", + "type", + "user_id" + ] + }, + "ConnectedAccountCommonOAuthTokenResponse": { + "type": "object", + "properties": { + "access_token": { "type": "string" }, - "message_display_compact": { - "type": "boolean" - }, - "native_phone_integration_enabled": { - "type": "boolean" - }, - "render_embeds": { - "type": "boolean" - }, - "render_reactions": { - "type": "boolean" - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - } - }, - "show_current_game": { - "type": "boolean" - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "token_type": { "type": "string" }, - "stream_notifications_enabled": { - "type": "boolean" + "scope": { + "type": "string" }, - "theme": { - "enum": [ - "dark", - "light" - ], + "refresh_token": { "type": "string" }, - "timezone_offset": { + "expires_in": { "type": "integer" - }, - "view_nsfw_guilds": { - "type": "boolean" } - } + }, + "required": [ + "access_token", + "scope", + "token_type" + ] }, - "UserSettingsSchema": { + "ConnectionCallbackSchema": { "type": "object", "properties": { - "afk_timeout": { - "type": "integer" - }, - "allow_accessibility_detection": { - "type": "boolean" - }, - "animate_emoji": { - "type": "boolean" - }, - "animate_stickers": { - "type": "integer" - }, - "contact_sync_enabled": { - "type": "boolean" - }, - "convert_emoticons": { - "type": "boolean" - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/components/schemas/CustomStatus" - }, - { - "type": "null" - } - ] - }, - "default_guilds_restricted": { - "type": "boolean" + "code": { + "type": "string" }, - "detect_platform_accounts": { - "type": "boolean" + "state": { + "type": "string" }, - "developer_mode": { + "insecure": { "type": "boolean" }, - "disable_games_tab": { + "friend_sync": { "type": "boolean" }, - "enable_tts_command": { + "openid_params": {} + }, + "required": [ + "friend_sync", + "insecure", + "state" + ] + }, + "ConnectionUpdateSchema": { + "type": "object", + "properties": { + "visibility": { "type": "boolean" }, - "explicit_content_filter": { - "type": "integer" - }, - "friend_discovery_flags": { - "type": "integer" - }, - "friend_source_flags": { - "$ref": "#/components/schemas/FriendSourceFlags" - }, - "gateway_connected": { + "show_activity": { "type": "boolean" }, - "gif_auto_play": { + "metadata_visibility": { "type": "boolean" + } + } + }, + "DmChannelCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildFolder" - } - }, - "guild_positions": { + "recipients": { "type": "array", "items": { "type": "string" } }, - "inline_attachment_media": { - "type": "boolean" - }, - "inline_embed_media": { - "type": "boolean" - }, - "locale": { + "recipient_id": { "type": "string" }, - "message_display_compact": { - "type": "boolean" - }, - "native_phone_integration_enabled": { - "type": "boolean" - }, - "render_embeds": { - "type": "boolean" - }, - "render_reactions": { - "type": "boolean" - }, - "restricted_guilds": { + "access_tokens": { "type": "array", "items": { "type": "string" } - }, - "show_current_game": { + } + } + }, + "EmailDomainLookupSchema": { + "type": "object", + "properties": { + "allow_multiple_guilds": { "type": "boolean" }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "email": { "type": "string" }, - "stream_notifications_enabled": { + "use_verification_code": { "type": "boolean" }, - "theme": { - "enum": [ - "dark", - "light" - ], + "guild_id": { "type": "string" - }, - "timezone_offset": { - "type": "integer" - }, - "view_nsfw_guilds": { - "type": "boolean" } }, "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", - "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" + "allow_multiple_guilds", + "email", + "use_verification_code" ] }, - "StickersResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/StickerResponse" - } - }, - "StickerResponse": { + "EmailDomainLookupVerifyCodeSchema": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "email": { "type": "string" }, - "pack_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "guild_id": { "type": "string" }, + "code": { + "type": "string" + } + }, + "required": [ + "code", + "email", + "guild_id" + ] + }, + "EmojiCreateSchema": { + "type": "object", + "properties": { "name": { "type": "string" }, - "description": { - "type": "string", - "nullable": true - }, - "tags": { + "image": { "type": "string" }, - "type": { - "$ref": "#/components/schemas/StickerType" - }, - "format_type": { - "$ref": "#/components/schemas/StickerFormatType" - }, - "available": { - "type": "boolean" + "require_colons": { + "type": "boolean", + "nullable": true }, - "guild_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "image" + ] + }, + "EmojiModifySchema": { + "type": "object", + "properties": { + "name": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/PartialUser" + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ForgotPasswordSchema": { + "type": "object", + "properties": { + "login": { + "type": "string" }, - "sort_value": { - "type": "integer" + "captcha_key": { + "type": "string" } }, "required": [ - "description", - "format_type", - "id", - "name", - "tags", - "type" + "login" ] }, - "IdentifySchema": { + "GreetRequestSchema": { "type": "object", "properties": { - "token": { - "type": "string" + "sticker_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "properties": { + "allowed_mentions": { + "$ref": "#/components/schemas/AllowedMentions" + }, + "message_reference": { "type": "object", "properties": { - "os": { - "type": "string" - }, - "os_atch": { - "type": "string" - }, - "browser": { - "type": "string" - }, - "device": { - "type": "string" - }, - "$os": { - "type": "string" - }, - "$browser": { - "type": "string" - }, - "$device": { - "type": "string" - }, - "browser_user_agent": { - "type": "string" - }, - "browser_version": { - "type": "string" - }, - "os_version": { - "type": "string" - }, - "referrer": { - "type": "string" - }, - "referring_domain": { - "type": "string" - }, - "referrer_current": { - "type": "string" - }, - "referring_domain_current": { - "type": "string" - }, - "release_channel": { - "enum": [ - "canary", - "dev", - "ptb", - "stable" - ], + "message_id": { "type": "string" }, - "client_build_number": { - "type": "integer" - }, - "client_event_source": { + "channel_id": { "type": "string" }, - "client_version": { + "guild_id": { "type": "string" }, - "system_locale": { - "type": "string" + "fail_if_not_exists": { + "type": "boolean" } }, - "additionalProperties": false - }, - "intents": { - "type": "number" - }, - "presence": { - "$ref": "#/components/schemas/ActivitySchema" - }, - "compress": { - "type": "boolean" + "additionalProperties": false, + "required": [ + "message_id" + ] + } + }, + "required": [ + "sticker_ids" + ] + }, + "GuildCreateSchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" }, - "large_threshold": { - "type": "integer" + "region": { + "type": "string" }, - "largeThreshold": { - "type": "integer" + "icon": { + "type": "string", + "nullable": true }, - "shard": { - "minItems": 2, - "maxItems": 2, + "channels": { "type": "array", "items": { - "type": "number" + "$ref": "#/components/schemas/ChannelCreateSchema" } }, - "guild_subscriptions": { - "type": "boolean" + "system_channel_id": { + "type": "string" }, - "capabilities": { - "type": "integer" + "rules_channel_id": { + "type": "string" }, - "client_state": { + "guild_template_code": { + "type": "string" + }, + "staff_only": { + "type": "boolean" + } + } + }, + "GuildSubscriptionsBulkSchema": { + "type": "object", + "properties": { + "subscriptions": { "type": "object", - "properties": { - "guild_hashes": {}, - "highest_last_message_id": { - "type": "integer" - }, - "read_state_version": { - "type": "integer" - }, - "user_guild_settings_version": { - "type": "integer" - }, - "user_settings_version": { - "type": "integer" - }, - "useruser_guild_settings_version": { - "type": "integer" - }, - "private_channels_version": { - "type": "integer" - }, - "guild_versions": {}, - "api_code_version": { - "type": "integer" - }, - "initial_guild_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "clientState": { - "type": "object", - "properties": { - "guildHashes": {}, - "highestLastMessageId": { - "type": "integer" - }, - "readStateVersion": { - "type": "integer" - }, - "userGuildSettingsVersion": { - "type": "integer" - }, - "useruserGuildSettingsVersion": { - "type": "integer" - }, - "guildVersions": {}, - "apiCodeVersion": { - "type": "integer" - }, - "initialGuildId": { - "type": "string" - } - }, - "additionalProperties": false - }, - "v": { - "type": "integer" + "additionalProperties": { + "$ref": "#/components/schemas/GuildSubscriptionSchema" + } } }, "required": [ - "properties", - "token" + "subscriptions" ] }, - "StreamCreateSchema": { + "GuildSubscriptionSchema": { "type": "object", "properties": { - "type": { - "enum": [ - "call", - "guild" - ], - "type": "string" + "channels": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "integer" + } + } + } }, - "channel_id": { - "type": "string" + "activities": { + "type": "boolean" }, - "guild_id": { - "type": "string" + "threads": { + "type": "boolean" }, - "preferred_region": { - "type": "string" - } - }, - "required": [ - "channel_id", - "type" - ] - }, - "StreamDeleteSchema": { - "type": "object", - "properties": { - "stream_key": { - "type": "string" - } - }, - "required": [ - "stream_key" - ] - }, - "StreamWatchSchema": { - "type": "object", - "properties": { - "stream_key": { - "type": "string" + "typing": { + "const": true, + "type": "boolean" + }, + "members": { + "type": "array", + "items": { + "type": "string" + } + }, + "member_updates": { + "type": "boolean" + }, + "thread_member_lists": { + "type": "array", + "items": {} } - }, - "required": [ - "stream_key" - ] + } }, - "APIErrorResponse": { + "GuildTemplateCreateSchema": { "type": "object", "properties": { - "code": { - "type": "integer" - }, - "message": { + "name": { "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" - ] - } + "icon": { + "type": "string", + "nullable": true } }, "required": [ - "code", - "errors", - "message" + "name" ] }, - "CaptchaRequiredResponse": { + "GuildUpdateSchema": { "type": "object", "properties": { - "captcha_key": { - "type": "string" + "banner": { + "type": "string", + "nullable": true }, - "captcha_sitekey": { - "type": "string" + "splash": { + "type": "string", + "nullable": true }, - "captcha_service": { + "description": { "type": "string" - } - }, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "APIErrorOrCaptchaResponse": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIErrorResponse" }, - { - "$ref": "#/components/schemas/CaptchaRequiredResponse" - } - ] - }, - "AccountStandingResponse": { - "type": "object", - "properties": { - "classifications": { + "features": { "type": "array", "items": { - "$ref": "#/components/schemas/Classification" + "type": "string" } }, - "guild_classifications": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildClassification" - } + "verification_level": { + "type": "integer" }, - "account_standing": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/AccountStandingState" - } - }, - "additionalProperties": false, - "required": [ - "state" - ] + "default_message_notifications": { + "type": "integer" }, - "is_dsa_eligible": { - "type": "boolean" + "system_channel_flags": { + "type": "integer" }, - "username": { - "type": "string" + "explicit_content_filter": { + "type": "integer" }, - "discriminator": { + "public_updates_channel_id": { "type": "string" }, - "is_appeal_eligible": { - "type": "boolean" + "afk_timeout": { + "type": "integer" }, - "appeal_eligibility": { - "type": "array", - "items": { + "afk_channel_id": { + "type": "string" + }, + "preferred_locale": { + "type": "string" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "discovery_splash": { + "type": "string" + }, + "safety_alerts_channel_id": { + "type": "string", + "nullable": true + }, + "name": { + "maxLength": 100, + "type": "string" + }, + "region": { + "type": "string" + }, + "icon": { + "type": "string", + "nullable": true + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "guild_template_code": { + "type": "string" + }, + "staff_only": { + "type": "boolean" + } + } + }, + "GuildUpdateWelcomeScreenSchema": { + "type": "object", + "properties": { + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + }, + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + } + } + }, + "HubWaitlistSignupSchema": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "school": { + "type": "string" + } + }, + "required": [ + "email", + "school" + ] + }, + "InviteCreateSchema": { + "type": "object", + "properties": { + "target_user_id": { + "type": "string" + }, + "target_type": { + "type": "string" + }, + "validate": { + "type": "string" + }, + "max_age": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "temporary": { + "type": "boolean" + }, + "unique": { + "type": "boolean" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "flags": { + "type": "integer" + } + } + }, + "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" + ] + } + } + }, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "APIErrorOrCaptchaResponse": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIErrorResponse" + }, + { + "$ref": "#/components/schemas/CaptchaRequiredResponse" + } + ] + }, + "AccountStandingResponse": { + "type": "object", + "properties": { + "classifications": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Classification" + } + }, + "guild_classifications": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildClassification" + } + }, + "account_standing": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/AccountStandingState" + } + }, + "additionalProperties": false, + "required": [ + "state" + ] + }, + "is_dsa_eligible": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "is_appeal_eligible": { + "type": "boolean" + }, + "appeal_eligibility": { + "type": "array", + "items": { "$ref": "#/components/schemas/AppealEligibility" } } @@ -1664,9 +1789,6 @@ "name": { "type": "string" }, - "primary_category_id": { - "type": "string" - }, "large": { "type": "boolean" }, @@ -1685,9 +1807,6 @@ "presence_count": { "type": "integer" }, - "template_id": { - "type": "string" - }, "mfa_level": { "type": "integer" }, @@ -1725,10 +1844,6 @@ "type": "string", "nullable": true }, - "banner": { - "type": "string", - "nullable": true - }, "system_channel_id": { "type": "string" }, @@ -1741,7 +1856,11 @@ "staff_only": { "type": "boolean" }, - "splash": { + "banner": { + "type": "string", + "nullable": true + }, + "splash": { "type": "string", "nullable": true }, @@ -2535,2094 +2654,2085 @@ "token" ] }, - "APIGuild": { + "ApplicationCommandCreateSchema": { "type": "object", "properties": { - "name": { - "type": "string" + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" }, - "region": { + "name": { "type": "string" }, - "insert": { + "name_localizations": { "type": "object", - "additionalProperties": false + "additionalProperties": { + "type": "string" + } }, - "id": { + "description": { "type": "string" }, - "icon": { - "type": "string" + "description_localizations": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "parent": { - "type": "string" + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOption" + } }, - "owner_id": { + "default_member_permissions": { "type": "string" }, - "nsfw": { + "dm_permission": { "type": "boolean" }, - "invites": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Invite" - } + "nsfw": { + "type": "boolean" }, - "voice_states": { + "integration_types": { "type": "array", "items": { - "$ref": "#/components/schemas/VoiceState" + "$ref": "#/components/schemas/ApplicationIntegrationType" } }, - "webhooks": { + "contexts": { "type": "array", "items": { - "$ref": "#/components/schemas/Webhook" + "$ref": "#/components/schemas/InteractionContextType" } }, - "member_count": { - "type": "integer" + "handler": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + } + }, + "required": [ + "name" + ] + }, + "BulkApplicationCommandCreateSchema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandCreateSchema" + } + }, + "InteractionCallbackSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType" }, - "get_annotations": { - "type": "object", - "additionalProperties": false + "data": {} + }, + "required": [ + "data", + "type" + ] + }, + "InteractionCallbacksSchema": { + "anyOf": [ + { + "$ref": "#/components/schemas/PongCallback" }, - "clean_data": { - "type": "object", - "additionalProperties": false + { + "$ref": "#/components/schemas/AckCallback" }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } + { + "$ref": "#/components/schemas/MessageCallback" }, - "banner": { - "type": "string" + { + "$ref": "#/components/schemas/MessageWSourceCallback" }, - "channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Channel" - } + { + "$ref": "#/components/schemas/MessageDWSourceCallback" }, - "system_channel_id": { - "type": "string", - "nullable": true + { + "$ref": "#/components/schemas/MessageUpdateCallback" }, - "rules_channel_id": { - "type": "string", - "nullable": true + { + "$ref": "#/components/schemas/MessageDUpdateCallback" + } + ] + }, + "InteractionCreateSchema": { + "type": "object", + "properties": { + "version": { + "type": "integer" }, - "splash": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "description": { + "application_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "verification_level": { - "type": "integer" - }, - "default_message_notifications": { - "type": "integer" - }, - "system_channel_flags": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" + "type": { + "$ref": "#/components/schemas/InteractionType" }, - "public_updates_channel_id": { - "type": "string", - "nullable": true + "token": { + "type": "string" }, - "afk_timeout": { - "type": "integer" + "data": { + "type": "object", + "properties": {}, + "additionalProperties": true }, - "afk_channel_id": { - "type": "string", - "nullable": true + "guild": { + "$ref": "#/components/schemas/InteractionGuild" }, - "preferred_locale": { + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "discovery_splash": { + "guild_locale": { "type": "string" }, - "bans": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Ban" - } + "channel": { + "$ref": "#/components/schemas/Channel" }, - "primary_category_id": { + "channel_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "large": { - "type": "boolean" + "member": { + "$ref": "#/components/schemas/PublicMember" }, - "max_members": { - "type": "integer" + "user": { + "$ref": "#/components/schemas/PublicUser" }, - "max_presences": { - "type": "integer" + "locale": { + "type": "string" }, - "max_video_channel_users": { - "type": "integer" + "message": { + "$ref": "#/components/schemas/Message" }, - "presence_count": { - "type": "integer" + "app_permissions": { + "type": "string" }, - "members": { + "entitlements": { "type": "array", "items": { - "$ref": "#/components/schemas/Member" + "type": "object", + "properties": {}, + "additionalProperties": true } }, - "template_id": { - "type": "string" - }, - "emojis": { + "entitlement_sku_ids": { "type": "array", "items": { - "$ref": "#/components/schemas/Emoji" + "type": "string" } }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" + "authorizing_integration_owners": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "type": "string" + } } }, - "mfa_level": { + "context": { "type": "integer" }, - "premium_subscription_count": { + "attachment_size_limit": { "type": "integer" + } + }, + "required": [ + "app_permissions", + "application_id", + "attachment_size_limit", + "id", + "token", + "type", + "version" + ] + }, + "ApplicationCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "premium_tier": { - "type": "integer" - }, - "unavailable": { - "type": "boolean" - }, - "welcome_screen": { - "$ref": "#/components/schemas/GuildWelcomeScreen", - "description": "DEPRECATED: Look at the new Guild onboarding screens." - }, - "widget_channel_id": { + "team_id": { "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "discovery_weight": { - "type": "integer" - }, - "discovery_excluded": { - "type": "boolean" } }, "required": [ - "bans", - "channel_ordering", - "channels", - "clean_data", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", - "get_annotations", - "id", - "insert", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "name" ] }, - "APIPublicUser": { + "ApplicationModifySchema": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "description": { "type": "string" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { + "icon": { "type": "string" }, - "banner": { + "cover_image": { "type": "string" }, - "bio": { + "interactions_endpoint_url": { "type": "string" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "max_participants": { + "type": "integer", + "nullable": true }, - "pronouns": { + "name": { "type": "string" }, - "username": { + "privacy_policy_url": { "type": "string" }, - "discriminator": { + "role_connections_verification_url": { "type": "string" }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "badge_ids": { + "tags": { "type": "array", "items": { "type": "string" } }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" + "terms_of_service_url": { + "type": "string" }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" + "bot_public": { + "type": "boolean" }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" + "bot_require_code_grant": { + "type": "boolean" }, - "primary_guild": { - "$ref": "#/components/schemas/PrimaryGuild" + "flags": { + "type": "integer" + }, + "custom_install_url": { + "type": "string" + }, + "guild_id": { + "type": "string" } - }, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] + } }, - "APIPrivateUser": { + "SendableApplicationCommandDataSchema": { "type": "object", "properties": { - "email": { - "type": "string" - }, "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "flags": { - "type": "integer" - }, - "verified": { - "type": "boolean" + "$ref": "#/components/schemas/Snowflake" }, - "premium_since": { - "type": "string", - "format": "date-time" + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" }, - "avatar": { + "name": { "type": "string" }, - "banner": { - "type": "string" + "version": { + "$ref": "#/components/schemas/Snowflake" }, - "bio": { - "type": "string" + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true }, - "theme_colors": { + "options": { "type": "array", "items": { - "type": "integer" + "$ref": "#/components/schemas/ApplicationCommandOption" } }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/components/schemas/Snowflake" }, - "badge_ids": { + "attachments": { "type": "array", "items": { - "type": "string" + "type": "object", + "properties": {}, + "additionalProperties": true } - }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" - }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" - }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" - }, - "primary_guild": { - "$ref": "#/components/schemas/PrimaryGuild" - }, - "mfa_enabled": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - }, - "settings": { - "$ref": "#/components/schemas/UserSettingsSchema" } }, "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" + "name", + "version" ] }, - "APIGuildArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/APIGuild" - } - }, - "APIDMChannelArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DmChannelDTO" - } - }, - "APIBackupCodeArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BackupCode" - } - }, - "UserUpdateResponse": { + "SendableMessageComponentDataSchema": { "type": "object", "properties": { - "newToken": { - "type": "string" + "component_type": { + "enum": [ + 1, + 10, + 11, + 12, + 13, + 14, + 16, + 17, + 18, + 19, + 2, + 20, + 21, + 22, + 23, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "type": "number" }, - "email": { + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "custom_id": { "type": "string" }, + "values": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/Snowflake" + } + } + ] + } + }, + "required": [ + "custom_id" + ] + }, + "SendableModalSubmitDataSchema": { + "type": "object", + "properties": { "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "$ref": "#/components/schemas/Snowflake" + }, + "custom_id": { "type": "string" }, - "flags": { + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadAttachmentRequestSchema" + } + } + }, + "required": [ + "custom_id", + "id" + ] + }, + "InstanceUserDeleteSchema": { + "$ref": "#/components/schemas/InstanceUserDeleteSchemaContent" + }, + "UserSettingsUpdateSchema": { + "type": "object", + "properties": { + "afk_timeout": { "type": "integer" }, - "verified": { + "allow_accessibility_detection": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" + "animate_emoji": { + "type": "boolean" }, - "avatar": { - "type": "string" + "animate_stickers": { + "type": "integer" }, - "banner": { - "type": "string" + "contact_sync_enabled": { + "type": "boolean" }, - "bio": { - "type": "string" + "convert_emoticons": { + "type": "boolean" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "custom_status": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomStatus" + }, + { + "type": "null" + } + ] }, - "pronouns": { - "type": "string" + "default_guilds_restricted": { + "type": "boolean" }, - "username": { - "type": "string" + "detect_platform_accounts": { + "type": "boolean" }, - "discriminator": { - "type": "string" + "developer_mode": { + "type": "boolean" }, - "public_flags": { + "disable_games_tab": { + "type": "boolean" + }, + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { "type": "integer" }, - "accent_color": { + "friend_discovery_flags": { "type": "integer" }, - "bot": { + "friend_source_flags": { + "$ref": "#/components/schemas/FriendSourceFlags" + }, + "gateway_connected": { "type": "boolean" }, - "premium_type": { - "type": "integer" + "gif_auto_play": { + "type": "boolean" }, - "badge_ids": { + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildFolder" + } + }, + "guild_positions": { "type": "array", "items": { "type": "string" } }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" + "inline_attachment_media": { + "type": "boolean" }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" + "inline_embed_media": { + "type": "boolean" }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" + "locale": { + "type": "string" }, - "primary_guild": { - "$ref": "#/components/schemas/PrimaryGuild" + "message_display_compact": { + "type": "boolean" }, - "mfa_enabled": { + "native_phone_integration_enabled": { "type": "boolean" }, - "phone": { - "type": "string" + "render_embeds": { + "type": "boolean" }, - "nsfw_allowed": { + "render_reactions": { "type": "boolean" }, - "premium": { + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { "type": "boolean" }, - "purchased_flags": { + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string" + }, + "timezone_offset": { "type": "integer" }, - "premium_usage_flags": { + "view_nsfw_guilds": { + "type": "boolean" + } + } + }, + "UserSettingsSchema": { + "type": "object", + "properties": { + "afk_timeout": { "type": "integer" }, - "disabled": { + "allow_accessibility_detection": { "type": "boolean" }, - "settings": { - "$ref": "#/components/schemas/UserSettingsSchema" - } - }, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ] - }, - "ApplicationDetectableResponse": { - "type": "array", - "items": {} - }, - "ApplicationEntitlementsResponse": { - "type": "array", - "items": {} - }, - "ApplicationSkusResponse": { - "type": "array", - "items": {} - }, - "APIApplicationArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Application" - } - }, - "APIInviteArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Invite" - } - }, - "APIMessageArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Message" - } - }, - "APIWebhookArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Webhook" - } - }, - "APIDiscoveryCategoryArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Categories" - } - }, - "APIGeneralConfiguration": { - "type": "object", - "properties": { - "instanceName": { - "type": "string", - "default": "Spacebar Instance" - }, - "serverName": { - "type": "string", - "default": null, - "nullable": true - }, - "instanceDescription": { - "type": "string", - "default": "This is a Spacebar instance made in the pre-release days", - "nullable": true - }, - "frontPage": { - "type": "string", - "default": null, - "nullable": true - }, - "tosPage": { - "type": "string", - "default": null, - "nullable": true - }, - "correspondenceEmail": { - "type": "string", - "default": null, - "nullable": true - }, - "correspondenceUserID": { - "type": "string", - "default": null, - "nullable": true - }, - "image": { - "type": "string", - "default": null, - "nullable": true + "animate_emoji": { + "type": "boolean" }, - "instanceId": { - "type": "string" + "animate_stickers": { + "type": "integer" }, - "autoCreateBotUsers": { - "type": "boolean", - "default": false - } - }, - "required": [ - "autoCreateBotUsers", - "correspondenceEmail", - "correspondenceUserID", - "frontPage", - "image", - "instanceDescription", - "instanceId", - "instanceName", - "serverName", - "tosPage" - ] - }, - "APIChannelArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Channel" - } - }, - "APIMemberArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Member" - } - }, - "APIPublicMember": { - "type": "object", - "properties": { - "id": { - "type": "string" + "contact_sync_enabled": { + "type": "boolean" }, - "guild_id": { - "type": "string" + "convert_emoticons": { + "type": "boolean" }, - "flags": { - "type": "integer" + "custom_status": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomStatus" + }, + { + "type": "null" + } + ] }, - "nick": { - "type": "string" + "default_guilds_restricted": { + "type": "boolean" }, - "joined_at": { - "type": "string", - "format": "date-time" + "detect_platform_accounts": { + "type": "boolean" }, - "pending": { + "developer_mode": { "type": "boolean" }, - "deaf": { + "disable_games_tab": { "type": "boolean" }, - "mute": { + "enable_tts_command": { "type": "boolean" }, - "premium_since": { + "explicit_content_filter": { "type": "integer" }, - "avatar": { - "type": "string" + "friend_discovery_flags": { + "type": "integer" }, - "banner": { - "type": "string" + "friend_source_flags": { + "$ref": "#/components/schemas/FriendSourceFlags" }, - "bio": { - "type": "string" + "gateway_connected": { + "type": "boolean" }, - "theme_colors": { + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { "type": "array", "items": { - "type": "integer" + "$ref": "#/components/schemas/GuildFolder" } }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "user": { - "$ref": "#/components/schemas/PublicUser" - }, - "roles": { + "guild_positions": { "type": "array", "items": { "type": "string" } - } - }, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ] - }, - "APIGuildWithJoinedAt": { - "type": "object", - "properties": { - "joined_at": { - "type": "string" }, - "id": { - "type": "string" + "inline_attachment_media": { + "type": "boolean" }, - "name": { - "type": "string" + "inline_embed_media": { + "type": "boolean" }, - "primary_category_id": { + "locale": { "type": "string" }, - "large": { + "message_display_compact": { "type": "boolean" }, - "max_members": { - "type": "integer" + "native_phone_integration_enabled": { + "type": "boolean" }, - "max_presences": { - "type": "integer" + "render_embeds": { + "type": "boolean" }, - "max_video_channel_users": { - "type": "integer" + "render_reactions": { + "type": "boolean" }, - "member_count": { - "type": "integer" + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } }, - "presence_count": { - "type": "integer" - }, - "template_id": { - "type": "string" - }, - "mfa_level": { - "type": "integer" + "show_current_game": { + "type": "boolean" }, - "owner_id": { + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], "type": "string" }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/components/schemas/GuildWelcomeScreen" + "stream_notifications_enabled": { + "type": "boolean" }, - "widget_channel_id": { + "theme": { + "enum": [ + "dark", + "light" + ], "type": "string" }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { + "timezone_offset": { "type": "integer" }, - "nsfw": { + "view_nsfw_guilds": { "type": "boolean" - }, - "parent": { + } + }, + "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", + "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" + ] + }, + "GuildProfileResponse": { + "type": "object", + "properties": { + "id": { "type": "string" }, - "region": { + "name": { "type": "string" }, - "icon": { + "icon_hash": { "type": "string", "nullable": true }, - "banner": { - "type": "string", - "nullable": true + "member_count": { + "type": "integer" }, - "system_channel_id": { - "type": "string" + "online_count": { + "type": "integer" }, - "rules_channel_id": { + "description": { "type": "string" }, - "guild_template_code": { + "brand_color_primary": { "type": "string" }, - "staff_only": { - "type": "boolean" - }, - "splash": { + "banner_hash": { "type": "string", "nullable": true }, - "description": { - "type": "string" - }, - "features": { + "game_application_ids": { "type": "array", "items": { "type": "string" } }, - "verification_level": { - "type": "integer" - }, - "default_message_notifications": { - "type": "integer" + "game_activity": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/GameActivity" + } }, - "system_channel_flags": { - "type": "integer" + "tag": { + "type": "string", + "nullable": true }, - "explicit_content_filter": { - "type": "integer" + "badge": { + "$ref": "#/components/schemas/GuildBadgeType" }, - "public_updates_channel_id": { + "badge_color_primary": { "type": "string" }, - "afk_timeout": { - "type": "integer" - }, - "afk_channel_id": { + "badge_color_secondary": { "type": "string" }, - "preferred_locale": { + "badge_hash": { "type": "string" }, - "premium_progress_bar_enabled": { - "type": "boolean" + "traits": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildTrait" + } }, - "discovery_splash": { - "type": "string" + "features": { + "type": "array", + "items": { + "type": "string" + } }, - "safety_alerts_channel_id": { + "visibility": { + "$ref": "#/components/schemas/GuildVisibilityLevel" + }, + "custom_banner_hash": { "type": "string", "nullable": true + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" } }, "required": [ + "badge", + "badge_color_primary", + "badge_color_secondary", + "badge_hash", + "banner_hash", + "brand_color_primary", + "custom_banner_hash", + "description", + "features", + "game_activity", + "game_application_ids", + "icon_hash", "id", - "joined_at", - "large", - "max_members", - "max_presences", - "max_video_channel_users", "member_count", - "mfa_level", "name", - "nsfw", - "nsfw_level", - "owner_id", - "parent", + "online_count", "premium_subscription_count", "premium_tier", - "presence_count", - "primary_category_id", - "template_id", - "welcome_screen", - "widget_channel_id", - "widget_enabled" + "tag", + "traits", + "visibility" ] }, - "APIRoleArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, - "APITemplateArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Template" - } - }, - "APIGuildVoiceRegion": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildVoiceRegion" - } - }, - "APILimitsConfiguration": { + "GuildAvailableSchema": { "type": "object", "properties": { - "user": { - "$ref": "#/components/schemas/UserLimits" - }, - "guild": { - "$ref": "#/components/schemas/GuildLimits" - }, - "message": { - "$ref": "#/components/schemas/MessageLimits" - }, - "channel": { - "$ref": "#/components/schemas/ChannelLimits" - }, - "rate": { - "$ref": "#/components/schemas/RateLimits" + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" }, - "absoluteRate": { - "$ref": "#/components/schemas/GlobalRateLimits" + "available": { + "type": "boolean" } }, "required": [ - "absoluteRate", - "channel", - "guild", - "message", - "rate", - "user" + "available", + "id" ] }, - "APIConnectionsConfiguration": { - "type": "object" + "StickersResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StickerResponse" + } }, - "UpdatesResponse": { + "StickerResponse": { "type": "object", "properties": { - "name": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "pub_date": { + "pack_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "url": { + "name": { "type": "string" }, - "notes": { + "description": { "type": "string", "nullable": true - } - }, + }, + "tags": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/StickerType" + }, + "format_type": { + "$ref": "#/components/schemas/StickerFormatType" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/PartialUser" + }, + "sort_value": { + "type": "integer" + } + }, "required": [ + "description", + "format_type", + "id", "name", - "notes", - "pub_date", - "url" + "tags", + "type" ] }, - "UploadAttachmentResponseSchema": { + "IdentifySchema": { "type": "object", "properties": { - "attachments": { + "token": { + "type": "string" + }, + "properties": { + "type": "object", + "properties": { + "os": { + "type": "string" + }, + "os_atch": { + "type": "string" + }, + "browser": { + "type": "string" + }, + "device": { + "type": "string" + }, + "$os": { + "type": "string" + }, + "$browser": { + "type": "string" + }, + "$device": { + "type": "string" + }, + "browser_user_agent": { + "type": "string" + }, + "browser_version": { + "type": "string" + }, + "os_version": { + "type": "string" + }, + "referrer": { + "type": "string" + }, + "referring_domain": { + "type": "string" + }, + "referrer_current": { + "type": "string" + }, + "referring_domain_current": { + "type": "string" + }, + "release_channel": { + "enum": [ + "canary", + "dev", + "ptb", + "stable" + ], + "type": "string" + }, + "client_build_number": { + "type": "integer" + }, + "client_event_source": { + "type": "string" + }, + "client_version": { + "type": "string" + }, + "system_locale": { + "type": "string" + } + }, + "additionalProperties": false + }, + "intents": { + "type": "number" + }, + "presence": { + "$ref": "#/components/schemas/ActivitySchema" + }, + "compress": { + "type": "boolean" + }, + "large_threshold": { + "type": "integer" + }, + "largeThreshold": { + "type": "integer" + }, + "shard": { + "minItems": 2, + "maxItems": 2, "type": "array", "items": { - "$ref": "#/components/schemas/UploadAttachmentResponse" + "type": "number" } + }, + "guild_subscriptions": { + "type": "boolean" + }, + "capabilities": { + "type": "integer" + }, + "client_state": { + "type": "object", + "properties": { + "guild_hashes": {}, + "highest_last_message_id": { + "type": "integer" + }, + "read_state_version": { + "type": "integer" + }, + "user_guild_settings_version": { + "type": "integer" + }, + "user_settings_version": { + "type": "integer" + }, + "useruser_guild_settings_version": { + "type": "integer" + }, + "private_channels_version": { + "type": "integer" + }, + "guild_versions": {}, + "api_code_version": { + "type": "integer" + }, + "initial_guild_id": { + "type": "string" + } + }, + "additionalProperties": false + }, + "clientState": { + "type": "object", + "properties": { + "guildHashes": {}, + "highestLastMessageId": { + "type": "integer" + }, + "readStateVersion": { + "type": "integer" + }, + "userGuildSettingsVersion": { + "type": "integer" + }, + "useruserGuildSettingsVersion": { + "type": "integer" + }, + "guildVersions": {}, + "apiCodeVersion": { + "type": "integer" + }, + "initialGuildId": { + "type": "string" + } + }, + "additionalProperties": false + }, + "v": { + "type": "integer" } }, "required": [ - "attachments" + "properties", + "token" ] }, - "UploadAttachmentResponse": { + "StreamCreateSchema": { "type": "object", "properties": { - "id": { + "type": { + "enum": [ + "call", + "guild" + ], "type": "string" }, - "upload_url": { + "channel_id": { "type": "string" }, - "upload_filename": { + "guild_id": { "type": "string" }, - "original_content_type": { + "preferred_region": { "type": "string" } }, "required": [ - "upload_filename", - "upload_url" + "channel_id", + "type" ] }, - "UserNoteResponse": { + "StreamDeleteSchema": { "type": "object", "properties": { - "note": { - "type": "string" - }, - "note_user_id": { + "stream_key": { "type": "string" - }, - "user_id": { + } + }, + "required": [ + "stream_key" + ] + }, + "StreamWatchSchema": { + "type": "object", + "properties": { + "stream_key": { "type": "string" } }, "required": [ - "note", - "note_user_id", - "user_id" + "stream_key" ] }, - "UserProfileResponse": { + "VoiceIdentifySchema": { "type": "object", "properties": { - "user": { - "$ref": "#/components/schemas/PublicUser" + "server_id": { + "type": "string" }, - "connected_accounts": { - "$ref": "#/components/schemas/PublicConnectedAccount" + "user_id": { + "type": "string" }, - "premium_guild_since": { - "type": "string", - "format": "date-time" + "session_id": { + "type": "string" }, - "premium_since": { - "type": "string", - "format": "date-time" + "channel_id": { + "type": "string" }, - "mutual_guilds": { + "token": { + "type": "string" + }, + "video": { + "type": "boolean" + }, + "streams": { "type": "array", "items": { "type": "object", "properties": { - "id": { + "type": { + "enum": [ + "audio", + "screen", + "video" + ], "type": "string" }, - "nick": { + "rid": { "type": "string" + }, + "quality": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "id" + "quality", + "rid", + "type" ] } }, - "premium_type": { + "max_secure_frames_version": { "type": "integer" }, - "profile_themes_experiment_bucket": { + "max_dave_protocol_version": { "type": "integer" - }, - "user_profile": { - "$ref": "#/components/schemas/UserProfile" - }, - "guild_member": { - "$ref": "#/components/schemas/PublicMember" - }, - "guild_member_profile": { - "$ref": "#/components/schemas/PublicMemberProfile" - }, - "badges": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Badge" - } } }, "required": [ - "badges", - "connected_accounts", - "mutual_guilds", - "premium_type", - "profile_themes_experiment_bucket", - "user", - "user_profile" + "server_id", + "session_id", + "token", + "user_id" ] }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } - }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - } - }, - "UserRelationshipsResponse": { + "VoiceVideoSchema": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/RelationshipType" + "audio_ssrc": { + "type": "integer" }, - "nickname": { - "type": "null" + "video_ssrc": { + "type": "integer" }, - "user": { - "$ref": "#/components/schemas/PublicUser" - } - }, - "required": [ - "id", - "nickname", - "type", - "user" - ] - }, - "WebAuthnCreateResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" + "rtx_ssrc": { + "type": "integer" }, - "id": { + "user_id": { "type": "string" - } - }, - "required": [ - "id", - "name" - ] - }, - "WebhookCreateResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/components/schemas/User" }, - "hook": { - "$ref": "#/components/schemas/Webhook" - } - }, - "required": [ - "hook", - "user" - ] - }, - "AckBulkSchema": { - "type": "object", - "properties": { - "read_states": { + "streams": { "type": "array", "items": { "type": "object", "properties": { - "channel_id": { + "type": { + "enum": [ + "audio", + "screen", + "video" + ], "type": "string" }, - "message_id": { + "rid": { "type": "string" }, - "read_state_type": { + "ssrc": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "max_bitrate": { "type": "integer" + }, + "max_framerate": { + "type": "integer" + }, + "max_resolution": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "height", + "type", + "width" + ] } }, "additionalProperties": false, "required": [ - "channel_id", - "message_id", - "read_state_type" + "rid", + "type" ] } } }, "required": [ - "read_states" + "audio_ssrc", + "video_ssrc" ] }, - "ActivitySchema": { + "APIGuild": { "type": "object", "properties": { - "afk": { - "type": "boolean" + "name": { + "type": "string" }, - "status": { - "$ref": "#/components/schemas/Status" + "region": { + "type": "string" }, - "activities": { + "insert": { + "type": "object", + "additionalProperties": false + }, + "id": { + "type": "string" + }, + "channels": { "type": "array", "items": { - "$ref": "#/components/schemas/Activity" + "$ref": "#/components/schemas/Channel" } }, - "since": { - "type": "integer" - } - }, - "required": [ - "status" - ] - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" + "members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Member" + } }, - "guild_id": { + "icon": { "type": "string" }, - "permissions": { + "system_channel_id": { + "type": "string", + "nullable": true + }, + "rules_channel_id": { + "type": "string", + "nullable": true + }, + "banner": { "type": "string" }, - "captcha_key": { + "splash": { "type": "string" }, - "code": { - "minLength": 6, - "maxLength": 6, + "description": { "type": "string" - } - }, - "required": [ - "authorize", - "guild_id", - "permissions" - ] - }, - "AutomodMentionSpamRuleSchema": { - "type": "object", - "properties": { - "mention_total_limit": { + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "verification_level": { "type": "integer" }, - "mention_raid_protection_enabled": { + "default_message_notifications": { + "type": "integer" + }, + "system_channel_flags": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string", + "nullable": true + }, + "afk_timeout": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string", + "nullable": true + }, + "preferred_locale": { + "type": "string" + }, + "premium_progress_bar_enabled": { "type": "boolean" - } - }, - "required": [ - "mention_raid_protection_enabled", - "mention_total_limit" - ] - }, - "AutomodSuspectedSpamRuleSchema": { - "type": "object" - }, - "AutomodCommonlyFlaggedWordsRuleSchema": { - "type": "object", - "properties": { - "allow_list": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 }, - "presets": { - "type": "array", - "items": [ - { - "type": "integer" - } - ], - "minItems": 1, - "maxItems": 1 - } - }, - "required": [ - "allow_list", - "presets" - ] - }, - "AutomodCustomWordsRuleSchema": { - "type": "object", - "properties": { - "allow_list": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 + "discovery_splash": { + "type": "string" }, - "keyword_filter": { + "roles": { "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 + "items": { + "$ref": "#/components/schemas/Role" + } }, - "regex_patterns": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - } - }, - "required": [ - "allow_list", - "keyword_filter", - "regex_patterns" - ] - }, - "AutomodRuleSchema": { - "type": "object", - "properties": { - "creator_id": { + "parent": { "type": "string" }, - "enabled": { + "owner_id": { + "type": "string" + }, + "nsfw": { "type": "boolean" }, - "event_type": { - "type": "integer" + "invites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Invite" + } }, - "exempt_channels": { + "voice_states": { "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 + "items": { + "$ref": "#/components/schemas/VoiceState" + } }, - "exempt_roles": { + "webhooks": { "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 + "items": { + "$ref": "#/components/schemas/Webhook" + } }, - "guild_id": { - "type": "string" + "member_count": { + "type": "integer" }, - "name": { + "get_annotations": { + "type": "object", + "additionalProperties": false + }, + "clean_data": { + "type": "object", + "additionalProperties": false + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Ban" + } + }, + "primary_category_id": { "type": "string" }, - "position": { + "large": { + "type": "boolean" + }, + "max_members": { "type": "integer" }, - "trigger_type": { + "max_presences": { "type": "integer" }, - "trigger_metadata": { - "anyOf": [ - { - "$ref": "#/components/schemas/AutomodMentionSpamRuleSchema" - }, - { - "$ref": "#/components/schemas/AutomodSuspectedSpamRuleSchema" - }, - { - "$ref": "#/components/schemas/AutomodCommonlyFlaggedWordsRuleSchema" - }, - { - "$ref": "#/components/schemas/AutomodCustomWordsRuleSchema" - } - ] - } - }, - "required": [ - "creator_id", - "enabled", - "event_type", - "exempt_channels", - "exempt_roles", - "guild_id", - "name", - "position", - "trigger_metadata", - "trigger_type" - ] - }, - "BackupCodesChallengeSchema": { - "type": "object", - "properties": { - "password": { - "minLength": 1, - "maxLength": 72, - "type": "string" - } - }, - "required": [ - "password" - ] - }, - "BanCreateSchema": { - "type": "object", - "properties": { - "delete_message_seconds": { + "max_video_channel_users": { "type": "integer" }, - "delete_message_days": { + "presence_count": { "type": "integer" }, - "reason": { - "type": "string" - } - } - }, - "BanModeratorSchema": { - "type": "object", - "properties": { - "id": { + "template_id": { "type": "string" }, - "user_id": { - "type": "string" + "emojis": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Emoji" + } }, - "guild_id": { - "type": "string" + "stickers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } }, - "executor_id": { - "type": "string" + "mfa_level": { + "type": "integer" }, - "reason": { + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "unavailable": { + "type": "boolean" + }, + "welcome_screen": { + "$ref": "#/components/schemas/GuildWelcomeScreen", + "description": "DEPRECATED: Look at the new Guild onboarding screens." + }, + "widget_channel_id": { "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "discovery_weight": { + "type": "integer" + }, + "discovery_excluded": { + "type": "boolean" } }, "required": [ - "executor_id", - "guild_id", + "bans", + "channel_ordering", + "channels", + "clean_data", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", + "get_annotations", "id", - "user_id" + "insert", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ] }, - "BanRegistrySchema": { + "APIPublicUser": { "type": "object", "properties": { "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "user_id": { + "banner": { "type": "string" }, - "guild_id": { - "type": "string" + "premium_since": { + "type": "string", + "format": "date-time" }, - "executor_id": { + "avatar": { "type": "string" }, - "ip": { + "bio": { "type": "string" }, - "reason": { - "type": "string" - } - }, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ] - }, - "BotModifySchema": { - "type": "object", - "properties": { - "avatar": { + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { "type": "string" }, "username": { "type": "string" }, - "banner": { + "discriminator": { "type": "string" - } - } - }, - "BulkBanSchema": { - "type": "object", - "properties": { - "user_ids": { - "type": "array", - "items": { - "type": "string" - } }, - "delete_message_seconds": { + "public_flags": { "type": "integer" - } - }, - "required": [ - "user_ids" - ] - }, - "BulkDeleteSchema": { - "type": "object", - "properties": { - "messages": { + }, + "accent_color": { + "type": "integer" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "badge_ids": { "type": "array", "items": { "type": "string" } + }, + "avatar_decoration_data": { + "$ref": "#/components/schemas/AvatarDecorationData" + }, + "display_name_styles": { + "$ref": "#/components/schemas/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/components/schemas/Collectibles" + }, + "primary_guild": { + "$ref": "#/components/schemas/PrimaryGuild" } }, "required": [ - "messages" + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" ] }, - "ChannelModifySchema": { + "APIPrivateUser": { "type": "object", "properties": { - "name": { + "email": { "type": "string" }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 2, - 255, - 3, - 4, - 5, - 6, - 7, - 8, - 9 - ], - "type": "number" + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" }, - "topic": { + "flags": { + "type": "integer" + }, + "banner": { "type": "string" }, - "icon": { + "verified": { + "type": "boolean" + }, + "premium_since": { "type": "string", - "nullable": true + "format": "date-time" }, - "bitrate": { - "type": "integer" + "avatar": { + "type": "string" }, - "user_limit": { - "type": "integer" + "bio": { + "type": "string" }, - "rate_limit_per_user": { + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { "type": "integer" }, - "position": { + "accent_color": { "type": "integer" }, - "invitable": { + "bot": { "type": "boolean" }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "applied_tags": { + "premium_type": { + "type": "integer" + }, + "badge_ids": { "type": "array", "items": { "type": "string" } }, - "parent_id": { - "type": "string" + "avatar_decoration_data": { + "$ref": "#/components/schemas/AvatarDecorationData" }, - "id": { - "type": "string" + "display_name_styles": { + "$ref": "#/components/schemas/DisplayNameStyle" }, - "nsfw": { - "type": "boolean" + "collectibles": { + "$ref": "#/components/schemas/Collectibles" }, - "rtc_region": { - "type": "string" + "primary_guild": { + "$ref": "#/components/schemas/PrimaryGuild" }, - "default_auto_archive_duration": { - "type": "integer" + "mfa_enabled": { + "type": "boolean" }, - "default_reaction_emoji": { - "type": "string", - "nullable": true + "phone": { + "type": "string" }, - "flags": { - "type": "integer" + "nsfw_allowed": { + "type": "boolean" }, - "default_thread_rate_limit_per_user": { - "type": "integer" + "premium": { + "type": "boolean" }, - "video_quality_mode": { + "purchased_flags": { "type": "integer" }, - "auto_archive_duration": { + "premium_usage_flags": { "type": "integer" }, - "archived": { - "type": "boolean" - }, - "locked": { + "disabled": { "type": "boolean" }, - "available_tags": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "moderated": { - "type": [ - "null", - "boolean" - ] - }, - "emoji_id": { - "type": [ - "null", - "string" - ] - }, - "emoji_name": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ] - } - } - } - }, - "ChannelPermissionOverwriteSchema": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ChannelPermissionOverwriteType" + "settings": { + "$ref": "#/components/schemas/UserSettingsSchema" } }, "required": [ - "allow", - "deny", + "bio", + "bot", + "disabled", + "discriminator", + "flags", "id", - "type" + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" ] }, - "ChannelReorderSchema": { + "APIGuildArray": { "type": "array", "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "lock_permissions": { - "type": "boolean" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "id" - ] + "$ref": "#/components/schemas/APIGuild" } }, - "CodesVerificationSchema": { + "APIDMChannelArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DmChannelDTO" + } + }, + "APIBackupCodeArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackupCode" + } + }, + "UserUpdateResponse": { "type": "object", "properties": { - "key": { + "newToken": { "type": "string" }, - "nonce": { + "email": { "type": "string" }, - "regenerate": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "flags": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "verified": { "type": "boolean" - } - }, - "required": [ - "key", - "nonce" - ] - }, - "ConnectedAccountSchema": { - "type": "object", - "properties": { - "external_id": { + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { "type": "string" }, - "user_id": { + "bio": { "type": "string" }, - "token_data": { - "$ref": "#/components/schemas/ConnectedAccountTokenData" + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } }, - "friend_sync": { - "type": "boolean" + "pronouns": { + "type": "string" }, - "name": { + "username": { "type": "string" }, - "revoked": { - "type": "boolean" + "discriminator": { + "type": "string" }, - "show_activity": { + "public_flags": { "type": "integer" }, - "type": { - "type": "string" + "accent_color": { + "type": "integer" }, - "verified": { + "bot": { "type": "boolean" }, - "visibility": { + "premium_type": { "type": "integer" }, - "integrations": { + "badge_ids": { "type": "array", "items": { "type": "string" } }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer" + "avatar_decoration_data": { + "$ref": "#/components/schemas/AvatarDecorationData" }, - "two_way_link": { + "display_name_styles": { + "$ref": "#/components/schemas/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/components/schemas/Collectibles" + }, + "primary_guild": { + "$ref": "#/components/schemas/PrimaryGuild" + }, + "mfa_enabled": { "type": "boolean" - } - }, - "required": [ - "external_id", - "name", - "type", - "user_id" - ] - }, - "ConnectedAccountCommonOAuthTokenResponse": { - "type": "object", - "properties": { - "access_token": { - "type": "string" }, - "token_type": { + "phone": { "type": "string" }, - "scope": { - "type": "string" + "nsfw_allowed": { + "type": "boolean" }, - "refresh_token": { - "type": "string" + "premium": { + "type": "boolean" }, - "expires_in": { + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "settings": { + "$ref": "#/components/schemas/UserSettingsSchema" } }, "required": [ - "access_token", - "scope", - "token_type" + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" ] }, - "ConnectionCallbackSchema": { + "ApplicationDetectableResponse": { + "type": "array", + "items": {} + }, + "ApplicationEntitlementsResponse": { + "type": "array", + "items": {} + }, + "ApplicationSkusResponse": { + "type": "array", + "items": {} + }, + "APIApplicationArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Application" + } + }, + "APIInviteArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Invite" + } + }, + "APIMessageArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message" + } + }, + "APIWebhookArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "APIDiscoveryCategoryArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Categories" + } + }, + "APIGeneralConfiguration": { "type": "object", "properties": { - "code": { + "instanceName": { "type": "string" }, - "state": { - "type": "string" + "serverName": { + "type": "string", + "nullable": true }, - "insecure": { - "type": "boolean" + "instanceDescription": { + "type": "string", + "nullable": true }, - "friend_sync": { - "type": "boolean" + "frontPage": { + "type": "string", + "nullable": true }, - "openid_params": {} + "tosPage": { + "type": "string", + "nullable": true + }, + "correspondenceEmail": { + "type": "string", + "nullable": true + }, + "correspondenceUserID": { + "type": "string", + "nullable": true + }, + "image": { + "type": "string", + "nullable": true + }, + "instanceId": { + "type": "string" + }, + "autoCreateBotUsers": { + "type": "boolean" + } }, "required": [ - "friend_sync", - "insecure", - "state" + "autoCreateBotUsers", + "correspondenceEmail", + "correspondenceUserID", + "frontPage", + "image", + "instanceDescription", + "instanceId", + "instanceName", + "serverName", + "tosPage" ] }, - "ConnectionUpdateSchema": { + "APIChannelArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Channel" + } + }, + "APIMemberArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Member" + } + }, + "APIPublicMember": { "type": "object", "properties": { - "visibility": { + "id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "nick": { + "type": "string" + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "pending": { "type": "boolean" }, - "show_activity": { + "deaf": { "type": "boolean" }, - "metadata_visibility": { + "mute": { "type": "boolean" - } - } - }, - "DmChannelCreateSchema": { - "type": "object", - "properties": { - "name": { + }, + "premium_since": { + "type": "integer" + }, + "avatar": { "type": "string" }, - "recipients": { + "bio": { + "type": "string" + }, + "theme_colors": { "type": "array", "items": { - "type": "string" + "type": "integer" } }, - "recipient_id": { + "pronouns": { "type": "string" }, - "access_tokens": { + "communication_disabled_until": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "user": { + "$ref": "#/components/schemas/PublicUser" + }, + "roles": { "type": "array", "items": { "type": "string" } } - } + }, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "flags", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" + ] }, - "EmailDomainLookupSchema": { + "APIGuildWithJoinedAt": { "type": "object", "properties": { - "allow_multiple_guilds": { - "type": "boolean" + "joined_at": { + "type": "string" }, - "email": { + "id": { "type": "string" }, - "use_verification_code": { + "name": { + "type": "string" + }, + "large": { "type": "boolean" }, - "guild_id": { - "type": "string" - } - }, - "required": [ - "allow_multiple_guilds", - "email", - "use_verification_code" - ] - }, - "EmailDomainLookupVerifyCodeSchema": { - "type": "object", - "properties": { - "email": { - "type": "string" + "max_members": { + "type": "integer" }, - "guild_id": { - "type": "string" + "max_presences": { + "type": "integer" }, - "code": { - "type": "string" - } - }, - "required": [ - "code", - "email", - "guild_id" - ] - }, - "EmojiCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" + "max_video_channel_users": { + "type": "integer" }, - "image": { - "type": "string" + "member_count": { + "type": "integer" }, - "require_colons": { - "type": "boolean", - "nullable": true + "presence_count": { + "type": "integer" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "image" - ] - }, - "EmojiModifySchema": { - "type": "object", - "properties": { - "name": { - "type": "string" + "mfa_level": { + "type": "integer" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ForgotPasswordSchema": { - "type": "object", - "properties": { - "login": { + "owner_id": { "type": "string" }, - "captcha_key": { + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/components/schemas/GuildWelcomeScreen" + }, + "widget_channel_id": { "type": "string" - } - }, - "required": [ - "login" - ] - }, - "GreetRequestSchema": { - "type": "object", - "properties": { - "sticker_ids": { - "type": "array", - "items": { - "type": "string" - } }, - "allowed_mentions": { - "$ref": "#/components/schemas/AllowedMentions" + "widget_enabled": { + "type": "boolean" }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - } - }, - "required": [ - "sticker_ids" - ] - }, - "GuildCreateSchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean" + }, + "parent": { "type": "string" }, "region": { @@ -4632,12 +4742,6 @@ "type": "string", "nullable": true }, - "channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChannelCreateSchema" - } - }, "system_channel_id": { "type": "string" }, @@ -4649,81 +4753,7 @@ }, "staff_only": { "type": "boolean" - } - } - }, - "GuildSubscriptionsBulkSchema": { - "type": "object", - "properties": { - "subscriptions": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/GuildSubscriptionSchema" - } - } - }, - "required": [ - "subscriptions" - ] - }, - "GuildSubscriptionSchema": { - "type": "object", - "properties": { - "channels": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "members": { - "type": "array", - "items": { - "type": "string" - } - }, - "activities": { - "type": "boolean" - }, - "threads": { - "type": "boolean" - }, - "typing": { - "const": true, - "type": "boolean" - }, - "member_updates": { - "type": "boolean" - }, - "thread_member_lists": { - "type": "array", - "items": {} - } - } - }, - "GuildTemplateCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" }, - "icon": { - "type": "string", - "nullable": true - } - }, - "required": [ - "name" - ] - }, - "GuildUpdateSchema": { - "type": "object", - "properties": { "banner": { "type": "string", "nullable": true @@ -4774,352 +4804,531 @@ "safety_alerts_channel_id": { "type": "string", "nullable": true - }, - "name": { - "maxLength": 100, - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "guild_template_code": { - "type": "string" - }, - "staff_only": { - "type": "boolean" } - } + }, + "required": [ + "id", + "joined_at", + "name", + "nsfw", + "welcome_screen", + "widget_enabled" + ] }, - "GuildUpdateWelcomeScreenSchema": { - "type": "object", - "properties": { - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - } + "APIRoleArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" } }, - "HubWaitlistSignupSchema": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "school": { - "type": "string" - } - }, - "required": [ - "email", - "school" - ] + "APITemplateArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Template" + } }, - "InviteCreateSchema": { - "type": "object", - "properties": { - "target_user_id": { - "type": "string" - }, - "target_type": { - "type": "string" - }, - "validate": { - "type": "string" - }, - "max_age": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "temporary": { - "type": "boolean" - }, - "unique": { - "type": "boolean" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "flags": { - "type": "integer" - } + "APIGuildVoiceRegion": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildVoiceRegion" } }, - "MFAResponse": { + "APILimitsConfiguration": { "type": "object", "properties": { - "ticket": { - "type": "string" + "user": { + "$ref": "#/components/schemas/UserLimits" }, - "mfa": { - "type": "boolean", - "const": true + "guild": { + "$ref": "#/components/schemas/GuildLimits" }, - "sms": { - "type": "boolean", - "const": false + "message": { + "$ref": "#/components/schemas/MessageLimits" }, - "token": { - "type": "null" + "channel": { + "$ref": "#/components/schemas/ChannelLimits" + }, + "rate": { + "$ref": "#/components/schemas/RateLimits" + }, + "absoluteRate": { + "$ref": "#/components/schemas/GlobalRateLimits" } }, "required": [ - "mfa", - "sms", - "ticket", - "token" + "absoluteRate", + "channel", + "guild", + "message", + "rate", + "user" ] }, - "WebAuthnResponse": { + "APIConnectionsConfiguration": { + "type": "object" + }, + "UpdatesResponse": { "type": "object", "properties": { - "webauthn": { + "name": { "type": "string" }, - "ticket": { + "pub_date": { "type": "string" }, - "mfa": { - "type": "boolean", - "const": true - }, - "sms": { - "type": "boolean", - "const": false + "url": { + "type": "string" }, - "token": { - "type": "null" + "notes": { + "type": "string", + "nullable": true } }, "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" + "name", + "notes", + "pub_date", + "url" ] }, - "LoginResponse": { - "anyOf": [ - { - "$ref": "#/components/schemas/TokenResponse" - }, - { - "$ref": "#/components/schemas/MFAResponse" - }, - { - "$ref": "#/components/schemas/WebAuthnResponse" + "UploadAttachmentResponseSchema": { + "type": "object", + "properties": { + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadAttachmentResponse" + } } + }, + "required": [ + "attachments" ] }, - "LoginSchema": { + "UploadAttachmentResponse": { "type": "object", "properties": { - "login": { - "type": "string" - }, - "password": { - "minLength": 1, - "maxLength": 72, + "id": { "type": "string" }, - "undelete": { - "type": "boolean" - }, - "captcha_key": { + "upload_url": { "type": "string" }, - "login_source": { + "upload_filename": { "type": "string" }, - "gift_code_sku_id": { + "original_content_type": { "type": "string" } }, "required": [ - "login", - "password" + "upload_filename", + "upload_url" ] }, - "MemberChangeProfileSchema": { + "UserNoteResponse": { "type": "object", "properties": { - "banner": { - "type": "string", - "nullable": true - }, - "nick": { + "note": { "type": "string" }, - "bio": { + "note_user_id": { "type": "string" }, - "pronouns": { + "user_id": { "type": "string" - }, - "theme_colors": { - "items": [ - { - "type": "integer" - }, - { - "type": "integer" - } - ], - "type": "array", - "minItems": 2, - "maxItems": 2 } - } + }, + "required": [ + "note", + "note_user_id", + "user_id" + ] }, - "MemberChangeSchema": { + "UserProfileResponse": { "type": "object", "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } + "user": { + "$ref": "#/components/schemas/PublicUser" }, - "nick": { - "type": "string" + "connected_accounts": { + "$ref": "#/components/schemas/PublicConnectedAccount" }, - "avatar": { + "premium_guild_since": { "type": "string", - "nullable": true - }, - "bio": { - "type": "string" + "format": "date-time" }, - "communication_disabled_until": { + "premium_since": { "type": "string", - "nullable": true + "format": "date-time" + }, + "mutual_guilds": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + "premium_type": { + "type": "integer" + }, + "profile_themes_experiment_bucket": { + "type": "integer" + }, + "user_profile": { + "$ref": "#/components/schemas/UserProfile" + }, + "guild_member": { + "$ref": "#/components/schemas/PublicMember" + }, + "guild_member_profile": { + "$ref": "#/components/schemas/PublicMemberProfile" + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Badge" + } } + }, + "required": [ + "badges", + "connected_accounts", + "mutual_guilds", + "premium_type", + "profile_themes_experiment_bucket", + "user", + "user_profile" + ] + }, + "UserRelationsResponse": { + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] } }, - "MemberNickChangeSchema": { + "UserRelationshipsResponse": { "type": "object", "properties": { - "nick": { + "id": { "type": "string" + }, + "type": { + "$ref": "#/components/schemas/RelationshipType" + }, + "nickname": { + "type": "null" + }, + "user": { + "$ref": "#/components/schemas/PublicUser" } }, "required": [ - "nick" + "id", + "nickname", + "type", + "user" ] }, - "MessageAcknowledgeSchema": { + "WebAuthnCreateResponse": { "type": "object", "properties": { - "manual": { - "type": "boolean" + "name": { + "type": "string" }, - "mention_count": { - "type": "integer" + "id": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + "WebhookCreateResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/components/schemas/User" }, - "flags": { - "enum": [ - 0, - 1, - 2, - 4 - ], - "type": "number" + "hook": { + "$ref": "#/components/schemas/Webhook" + } + }, + "required": [ + "hook", + "user" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" }, - "last_viewed": { - "type": "integer" + "mfa": { + "type": "boolean", + "const": true + }, + "sms": { + "type": "boolean", + "const": false }, "token": { - "type": "string" + "type": "null" } - } + }, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] }, - "AcknowledgeDeleteSchema": { + "WebAuthnResponse": { "type": "object", "properties": { - "read_state_type": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5 - ], - "type": "number" + "webauthn": { + "type": "string" }, - "version": { - "type": "integer" + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "const": true + }, + "sms": { + "type": "boolean", + "const": false + }, + "token": { + "type": "null" } - } + }, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] }, - "MessageCreateSchema": { + "LoginResponse": { + "anyOf": [ + { + "$ref": "#/components/schemas/TokenResponse" + }, + { + "$ref": "#/components/schemas/MFAResponse" + }, + { + "$ref": "#/components/schemas/WebAuthnResponse" + } + ] + }, + "LoginSchema": { "type": "object", "properties": { - "type": { - "type": "integer" + "login": { + "type": "string" }, - "content": { + "password": { + "minLength": 1, + "maxLength": 72, "type": "string" }, - "mobile_network_type": { + "undelete": { + "type": "boolean" + }, + "captcha_key": { "type": "string" }, - "nonce": { + "login_source": { "type": "string" }, - "channel_id": { + "gift_code_sku_id": { "type": "string" + } + }, + "required": [ + "login", + "password" + ] + }, + "MemberChangeProfileSchema": { + "type": "object", + "properties": { + "banner": { + "type": "string", + "nullable": true }, - "tts": { - "type": "boolean" + "nick": { + "type": "string" }, - "flags": { - "type": "integer" + "bio": { + "type": "string" }, - "embeds": { - "anyOf": [ + "pronouns": { + "type": "string" + }, + "theme_colors": { + "items": [ + { + "type": "integer" + }, + { + "type": "integer" + } + ], + "type": "array", + "minItems": 2, + "maxItems": 2 + } + } + }, + "MemberChangeSchema": { + "type": "object", + "properties": { + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "nick": { + "type": "string" + }, + "avatar": { + "type": "string", + "nullable": true + }, + "bio": { + "type": "string" + }, + "communication_disabled_until": { + "type": "string", + "nullable": true + } + } + }, + "MemberNickChangeSchema": { + "type": "object", + "properties": { + "nick": { + "type": "string" + } + }, + "required": [ + "nick" + ] + }, + "MessageAcknowledgeSchema": { + "type": "object", + "properties": { + "manual": { + "type": "boolean" + }, + "mention_count": { + "type": "integer" + }, + "flags": { + "enum": [ + 0, + 1, + 2, + 4 + ], + "type": "number" + }, + "last_viewed": { + "type": "integer" + }, + "token": { + "type": "string" + } + } + }, + "AcknowledgeDeleteSchema": { + "type": "object", + "properties": { + "read_state_type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "type": "number" + }, + "version": { + "type": "integer" + } + } + }, + "MessageCreateSchema": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "content": { + "type": "string" + }, + "mobile_network_type": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "embeds": { + "anyOf": [ { "type": "array", "items": { @@ -5144,52 +5353,7 @@ "allowed_mentions": { "anyOf": [ { - "type": "object", - "properties": { - "parse": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "roles": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "users": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "replied_user": { - "type": "boolean" - } - }, - "additionalProperties": false + "$ref": "#/components/schemas/AllowedMentions" }, { "type": "null" @@ -5199,25 +5363,7 @@ "message_reference": { "anyOf": [ { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false + "$ref": "#/components/schemas/MessageReference" }, { "type": "null" @@ -5302,7 +5448,7 @@ { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponent" + "$ref": "#/components/schemas/BaseMessageComponents" } }, { @@ -5488,52 +5634,7 @@ "allowed_mentions": { "anyOf": [ { - "type": "object", - "properties": { - "parse": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "roles": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "users": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "replied_user": { - "type": "boolean" - } - }, - "additionalProperties": false + "$ref": "#/components/schemas/AllowedMentions" }, { "type": "null" @@ -5543,25 +5644,7 @@ "message_reference": { "anyOf": [ { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false + "$ref": "#/components/schemas/MessageReference" }, { "type": "null" @@ -5634,7 +5717,7 @@ { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponent" + "$ref": "#/components/schemas/BaseMessageComponents" } }, { @@ -6725,111 +6808,35 @@ "name" ] }, - "ApplicationCommandCreateSchema": { + "ThreadCreationSchema": { "type": "object", "properties": { - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" + "auto_archive_duration": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" }, "name": { "type": "string" }, - "name_localizations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "description": { - "type": "string" + "type": { + "enum": [ + 11, + 12 + ], + "type": "number" }, - "description_localizations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "invitable": { + "type": "boolean" }, - "options": { + "applied_tags": { "type": "array", "items": { - "$ref": "#/components/schemas/ApplicationCommandOption" + "type": "string" } }, - "default_member_permissions": { - "type": "string" - }, - "dm_permission": { - "type": "boolean" - }, - "nsfw": { - "type": "boolean" - }, - "integration_types": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationIntegrationType" - } - }, - "contexts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InteractionContextType" - } - }, - "handler": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - } - }, - "required": [ - "name" - ] - }, - "BulkApplicationCommandCreateSchema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationCommandCreateSchema" - } - }, - "ThreadCreationSchema": { - "type": "object", - "properties": { - "auto_archive_duration": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "type": { - "enum": [ - 11, - 12 - ], - "type": "number" - }, - "invitable": { - "type": "boolean" - }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "location": { + "location": { "type": "string" }, "message": { @@ -6876,7 +6883,7 @@ { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponent" + "$ref": "#/components/schemas/BaseMessageComponents" } }, { @@ -7114,159 +7121,6 @@ } } }, - "VoiceIdentifySchema": { - "type": "object", - "properties": { - "server_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "session_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "video": { - "type": "boolean" - }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "enum": [ - "audio", - "screen", - "video" - ], - "type": "string" - }, - "rid": { - "type": "string" - }, - "quality": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "quality", - "rid", - "type" - ] - } - }, - "max_secure_frames_version": { - "type": "integer" - }, - "max_dave_protocol_version": { - "type": "integer" - } - }, - "required": [ - "server_id", - "session_id", - "token", - "user_id" - ] - }, - "VoiceVideoSchema": { - "type": "object", - "properties": { - "audio_ssrc": { - "type": "integer" - }, - "video_ssrc": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" - }, - "user_id": { - "type": "string" - }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "enum": [ - "audio", - "screen", - "video" - ], - "type": "string" - }, - "rid": { - "type": "string" - }, - "ssrc": { - "type": "integer" - }, - "active": { - "type": "boolean" - }, - "quality": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" - }, - "max_bitrate": { - "type": "integer" - }, - "max_framerate": { - "type": "integer" - }, - "max_resolution": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "height", - "type", - "width" - ] - } - }, - "additionalProperties": false, - "required": [ - "active", - "max_bitrate", - "max_framerate", - "max_resolution", - "quality", - "rid", - "rtx_ssrc", - "ssrc", - "type" - ] - } - } - }, - "required": [ - "audio_ssrc", - "video_ssrc" - ] - }, "EmojisResponse": { "type": "array", "items": { @@ -7652,2048 +7506,2559 @@ "filename" ] }, - "InteractionCallbackType": { - "type": "number", + "Status": { "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12 - ] + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" }, - "Message": { + "Activity": { "type": "object", "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "thread_id": { + "name": { "type": "string" }, - "thread": { - "$ref": "#/components/schemas/Channel" + "type": { + "$ref": "#/components/schemas/ActivityType" }, - "guild_id": { + "url": { "type": "string" }, - "guild": { - "$ref": "#/components/schemas/Guild" + "created_at": { + "type": "integer" }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/components/schemas/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/components/schemas/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/components/schemas/Webhook" + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] }, "application_id": { "type": "string" }, - "application": { - "$ref": "#/components/schemas/Application" - }, - "content": { + "details": { "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": "#/components/schemas/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Reaction" - } - }, - "nonce": { + "state": { "type": "string" }, - "pinned_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/components/schemas/MessageType" - }, - "activity": { + "emoji": { "type": "object", "properties": { - "type": { - "type": "integer" + "name": { + "type": "string" }, - "party_id": { + "id": { "type": "string" + }, + "animated": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "party_id", - "type" + "animated", + "name" ] }, - "flags": { - "type": "integer" - }, - "message_reference": { + "party": { "type": "object", "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { + "id": { "type": "string" }, - "type": { - "type": "integer" + "size": { + "type": "array", + "items": { + "type": "integer" + } } }, "additionalProperties": false }, - "referenced_message": { - "anyOf": [ - { - "$ref": "#/components/schemas/Message" - }, - { - "type": "null" - } - ] - }, - "interaction": { + "assets": { "type": "object", "properties": { - "id": { + "large_image": { "type": "string" }, - "type": { - "$ref": "#/components/schemas/InteractionType" + "large_text": { + "type": "string" }, - "name": { + "small_image": { + "type": "string" + }, + "small_text": { "type": "string" } }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type" - ] + "additionalProperties": false }, - "interaction_metadata": { + "secrets": { "type": "object", "properties": { - "id": { + "join": { "type": "string" }, - "type": { - "$ref": "#/components/schemas/InteractionType" - }, - "user_id": { + "spectate": { "type": "string" }, - "authorizing_integration_owners": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "name": { + "match": { "type": "string" - }, - "command_type": { - "$ref": "#/components/schemas/ApplicationCommandType" } }, - "additionalProperties": false, - "required": [ - "authorizing_integration_owners", - "command_type", - "id", - "name", - "type", - "user_id" - ] + "additionalProperties": false }, - "components": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ActionRowComponent" - } + "instance": { + "type": "boolean" }, - "poll": { - "$ref": "#/components/schemas/Poll" + "flags": { + "type": "string" }, - "username": { + "id": { "type": "string" }, - "avatar": { + "sync_id": { "type": "string" }, - "message_snapshots": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessageSnapshot" - } + "metadata": { + "type": "object", + "properties": { + "button_urls": { + "type": "array", + "items": { + "type": "string" + } + }, + "context_uri": { + "type": "string" + }, + "album_id": { + "type": "string" + }, + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "enum": [ + "episode", + "track" + ], + "type": "string" + } + }, + "additionalProperties": false }, - "id": { + "session_id": { "type": "string" } }, "required": [ - "channel", - "embeds", "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "message_snapshots", - "pinned", - "reactions", - "timestamp", + "name", + "session_id", "type" ] }, - "Channel": { + "ActivityType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 4, + 5 + ] + }, + "ChannelPermissionOverwriteType": { + "type": "number", + "enum": [ + 0, + 1, + 2 + ] + }, + "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" + } + }, + "required": [ + "access_token", + "fetched_at" + ] + }, + "AllowedMentions": { + "type": "object", + "properties": { + "parse": { + "type": "array", + "items": { + "enum": [ + "everyone", + "roles", + "users" + ], + "type": "string" + } + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "replied_user": { + "type": "boolean" + } + } + }, + "Classification": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "classification_type": { + "$ref": "#/components/schemas/ClassificationType" + }, + "description": { + "type": "string" + }, + "explainer_link": { + "type": "string" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClassificationAction" + } + }, + "max_expiration_time": { + "type": "string" + }, + "flagged_content": { + "type": "array", + "items": {} + }, + "appeal_status": { + "$ref": "#/components/schemas/AppealStatus" + }, + "is_coppa": { + "type": "boolean" + }, + "is_spam": { + "type": "boolean" + }, + "appeal_ingestion_type": { + "$ref": "#/components/schemas/AppealIngestionType" + } + }, + "required": [ + "actions", + "appeal_ingestion_type", + "appeal_status", + "classification_type", + "description", + "explainer_link", + "flagged_content", + "id", + "is_coppa", + "is_spam", + "max_expiration_time" + ] + }, + "ClassificationType": { + "type": "number", + "enum": [ + 1, + 100, + 200, + 210, + 220, + 230, + 240, + 250, + 280, + 290, + 310, + 320, + 390, + 600, + 650, + 711, + 720, + 3010, + 3030, + 4000, + 4010, + 4130, + 4140, + 5010, + 5090, + 5305, + 5411, + 5440, + 5485 + ] + }, + "ClassificationAction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "action_type": { + "$ref": "#/components/schemas/ClassificationActionType" + }, + "descriptions": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "action_type", + "descriptions", + "id" + ] + }, + "ClassificationActionType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 20, + 22 + ] + }, + "AppealStatus": { + "type": "object", + "properties": { + "status": { + "$ref": "#/components/schemas/AppealStatusValue" + } + }, + "required": [ + "status" + ] + }, + "AppealStatusValue": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ] + }, + "AppealIngestionType": { + "type": "number", + "enum": [ + 0, + 1, + 2 + ] + }, + "GuildClassification": { + "type": "object", + "properties": { + "guild_metadata": { + "$ref": "#/components/schemas/GuildMetadata" + }, + "id": { + "type": "string" + }, + "classification_type": { + "$ref": "#/components/schemas/ClassificationType" + }, + "description": { + "type": "string" + }, + "explainer_link": { + "type": "string" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClassificationAction" + } + }, + "max_expiration_time": { + "type": "string" + }, + "flagged_content": { + "type": "array", + "items": {} + }, + "appeal_status": { + "$ref": "#/components/schemas/AppealStatus" + }, + "is_coppa": { + "type": "boolean" + }, + "is_spam": { + "type": "boolean" + }, + "appeal_ingestion_type": { + "$ref": "#/components/schemas/AppealIngestionType" + } + }, + "required": [ + "actions", + "appeal_ingestion_type", + "appeal_status", + "classification_type", + "description", + "explainer_link", + "flagged_content", + "guild_metadata", + "id", + "is_coppa", + "is_spam", + "max_expiration_time" + ] + }, + "GuildMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "member_type": { + "$ref": "#/components/schemas/GuildMemberType" + } + }, + "required": [ + "member_type", + "name" + ] + }, + "GuildMemberType": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "AccountStandingState": { + "type": "number", + "enum": [ + 100, + 200, + 300, + 400, + 500 + ] + }, + "AppealEligibility": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ] + }, + "CollectiblesCategoryItem": { "type": "object", "properties": { - "created_at": { - "type": "string", - "format": "date-time" + "sku_id": { + "type": "string" }, "name": { "type": "string" }, - "icon": { - "type": "string", - "nullable": true - }, - "type": { - "$ref": "#/components/schemas/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Recipient" - } - }, - "thread_members": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ThreadMember" - } - }, - "last_message_id": { + "summary": { "type": "string" }, - "guild_id": { + "store_listing_id": { "type": "string" }, - "guild": { - "$ref": "#/components/schemas/Guild" + "banner": { + "type": "string" }, - "parent_id": { + "unpublished_at": { "type": "string", "nullable": true }, - "parent": { - "$ref": "#/components/schemas/Channel" + "styles": { + "$ref": "#/components/schemas/CollectiblesCategoryStyle" }, - "owner_id": { + "logo": { "type": "string" }, - "owner": { - "$ref": "#/components/schemas/User" - }, - "last_pin_timestamp": { + "hero_ranking": { "anyOf": [ { - "type": "string", - "format": "date-time" + "type": "array", + "items": { + "type": "string" + } }, { "type": "null" } ] }, - "default_auto_archive_duration": { - "type": "integer" + "mobile_bg": { + "type": "string", + "nullable": true }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChannelPermissionOverwrite" - } + "pdp_bg": { + "type": "string", + "nullable": true }, - "video_quality_mode": { - "type": "integer" + "success_modal_bg": { + "type": "string", + "nullable": true }, - "bitrate": { - "type": "integer" + "mobile_banner": { + "type": "string", + "nullable": true }, - "user_limit": { - "type": "integer" + "featured_block": { + "type": "string", + "nullable": true }, - "nsfw": { - "type": "boolean", - "default": false + "hero_banner": { + "type": "string", + "nullable": true }, - "rate_limit_per_user": { - "type": "integer" + "wide_banner": { + "type": "string", + "nullable": true }, - "topic": { - "type": "string" + "hero_logo": { + "type": "string", + "nullable": true }, - "invites": { + "products": { "type": "array", "items": { - "$ref": "#/components/schemas/Invite" + "$ref": "#/components/schemas/CollectiblesCategoryProductItem" } }, - "retention_policy_id": { - "type": "string" + "banner_asset": { + "$ref": "#/components/schemas/StaticAnimatedAsset" }, - "messages": { + "hero_banner_asset": { + "$ref": "#/components/schemas/StaticAnimatedAsset" + } + }, + "required": [ + "banner", + "featured_block", + "hero_banner", + "hero_logo", + "hero_ranking", + "logo", + "mobile_banner", + "mobile_bg", + "name", + "pdp_bg", + "products", + "sku_id", + "store_listing_id", + "styles", + "success_modal_bg", + "summary", + "unpublished_at", + "wide_banner" + ] + }, + "CollectiblesCategoryStyle": { + "type": "object", + "properties": { + "background_colors": { "type": "array", "items": { - "$ref": "#/components/schemas/Message" + "type": "integer" } }, - "voice_states": { + "button_colors": { "type": "array", "items": { - "$ref": "#/components/schemas/VoiceState" + "type": "integer" } }, - "read_states": { + "confetti_colors": { "type": "array", "items": { - "$ref": "#/components/schemas/ReadState" + "type": "integer" } + } + }, + "required": [ + "background_colors", + "button_colors", + "confetti_colors" + ] + }, + "CollectiblesCategoryProductItem": { + "type": "object", + "properties": { + "sku_id": { + "type": "string" }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Webhook" - } + "name": { + "type": "string" }, - "flags": { - "type": "integer", - "default": 0 + "summary": { + "type": "string" }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 + "store_listing_id": { + "type": "string" }, - "thread_metadata": { - "$ref": "#/components/schemas/ThreadMetadata" + "banner": { + "type": "string" }, - "member_count": { - "type": "integer" + "unpublished_at": { + "type": "string", + "nullable": true }, - "message_count": { + "styles": { + "$ref": "#/components/schemas/CollectiblesCategoryStyle" + }, + "prices": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "country_prices": { + "$ref": "#/components/schemas/CountryPrice" + } + }, + "additionalProperties": false, + "required": [ + "country_prices" + ] + } + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductItem" + } + }, + "type": { "type": "integer" }, - "total_message_sent": { + "premium_type": { "type": "integer" }, - "available_tags": { + "category_sku_id": { + "type": "string" + }, + "google_sku_ids": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "variants": { "type": "array", "items": { - "$ref": "#/components/schemas/Tag" + "$ref": "#/components/schemas/ProductItemVariant" } + } + }, + "required": [ + "banner", + "category_sku_id", + "google_sku_ids", + "items", + "name", + "premium_type", + "prices", + "sku_id", + "store_listing_id", + "styles", + "summary", + "type", + "unpublished_at" + ] + }, + "CountryPrice": { + "type": "object", + "properties": { + "country_code": { + "type": "string" }, - "applied_tags": { + "prices": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/PriceEntry" } - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", + } + }, + "required": [ + "country_code", + "prices" + ] + }, + "PriceEntry": { + "type": "object", + "properties": { + "amount": { "type": "integer" }, - "id": { + "currency": { "type": "string" + }, + "exponent": { + "type": "integer" } }, "required": [ - "created_at", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 255 + "amount", + "currency", + "exponent" ] }, - "Recipient": { + "ProductItem": { "type": "object", "properties": { - "channel_id": { - "type": "string" + "type": { + "type": "integer" }, - "channel": { - "$ref": "#/components/schemas/Channel" + "id": { + "type": "string" }, - "user_id": { + "sku_id": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/User" + "asset": { + "type": "string" }, - "closed": { - "type": "boolean" + "label": { + "type": "string" }, - "id": { + "palette": { "type": "string" } }, "required": [ - "channel", - "channel_id", - "closed", "id", - "user", - "user_id" + "sku_id", + "type" ] }, - "User": { + "ProductItemVariant": { "type": "object", "properties": { - "username": { - "type": "string" - }, - "discriminator": { + "sku_id": { "type": "string" }, - "avatar": { + "name": { "type": "string" }, - "accent_color": { - "type": "integer" + "name_localizations": { + "type": "null" }, - "banner": { + "summary": { "type": "string" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "summary_localizations": { + "type": "null" }, - "pronouns": { + "store_listing_id": { "type": "string" }, - "phone": { + "banner": { "type": "string" }, - "desktop": { - "type": "boolean", - "default": false + "unpublished_at": { + "type": "string", + "nullable": true }, - "mobile": { - "type": "boolean", - "default": false + "styles": { + "$ref": "#/components/schemas/CollectiblesCategoryStyle" }, - "premium": { - "type": "boolean" + "prices": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "country_prices": { + "$ref": "#/components/schemas/CountryPrice" + } + }, + "additionalProperties": false, + "required": [ + "country_prices" + ] + } }, - "premium_type": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductItem" + } + }, + "type": { "type": "integer" }, - "bot": { - "type": "boolean", - "default": false + "premium_type": { + "type": "integer" }, - "bio": { - "type": "string", - "default": "" + "category_sku_id": { + "type": "string" }, - "system": { - "type": "boolean", - "default": false + "google_sku_ids": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "nsfw_allowed": { - "type": "boolean", - "default": true + "base_variant_sku_id": { + "type": "string" }, - "mfa_enabled": { - "type": "boolean", - "default": false + "base_variant_name": { + "type": "string" }, - "webauthn_enabled": { - "type": "boolean", - "default": false + "variant_label": { + "type": "string" }, - "totp_secret": { + "variant_value": { + "type": "string" + } + }, + "required": [ + "base_variant_name", + "base_variant_sku_id", + "category_sku_id", + "items", + "name", + "name_localizations", + "premium_type", + "prices", + "sku_id", + "store_listing_id", + "summary", + "summary_localizations", + "type", + "variant_label", + "variant_value" + ] + }, + "StaticAnimatedAsset": { + "type": "object", + "properties": { + "animated": { "type": "string", - "default": "" + "nullable": true }, - "totp_last_ticket": { - "type": "string", - "default": "" + "static": { + "type": "string" + } + }, + "required": [ + "animated", + "static" + ] + }, + "CollectiblesMarketingItem": { + "type": "object", + "properties": { + "type": { + "type": "integer" }, - "created_at": { - "type": "string", - "format": "date-time" + "version": { + "type": "integer" }, - "premium_since": { - "type": "string", - "format": "date-time" + "title": { + "type": "string" + }, + "body": { + "type": "string" + } + }, + "required": [ + "body", + "title", + "type", + "version" + ] + }, + "AnyShopBlock": { + "anyOf": [ + { + "$ref": "#/components/schemas/ItemRowShopBlock" }, - "verified": { - "type": "boolean" + { + "$ref": "#/components/schemas/BundleTileRowShopBlock" }, - "disabled": { - "type": "boolean", - "default": false + { + "$ref": "#/components/schemas/ItemCollectionShopBlock" + } + ] + }, + "ItemRowShopBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "const": 0 }, - "deleted": { - "type": "boolean", - "default": false + "category_sku_id": { + "type": "string" }, - "email": { + "name": { "type": "string" }, - "flags": { - "type": "integer", - "default": 0 + "category_store_listing_id": { + "type": "string" }, - "public_flags": { - "type": "integer", - "default": 0 + "banner_asset": { + "$ref": "#/components/schemas/StaticAnimatedAsset" }, - "purchased_flags": { - "type": "integer", - "default": 0 + "logo_url": { + "type": "string" }, - "premium_usage_flags": { - "type": "integer", - "default": 0 + "unpublished_at": { + "type": "string", + "nullable": true }, - "rights": { + "summary": { "type": "string" }, - "sessions": { + "ranked_sku_ids": { "type": "array", "items": { - "$ref": "#/components/schemas/Session" + "type": "string" } + } + }, + "required": [ + "banner_asset", + "category_sku_id", + "category_store_listing_id", + "logo_url", + "name", + "ranked_sku_ids", + "summary", + "type", + "unpublished_at" + ] + }, + "BundleTileRowShopBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "const": 1 }, - "relationships": { + "subblocks": { "type": "array", "items": { - "$ref": "#/components/schemas/Relationship" + "$ref": "#/components/schemas/ShopBlockSubBlock" } + } + }, + "required": [ + "subblocks", + "type" + ] + }, + "ShopBlockSubBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer" }, - "connected_accounts": { + "category_store_listing_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "unpublished_at": { + "type": "string", + "nullable": true + }, + "banner_url": { + "type": "string" + }, + "body_text": { + "type": "string", + "nullable": true + }, + "banner_text_color": { + "type": "integer", + "nullable": true + } + }, + "required": [ + "banner_text_color", + "banner_url", + "body_text", + "category_store_listing_id", + "name", + "type", + "unpublished_at" + ] + }, + "ItemCollectionShopBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "const": 2 + }, + "ranked_sku_ids": { "type": "array", "items": { - "$ref": "#/components/schemas/ConnectedAccount" + "type": "string" } }, - "data": { + "sorted_sku_ids": { "type": "object", "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" + "recommended": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, - "hash": { - "type": "string" + "popular": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "valid_tokens_since" + "popular", + "recommended" ] + } + }, + "required": [ + "ranked_sku_ids", + "sorted_sku_ids", + "type" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string", + "nullable": true }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/components/schemas/UserSettings" + "afk_channel": { + "$ref": "#/components/schemas/Channel" }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SecurityKey" - } + "afk_timeout": { + "type": "integer" }, - "badge_ids": { + "bans": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/Ban" } }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" - }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" - }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" + "banner": { + "type": "string" }, - "primary_guild": { - "$ref": "#/components/schemas/PrimaryGuild" + "default_message_notifications": { + "type": "integer" }, - "tag": { + "description": { "type": "string" }, - "id": { + "discovery_splash": { "type": "string" - } - }, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "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", - "system", - "tag", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "session_id": { + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "primary_category_id": { "type": "string" }, - "user_id": { + "icon": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/User" + "large": { + "type": "boolean", + "default": false }, - "activities": { + "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": "#/components/schemas/Activity" + "$ref": "#/components/schemas/Member" } }, - "client_info": { - "type": "object", - "properties": { - "platform": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - }, - "location": { - "type": "string" - } - }, - "additionalProperties": false + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } }, - "client_status": { - "$ref": "#/components/schemas/ClientStatus" + "channels": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Channel" + } }, - "status": { - "$ref": "#/components/schemas/Status" + "template_id": { + "type": "string" }, - "is_admin_session": { - "type": "boolean" + "template": { + "$ref": "#/components/schemas/Template" }, - "created_at": { - "type": "string", - "format": "date-time" + "emojis": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Emoji" + } }, - "last_seen": { - "type": "string", - "format": "date-time" + "stickers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } }, - "last_seen_ip": { - "type": "string" + "invites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Invite" + } }, - "last_seen_location": { - "type": "string" + "voice_states": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VoiceState" + } }, - "last_seen_location_info": { - "$ref": "#/components/schemas/ExtendedLocationInfo" + "webhooks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "mfa_level": { + "type": "integer" }, - "session_nickname": { - "type": "string" - } - }, - "required": [ - "activities", - "client_info", - "client_status", - "created_at", - "is_admin_session", - "session_id", - "status", - "user", - "user_id" - ] - }, - "Activity": { - "type": "object", - "properties": { "name": { "type": "string" }, - "type": { - "$ref": "#/components/schemas/ActivityType" + "owner_id": { + "type": "string" }, - "url": { + "owner": { + "$ref": "#/components/schemas/User" + }, + "preferred_locale": { "type": "string" }, - "created_at": { + "premium_subscription_count": { "type": "integer" }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] + "premium_tier": { + "type": "integer" }, - "application_id": { + "public_updates_channel_id": { + "type": "string", + "nullable": true + }, + "public_updates_channel": { + "$ref": "#/components/schemas/Channel" + }, + "rules_channel_id": { + "type": "string", + "nullable": true + }, + "rules_channel": { "type": "string" }, - "details": { + "region": { "type": "string" }, - "state": { + "splash": { "type": "string" }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] + "system_channel_id": { + "type": "string", + "nullable": true }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false + "system_channel": { + "$ref": "#/components/schemas/Channel" }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false + "system_channel_flags": { + "type": "integer" }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false + "unavailable": { + "type": "boolean", + "default": false }, - "instance": { - "type": "boolean" + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/components/schemas/GuildWelcomeScreen", + "description": "DEPRECATED: Look at the new Guild onboarding screens." }, - "flags": { + "widget_channel_id": { "type": "string" }, - "id": { - "type": "string" + "widget_channel": { + "$ref": "#/components/schemas/Channel" }, - "sync_id": { + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { "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" - ] + "permissions": { + "type": "integer" }, - "session_id": { + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "discovery_weight": { + "type": "integer", + "default": 0 + }, + "discovery_excluded": { + "type": "boolean", + "default": false + }, + "id": { "type": "string" } }, "required": [ - "flags", + "bans", + "channel_ordering", + "channels", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", + "id", + "invites", + "members", "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 4, - 5 + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ] }, - "ClientStatus": { + "Channel": { "type": "object", "properties": { - "desktop": { - "type": "string" + "created_at": { + "type": "string", + "format": "date-time" }, - "mobile": { + "name": { "type": "string" }, - "web": { - "type": "string" + "icon": { + "type": "string", + "nullable": true }, - "embedded": { - "type": "string" - } - } - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "ExtendedLocationInfo": { - "type": "object", - "properties": { - "is_eu": { - "type": "boolean" + "type": { + "$ref": "#/components/schemas/ChannelType" }, - "city": { - "type": "string" + "recipients": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Recipient" + } }, - "region": { - "type": "string" + "thread_members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ThreadMember" + } }, - "region_code": { + "last_message_id": { "type": "string" }, - "country_name": { + "guild_id": { "type": "string" }, - "country_code": { - "type": "string" + "guild": { + "$ref": "#/components/schemas/Guild" }, - "continent_name": { - "type": "string" + "parent_id": { + "type": "string", + "nullable": true }, - "continent_code": { + "parent": { + "$ref": "#/components/schemas/Channel" + }, + "owner_id": { "type": "string" }, - "latitude": { + "owner": { + "$ref": "#/components/schemas/User" + }, + "last_pin_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "default_auto_archive_duration": { "type": "integer" }, - "longitude": { + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { "type": "integer" }, - "postal": { - "type": "string" + "bitrate": { + "type": "integer" }, - "calling_code": { - "type": "string" + "user_limit": { + "type": "integer" }, - "flag": { - "type": "string" + "nsfw": { + "type": "boolean", + "default": false }, - "emoji_flag": { - "type": "string" + "rate_limit_per_user": { + "type": "integer" }, - "emoji_unicode": { + "topic": { "type": "string" - } - }, - "required": [ - "calling_code", - "city", - "continent_code", - "continent_name", - "country_code", - "country_name", - "emoji_flag", - "emoji_unicode", - "flag", - "is_eu", - "latitude", - "longitude", - "postal", - "region", - "region_code" - ] - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Invite" + } + }, + "retention_policy_id": { "type": "string" }, - "from": { - "$ref": "#/components/schemas/User" + "messages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 }, - "to_id": { - "type": "string" + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 }, - "to": { - "$ref": "#/components/schemas/User" + "thread_metadata": { + "$ref": "#/components/schemas/ThreadMetadata" }, - "nickname": { - "type": "string" + "member_count": { + "type": "integer" }, - "type": { - "$ref": "#/components/schemas/RelationshipType" + "message_count": { + "type": "integer" + }, + "total_message_sent": { + "type": "integer" + }, + "available_tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tag" + } + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "status": { + "type": "string", + "nullable": true + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" }, "id": { "type": "string" } }, "required": [ - "from", - "from_id", + "created_at", + "flags", "id", - "to", - "to_id", + "nsfw", + "owner", + "parent_id", + "position", "type" ] }, - "RelationshipType": { + "ChannelType": { "type": "number", "enum": [ - 4, - 3, + 0, + 1, 2, - 1 + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 255 ] }, - "ConnectedAccount": { + "Recipient": { "type": "object", "properties": { - "external_id": { + "channel_id": { "type": "string" }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, "user_id": { "type": "string" }, "user": { "$ref": "#/components/schemas/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": "#/components/schemas/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] + "closed": { + "type": "boolean" }, "id": { "type": "string" } }, "required": [ - "external_id", + "channel", + "channel_id", + "closed", "id", - "name", - "type", "user", "user_id" ] }, - "ConnectedAccountTokenData": { + "User": { "type": "object", "properties": { - "access_token": { + "username": { "type": "string" }, - "token_type": { + "discriminator": { "type": "string" }, - "scope": { + "avatar": { "type": "string" }, - "refresh_token": { + "accent_color": { + "type": "integer" + }, + "banner": { "type": "string" }, - "expires_in": { - "type": "integer" + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } }, - "expires_at": { - "type": "integer" + "pronouns": { + "type": "string" }, - "fetched_at": { - "type": "integer" - } - }, - "required": [ - "access_token", - "fetched_at" - ] - }, - "UserSettings": { - "type": "object", - "properties": { - "index": { + "phone": { "type": "string" }, - "afk_timeout": { - "type": "integer", - "default": 3600 + "desktop": { + "type": "boolean", + "default": false }, - "allow_accessibility_detection": { + "mobile": { "type": "boolean", - "default": true + "default": false }, - "animate_emoji": { + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { "type": "boolean", - "default": true + "default": false }, - "animate_stickers": { - "type": "integer", - "default": 0 + "bio": { + "type": "string", + "default": "" }, - "contact_sync_enabled": { + "system": { "type": "boolean", "default": false }, - "convert_emoticons": { + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { "type": "boolean", "default": false }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/components/schemas/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null + "webauthn_enabled": { + "type": "boolean", + "default": false }, - "default_guilds_restricted": { + "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 }, - "detect_platform_accounts": { + "deleted": { "type": "boolean", "default": false }, - "developer_mode": { - "type": "boolean", - "default": true + "email": { + "type": "string" }, - "disable_games_tab": { - "type": "boolean", - "default": true + "flags": { + "type": "integer", + "default": 0 }, - "enable_tts_command": { - "type": "boolean", - "default": false + "public_flags": { + "type": "integer", + "default": 0 }, - "explicit_content_filter": { + "purchased_flags": { "type": "integer", "default": 0 }, - "friend_discovery_flags": { + "premium_usage_flags": { "type": "integer", "default": 0 }, - "friend_source_flags": { - "$ref": "#/components/schemas/FriendSourceFlags" + "rights": { + "type": "string" }, - "gateway_connected": { - "type": "boolean", - "default": false + "sessions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Session" + } }, - "gif_auto_play": { - "type": "boolean", - "default": false + "relationships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Relationship" + } }, - "guild_folders": { + "connected_accounts": { "type": "array", "items": { - "$ref": "#/components/schemas/GuildFolder" + "$ref": "#/components/schemas/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } }, - "default": [] + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] }, - "guild_positions": { + "fingerprints": { "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 + "settings": { + "$ref": "#/components/schemas/UserSettings" }, - "render_reactions": { - "type": "boolean", - "default": true + "security_keys": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SecurityKey" + } }, - "restricted_guilds": { + "badge_ids": { "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 + "avatar_decoration_data": { + "$ref": "#/components/schemas/AvatarDecorationData" }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "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" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" + "display_name_styles": { + "$ref": "#/components/schemas/DisplayNameStyle" }, - "emoji_name": { - "type": "string" + "collectibles": { + "$ref": "#/components/schemas/Collectibles" }, - "expires_at": { - "type": "integer" + "primary_guild": { + "$ref": "#/components/schemas/PrimaryGuild" }, - "text": { + "tag": { "type": "string" - } - } - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer", - "nullable": true - }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } }, "id": { - "type": "integer", - "nullable": true - }, - "name": { - "type": "string", - "nullable": true + "type": "string" } }, "required": [ - "guild_ids" + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "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", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" ] }, - "SecurityKey": { + "Session": { "type": "object", "properties": { + "session_id": { + "type": "string" + }, "user_id": { "type": "string" }, "user": { "$ref": "#/components/schemas/User" }, - "key_id": { - "type": "string" + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Activity" + } }, - "public_key": { - "type": "string" + "client_info": { + "type": "object", + "properties": { + "platform": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "location": { + "type": "string" + } + }, + "additionalProperties": false }, - "counter": { - "type": "integer" + "client_status": { + "$ref": "#/components/schemas/ClientStatus" }, - "name": { + "status": { + "$ref": "#/components/schemas/Status" + }, + "is_admin_session": { + "type": "boolean" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "last_seen": { + "type": "string", + "format": "date-time" + }, + "last_seen_ip": { "type": "string" }, - "id": { + "last_seen_location": { + "type": "string" + }, + "last_seen_location_info": { + "$ref": "#/components/schemas/ExtendedLocationInfo" + }, + "session_nickname": { "type": "string" } }, "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", + "activities", + "client_info", + "client_status", + "created_at", + "is_admin_session", + "session_id", + "status", "user", "user_id" ] }, - "AvatarDecorationData": { + "ClientStatus": { "type": "object", "properties": { - "asset": { + "desktop": { "type": "string" }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "mobile": { "type": "string" }, - "expires_at": { - "type": "string", - "nullable": true + "web": { + "type": "string" + }, + "embedded": { + "type": "string" } - }, - "required": [ - "asset", - "expires_at", - "sku_id" - ] + } }, - "DisplayNameStyle": { + "ExtendedLocationInfo": { "type": "object", "properties": { - "font_id": { + "is_eu": { + "type": "boolean" + }, + "city": { + "type": "string" + }, + "region": { + "type": "string" + }, + "region_code": { + "type": "string" + }, + "country_name": { + "type": "string" + }, + "country_code": { + "type": "string" + }, + "continent_name": { + "type": "string" + }, + "continent_code": { + "type": "string" + }, + "latitude": { "type": "integer" }, - "effect_id": { + "longitude": { "type": "integer" }, - "colors": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "required": [ - "colors", - "effect_id", - "font_id" - ] - }, - "Collectibles": { - "type": "object", - "properties": { - "nameplate": { - "anyOf": [ - { - "$ref": "#/components/schemas/NameplateData" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "nameplate" - ] - }, - "NameplateData": { - "type": "object", - "properties": { - "asset": { + "postal": { "type": "string" }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "calling_code": { "type": "string" }, - "label": { + "flag": { "type": "string" }, - "palette": { + "emoji_flag": { "type": "string" }, - "expires_at": { - "type": "integer", - "nullable": true + "emoji_unicode": { + "type": "string" } }, "required": [ - "asset", - "expires_at", - "label", - "palette", - "sku_id" + "calling_code", + "city", + "continent_code", + "continent_name", + "country_code", + "country_name", + "emoji_flag", + "emoji_unicode", + "flag", + "is_eu", + "latitude", + "longitude", + "postal", + "region", + "region_code" ] }, - "PrimaryGuild": { + "Relationship": { "type": "object", "properties": { - "identity_enabled": { - "type": "boolean", - "nullable": true + "from_id": { + "type": "string" }, - "identity_guild_id": { - "type": "string", - "nullable": true + "from": { + "$ref": "#/components/schemas/User" }, - "tag": { - "type": "string", - "nullable": true + "to_id": { + "type": "string" }, - "badge": { - "type": "string", - "nullable": true + "to": { + "$ref": "#/components/schemas/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/RelationshipType" + }, + "id": { + "type": "string" } }, "required": [ - "badge", - "identity_enabled", - "identity_guild_id", - "tag" + "from", + "from_id", + "id", + "to", + "to_id", + "type" ] }, - "ThreadMember": { + "RelationshipType": { + "type": "number", + "enum": [ + 4, + 3, + 2, + 1 + ] + }, + "ConnectedAccount": { "type": "object", "properties": { - "index": { + "external_id": { "type": "string" }, - "id": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { "type": "string" }, - "channel": { - "$ref": "#/components/schemas/Channel" + "revoked": { + "type": "boolean", + "default": false }, - "member_idx": { + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { "type": "string" }, - "member": { - "$ref": "#/components/schemas/Member" + "verified": { + "type": "boolean", + "default": true }, - "join_timestamp": { - "type": "string", - "format": "date-time" + "visibility": { + "type": "integer", + "default": 0 }, - "muted": { - "type": "boolean" + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] }, - "mute_config": { - "$ref": "#/components/schemas/ThreadMemberMuteConfig" + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 }, - "flags": { - "$ref": "#/components/schemas/ThreadMemberFlags" + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/components/schemas/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" } }, "required": [ - "channel", - "flags", + "external_id", "id", - "index", - "join_timestamp", - "member", - "member_idx", - "muted" + "name", + "type", + "user", + "user_id" ] }, - "Member": { + "UserSettings": { "type": "object", "properties": { "index": { "type": "string" }, - "id": { - "type": "string" + "afk_timeout": { + "type": "integer", + "default": 3600 }, - "user": { - "$ref": "#/components/schemas/User" + "allow_accessibility_detection": { + "type": "boolean", + "default": true }, - "guild_id": { - "type": "string" + "animate_emoji": { + "type": "boolean", + "default": true }, - "guild": { - "$ref": "#/components/schemas/Guild" + "animate_stickers": { + "type": "integer", + "default": 0 }, - "nick": { - "type": "string" + "contact_sync_enabled": { + "type": "boolean", + "default": false }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } + "convert_emoticons": { + "type": "boolean", + "default": false }, - "joined_at": { - "type": "string", - "format": "date-time" + "custom_status": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null }, - "premium_since": { - "type": "integer" + "default_guilds_restricted": { + "type": "boolean", + "default": false }, - "deaf": { - "type": "boolean" + "detect_platform_accounts": { + "type": "boolean", + "default": false }, - "mute": { - "type": "boolean" + "developer_mode": { + "type": "boolean", + "default": true }, - "pending": { - "type": "boolean" + "disable_games_tab": { + "type": "boolean", + "default": true }, - "settings": { - "$ref": "#/components/schemas/UserGuildSettings" + "enable_tts_command": { + "type": "boolean", + "default": false }, - "last_message_id": { - "type": "string" + "explicit_content_filter": { + "type": "integer", + "default": 0 }, - "joined_by": { - "type": "string" + "friend_discovery_flags": { + "type": "integer", + "default": 0 }, - "avatar": { - "type": "string" + "friend_source_flags": { + "$ref": "#/components/schemas/FriendSourceFlags" }, - "banner": { - "type": "string" + "gateway_connected": { + "type": "boolean", + "default": false }, - "bio": { - "type": "string" + "gif_auto_play": { + "type": "boolean", + "default": false }, - "theme_colors": { + "guild_folders": { "type": "array", "items": { - "type": "integer" - } + "$ref": "#/components/schemas/GuildFolder" + }, + "default": [] }, - "pronouns": { - "type": "string" + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] + "inline_attachment_media": { + "type": "boolean", + "default": true }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" + "inline_embed_media": { + "type": "boolean", + "default": true }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" + "locale": { + "type": "string", + "default": "en-US" }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" + "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" }, - "flags": { + "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild", - "guild_id", - "id", + "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", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" + "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" ] }, - "Guild": { + "CustomStatus": { "type": "object", "properties": { - "afk_channel_id": { - "type": "string", - "nullable": true + "emoji_id": { + "type": "string" }, - "afk_channel": { - "$ref": "#/components/schemas/Channel" + "emoji_name": { + "type": "string" }, - "afk_timeout": { + "expires_at": { "type": "integer" }, - "bans": { + "text": { + "type": "string" + } + } + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer", + "nullable": true + }, + "guild_ids": { "type": "array", "items": { - "$ref": "#/components/schemas/Ban" + "type": "string" } }, - "banner": { + "id": { + "type": "integer", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + } + }, + "required": [ + "guild_ids" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { "type": "string" }, - "default_message_notifications": { - "type": "integer" + "user": { + "$ref": "#/components/schemas/User" }, - "description": { + "key_id": { "type": "string" }, - "discovery_splash": { + "public_key": { "type": "string" }, - "explicit_content_filter": { + "counter": { "type": "integer" }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { + "name": { "type": "string" }, - "icon": { + "id": { + "type": "string" + } + }, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "AvatarDecorationData": { + "type": "object", + "properties": { + "asset": { "type": "string" }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" }, - "member_count": { + "expires_at": { + "type": "string", + "nullable": true + } + }, + "required": [ + "asset", + "expires_at", + "sku_id" + ] + }, + "DisplayNameStyle": { + "type": "object", + "properties": { + "font_id": { "type": "integer" }, - "presence_count": { + "effect_id": { "type": "integer" }, - "members": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/components/schemas/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/components/schemas/VoiceState" - } - }, - "webhooks": { + "colors": { "type": "array", "items": { - "$ref": "#/components/schemas/Webhook" + "type": "integer" } - }, - "mfa_level": { - "type": "integer" - }, - "name": { + } + }, + "required": [ + "colors", + "effect_id", + "font_id" + ] + }, + "Collectibles": { + "type": "object", + "properties": { + "nameplate": { + "anyOf": [ + { + "$ref": "#/components/schemas/NameplateData" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "nameplate" + ] + }, + "NameplateData": { + "type": "object", + "properties": { + "asset": { "type": "string" }, - "owner_id": { + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "owner": { - "$ref": "#/components/schemas/User" - }, - "preferred_locale": { + "label": { "type": "string" }, - "premium_subscription_count": { - "type": "integer" + "palette": { + "type": "string" }, - "premium_tier": { - "type": "integer" + "expires_at": { + "type": "integer", + "nullable": true + } + }, + "required": [ + "asset", + "expires_at", + "label", + "palette", + "sku_id" + ] + }, + "PrimaryGuild": { + "type": "object", + "properties": { + "identity_enabled": { + "type": "boolean", + "nullable": true }, - "public_updates_channel_id": { + "identity_guild_id": { "type": "string", "nullable": true }, - "public_updates_channel": { - "$ref": "#/components/schemas/Channel" - }, - "rules_channel_id": { + "tag": { "type": "string", "nullable": true }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { + "badge": { "type": "string", "nullable": true + } + }, + "required": [ + "badge", + "identity_enabled", + "identity_guild_id", + "tag" + ] + }, + "ThreadMember": { + "type": "object", + "properties": { + "index": { + "type": "string" }, - "system_channel": { - "$ref": "#/components/schemas/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/components/schemas/GuildWelcomeScreen", - "description": "DEPRECATED: Look at the new Guild onboarding screens." - }, - "widget_channel_id": { + "id": { "type": "string" }, - "widget_channel": { + "channel": { "$ref": "#/components/schemas/Channel" }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { + "member_idx": { "type": "string" }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false + "member": { + "$ref": "#/components/schemas/Member" }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } + "join_timestamp": { + "type": "string", + "format": "date-time" }, - "discovery_weight": { - "type": "integer", - "default": 0 + "muted": { + "type": "boolean" }, - "discovery_excluded": { - "type": "boolean", - "default": false + "mute_config": { + "$ref": "#/components/schemas/ThreadMemberMuteConfig" }, - "id": { - "type": "string" + "flags": { + "$ref": "#/components/schemas/ThreadMemberFlags" } }, "required": [ - "bans", - "channel_ordering", - "channels", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", + "channel", + "flags", "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "index", + "join_timestamp", + "member", + "member_idx", + "muted" ] }, - "Ban": { + "Member": { "type": "object", "properties": { - "user_id": { + "index": { + "type": "string" + }, + "id": { "type": "string" }, "user": { @@ -9705,30 +10070,100 @@ "guild": { "$ref": "#/components/schemas/Guild" }, - "executor_id": { + "nick": { "type": "string" }, - "executor": { - "$ref": "#/components/schemas/User" + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } }, - "ip": { + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/components/schemas/UserGuildSettings" + }, + "last_message_id": { "type": "string" }, - "reason": { + "joined_by": { "type": "string" }, - "id": { + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { "type": "string" + }, + "communication_disabled_until": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "avatar_decoration_data": { + "$ref": "#/components/schemas/AvatarDecorationData" + }, + "display_name_styles": { + "$ref": "#/components/schemas/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/components/schemas/Collectibles" + }, + "flags": { + "type": "integer", + "default": 0 } }, "required": [ - "executor", - "executor_id", + "banner", + "bio", + "communication_disabled_until", + "deaf", + "flags", "guild", "guild_id", "id", - "user", - "user_id" + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" ] }, "Role": { @@ -9824,221 +10259,166 @@ "primary_color" ] }, - "Template": { + "UserGuildSettings": { "type": "object", "properties": { - "code": { - "type": "string" + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/ChannelOverride" + } + }, + { + "type": "null" + } + ] }, - "name": { - "type": "string" + "message_notifications": { + "type": "integer" }, - "description": { - "type": "string" + "mobile_push": { + "type": "boolean" }, - "usage_count": { - "type": "integer" + "mute_config": { + "anyOf": [ + { + "$ref": "#/components/schemas/MuteConfig" + }, + { + "type": "null" + } + ] }, - "creator_id": { - "type": "string" + "muted": { + "type": "boolean" }, - "creator": { - "$ref": "#/components/schemas/User" + "suppress_everyone": { + "type": "boolean" }, - "created_at": { - "type": "string", - "format": "date-time" + "suppress_roles": { + "type": "boolean" }, - "updated_at": { + "version": { + "type": "integer" + }, + "guild_id": { "type": "string", - "format": "date-time" + "nullable": true }, - "source_guild_id": { - "type": "string" + "flags": { + "type": "integer" }, - "source_guild": { - "$ref": "#/components/schemas/Guild" + "mute_scheduled_events": { + "type": "boolean" }, - "serialized_source_guild": { - "$ref": "#/components/schemas/Guild" + "hide_muted_channels": { + "type": "boolean" }, - "id": { - "type": "string" + "notify_highlights": { + "type": "integer", + "const": 0 } }, "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" + "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" ] }, - "Emoji": { + "ChannelOverride": { "type": "object", "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "managed": { - "type": "boolean" + "message_notifications": { + "type": "integer" }, - "name": { - "type": "string" + "mute_config": { + "$ref": "#/components/schemas/MuteConfig" }, - "require_colons": { + "muted": { "type": "boolean" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" + "channel_id": { + "type": "string", + "nullable": true } }, "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" + "channel_id", + "message_notifications", + "mute_config", + "muted" ] }, - "Sticker": { + "MuteConfig": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/components/schemas/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "type": { - "$ref": "#/components/schemas/StickerType" - }, - "format_type": { - "$ref": "#/components/schemas/StickerFormatType" + "end_time": { + "type": "integer" }, - "id": { - "type": "string" + "selected_time_window": { + "type": "integer" } }, "required": [ - "format_type", - "id", - "name", - "pack", - "type" + "end_time", + "selected_time_window" ] }, - "StickerPack": { + "ThreadMemberMuteConfig": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } + "end_time": { + "type": "string", + "format": "date-time" }, - "cover_sticker_id": { + "selected_time_window": { + "type": "integer" + } + } + }, + "ThreadMemberFlags": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 4, + 8 + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { "type": "string" }, - "cover_sticker": { - "$ref": "#/components/schemas/Sticker" + "deny": { + "type": "string" }, "id": { "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ChannelPermissionOverwriteType" } }, "required": [ + "allow", + "deny", "id", - "name", - "stickers" - ] - }, - "StickerType": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, - "StickerFormatType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 + "type" ] }, "Invite": { @@ -10117,60 +10497,251 @@ "uses" ] }, - "VoiceState": { + "Message": { "type": "object", "properties": { - "guild_id": { + "channel_id": { "type": "string" }, - "guild": { - "$ref": "#/components/schemas/Guild" + "channel": { + "$ref": "#/components/schemas/Channel" }, - "channel_id": { + "thread_id": { "type": "string" }, - "channel": { + "thread": { "$ref": "#/components/schemas/Channel" }, - "user_id": { + "guild_id": { "type": "string" }, - "user": { + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { "$ref": "#/components/schemas/User" }, + "member_id": { + "type": "string" + }, "member": { "$ref": "#/components/schemas/Member" }, - "session_id": { + "webhook_id": { "type": "string" }, - "token": { + "webhook": { + "$ref": "#/components/schemas/Webhook" + }, + "application_id": { "type": "string" }, - "deaf": { - "type": "boolean" + "application": { + "$ref": "#/components/schemas/Application" }, - "mute": { - "type": "boolean" + "content": { + "type": "string" }, - "self_deaf": { - "type": "boolean" + "timestamp": { + "type": "string", + "format": "date-time" }, - "self_mute": { + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { "type": "boolean" }, - "self_stream": { + "mention_everyone": { "type": "boolean" }, - "self_video": { + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned_at": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "pinned": { "type": "boolean" }, - "suppress": { - "type": "boolean" + "type": { + "$ref": "#/components/schemas/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" + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "referenced_message": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "null" + } + ] + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/InteractionType" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "type" + ] + }, + "interaction_metadata": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "name": { + "type": "string" + }, + "command_type": { + "$ref": "#/components/schemas/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BaseMessageComponents" + } + }, + "poll": { + "$ref": "#/components/schemas/Poll" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" + "message_snapshots": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageSnapshot" + } }, "id": { "type": "string" @@ -10178,20 +10749,17 @@ }, "required": [ "channel", - "channel_id", - "deaf", - "guild_id", + "embeds", + "flags", "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" + "mention_channels", + "mention_roles", + "mentions", + "message_snapshots", + "pinned", + "reactions", + "timestamp", + "type" ] }, "Webhook": { @@ -10519,366 +11087,537 @@ "read_only" ] }, - "GuildWelcomeScreen": { + "Sticker": { "type": "object", "properties": { - "enabled": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { "type": "boolean" }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/components/schemas/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "type": { + "$ref": "#/components/schemas/StickerType" + }, + "format_type": { + "$ref": "#/components/schemas/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "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": "#/components/schemas/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/components/schemas/Sticker" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "StickerFormatType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, + "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": "#/components/schemas/Message" + }, + "id": { + "type": "string" + } + }, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, "description": { "type": "string" }, - "welcome_channels": { + "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": "#/components/schemas/EmbedImage" + }, + "thumbnail": { + "$ref": "#/components/schemas/EmbedImage" + }, + "video": { + "$ref": "#/components/schemas/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": { - "description": { - "type": "string" - }, - "emoji_id": { + "name": { "type": "string" }, - "emoji_name": { + "value": { "type": "string" }, - "channel_id": { - "type": "string" + "inline": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "channel_id", - "description" + "name", + "value" ] } } - }, - "required": [ - "description", - "enabled", - "welcome_channels" - ] + } }, - "UserGuildSettings": { + "EmbedImage": { "type": "object", "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/components/schemas/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" + "url": { + "type": "string" }, - "suppress_roles": { - "type": "boolean" + "proxy_url": { + "type": "string" }, - "version": { + "height": { "type": "integer" }, - "guild_id": { - "type": "string", - "nullable": true - }, - "flags": { + "width": { "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "integer", - "const": 0 } - }, - "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" - ] + } }, - "ChannelOverride": { + "Reaction": { "type": "object", "properties": { - "message_notifications": { + "count": { "type": "integer" }, - "mute_config": { - "$ref": "#/components/schemas/MuteConfig" - }, - "muted": { - "type": "boolean" + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" }, - "channel_id": { - "type": "string", - "nullable": true + "user_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" + "count", + "emoji", + "user_ids" ] }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "PartialEmoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] }, - "selected_time_window": { - "type": "integer" + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] } - }, - "required": [ - "end_time", - "selected_time_window" ] }, - "ThreadMemberMuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "string", - "format": "date-time" - }, - "selected_time_window": { - "type": "integer" - } - } - }, - "ThreadMemberFlags": { + "MessageType": { "type": "number", "enum": [ 0, 1, 2, + 3, 4, - 8 - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ChannelPermissionOverwriteType" - } - }, - "required": [ - "allow", - "deny", - "id", - "type" + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 255 ] }, - "ChannelPermissionOverwriteType": { + "ApplicationCommandType": { "type": "number", "enum": [ - 0, 1, - 2 + 2, + 3, + 4 ] }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" + "BaseMessageComponents": { + "anyOf": [ + { + "$ref": "#/components/schemas/SectionComponent" }, - "last_message_id": { - "type": "string" + { + "$ref": "#/components/schemas/TextDisplayComponent" }, - "last_acked_id": { - "type": "string" + { + "$ref": "#/components/schemas/MediaGalleryComponent" }, - "notifications_cursor": { - "type": "string" + { + "$ref": "#/components/schemas/FileComponent" }, - "mention_count": { - "type": "integer" + { + "$ref": "#/components/schemas/SeperatorComponent" }, - "badge_count": { - "type": "integer" + { + "$ref": "#/components/schemas/ActionRowComponent" }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" + { + "$ref": "#/components/schemas/ContainerComponent" + } + ] + }, + "SectionComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Section" }, - "read_state_type": { - "$ref": "#/components/schemas/ReadStateType" + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TextDisplayComponent" + } }, - "flags": { - "$ref": "#/components/schemas/ReadStateFlags" + "accessory": { + "anyOf": [ + { + "$ref": "#/components/schemas/ThumbnailComponent" + }, + { + "$ref": "#/components/schemas/ButtonComponent" + } + ] }, "id": { - "type": "string" + "type": "integer" } }, "required": [ - "badge_count", - "channel", - "channel_id", - "flags", - "id", - "mention_count", - "notifications_cursor", - "read_state_type", - "user", - "user_id" - ] - }, - "ReadStateType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5 + "accessory", + "components", + "type" ] }, - "ReadStateFlags": { + "MessageComponentType.Section": { "type": "number", - "enum": [ - 1, - 2, - 4 - ] + "const": 9 }, - "ThreadMetadata": { + "TextDisplayComponent": { "type": "object", "properties": { - "archived": { - "type": "boolean" - }, - "auto_archive_duration": { - "type": "integer" + "type": { + "$ref": "#/components/schemas/MessageComponentType.TextDisplay" }, - "archive_timestamp": { + "content": { "type": "string" }, - "locked": { - "type": "boolean" - }, - "invitable": { - "type": "boolean" - }, - "create_timestamp": { - "type": "string" + "id": { + "type": "integer" } }, "required": [ - "archive_timestamp", - "archived", - "auto_archive_duration", - "create_timestamp", - "locked" + "content", + "type" ] }, - "Tag": { + "MessageComponentType.TextDisplay": { + "type": "number", + "const": 10 + }, + "ThumbnailComponent": { "type": "object", "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" + "type": { + "$ref": "#/components/schemas/MessageComponentType.Thumbnail" }, - "name": { + "description": { "type": "string" }, - "moderated": { - "type": "boolean", - "default": false - }, - "emoji_id": { - "type": "string" + "media": { + "$ref": "#/components/schemas/UnfurledMediaItem" }, - "emoji_name": { - "type": "string" + "spoiler": { + "type": "boolean" }, "id": { - "type": "string" + "type": "integer" } }, "required": [ - "channel", - "channel_id", - "id", - "moderated", - "name" + "media", + "type" ] }, - "Attachment": { + "MessageComponentType.Thumbnail": { + "type": "number", + "const": 11 + }, + "UnfurledMediaItem": { "type": "object", "properties": { - "filename": { + "id": { "type": "string" }, - "size": { - "type": "integer" - }, "url": { "type": "string" }, @@ -10891,297 +11630,219 @@ "width": { "type": "integer" }, + "flags": { + "type": "integer" + }, "content_type": { "type": "string" }, - "message_id": { + "content_scan_metadata": {}, + "placeholder_version": { + "type": "integer" + }, + "placeholder": { "type": "string" }, - "message": { - "$ref": "#/components/schemas/Message" + "loading_state": { + "type": "integer" }, - "id": { + "attachment_id": { "type": "string" } }, "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", "url" ] }, - "Embed": { + "ButtonComponent": { "type": "object", "properties": { - "title": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Button" + }, + "style": { + "$ref": "#/components/schemas/ButtonStyle" + }, + "label": { "type": "string" }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + }, + "custom_id": { "type": "string" }, - "description": { + "sku_id": { "type": "string" }, "url": { "type": "string" }, - "timestamp": { - "type": "string", - "format": "date-time" + "disabled": { + "type": "boolean" }, - "color": { + "id": { "type": "integer" + } + }, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "const": 2 + }, + "ButtonStyle": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ] + }, + "MediaGalleryComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.MediaGallery" }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/components/schemas/EmbedImage" - }, - "thumbnail": { - "$ref": "#/components/schemas/EmbedImage" - }, - "video": { - "$ref": "#/components/schemas/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": { + "items": { "type": "array", "items": { "type": "object", "properties": { - "name": { - "type": "string" + "media": { + "$ref": "#/components/schemas/UnfurledMediaItem" }, - "value": { + "description": { "type": "string" }, - "inline": { + "spoiler": { "type": "boolean" } }, "additionalProperties": false, "required": [ - "name", - "value" + "media" ] } + }, + "id": { + "type": "integer" } - } + }, + "required": [ + "items", + "type" + ] }, - "EmbedImage": { + "MessageComponentType.MediaGallery": { + "type": "number", + "const": 12 + }, + "FileComponent": { "type": "object", "properties": { - "url": { - "type": "string" + "type": { + "$ref": "#/components/schemas/MessageComponentType.File" }, - "proxy_url": { + "file": { + "$ref": "#/components/schemas/UnfurledMediaItem" + }, + "spoiler": { + "type": "boolean" + }, + "name": { "type": "string" }, - "height": { + "size": { "type": "integer" }, - "width": { - "type": "integer" - } - } - }, - "Reaction": { - "type": "object", - "properties": { - "count": { + "id": { "type": "integer" - }, - "emoji": { - "$ref": "#/components/schemas/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } } }, "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "PartialEmoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } + "file", + "name", + "size", + "spoiler", + "type" ] }, - "MessageType": { + "MessageComponentType.File": { "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55, - 56, - 57, - 58, - 59, - 60, - 61, - 62, - 63, - 255 + "const": 13 + }, + "SeperatorComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Separator" + }, + "divider": { + "type": "boolean" + }, + "spacing": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "type" ] }, - "ApplicationCommandType": { + "MessageComponentType.Separator": { "type": "number", - "enum": [ - 1, - 2, - 3, - 4 - ] + "const": 14 }, "ActionRowComponent": { "type": "object", @@ -11207,6 +11868,9 @@ } ] } + }, + "id": { + "type": "integer" } }, "required": [ @@ -11218,91 +11882,6 @@ "type": "number", "const": 1 }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.Button" - }, - "style": { - "$ref": "#/components/schemas/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "const": 2 - }, - "ButtonStyle": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ] - }, "SelectMenuComponent": { "type": "object", "properties": { @@ -11342,6 +11921,9 @@ }, "disabled": { "type": "boolean" + }, + "id": { + "type": "integer" } }, "required": [ @@ -11399,170 +11981,39 @@ "$ref": "#/components/schemas/SelectMenuDefaultOption" } }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "const": 3 - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - }, - "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", - "const": 4 - }, - "TextInputStyle": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/components/schemas/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PollAnswer" - } + "min_values": { + "type": "integer" }, - "expiry": { - "type": "string", - "format": "date-time" + "max_values": { + "type": "integer" }, - "allow_multiselect": { + "disabled": { "type": "boolean" }, - "results": { - "$ref": "#/components/schemas/PollResult" + "id": { + "type": "integer" } }, "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" + "custom_id", + "options", + "type" ] }, - "PollMedia": { + "MessageComponentType.StringSelect": { + "type": "number", + "const": 3 + }, + "SelectMenuOption": { "type": "object", "properties": { - "text": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { "type": "string" }, "emoji": { @@ -11604,397 +12055,355 @@ ] } ] - } - } - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" }, - "poll_media": { - "$ref": "#/components/schemas/PollMedia" - } - }, - "required": [ - "poll_media" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { + "default": { "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PollAnswerCount" - } } }, "required": [ - "answer_counts", - "is_finalized" + "label", + "value" ] }, - "PollAnswerCount": { + "TextInputComponent": { "type": "object", "properties": { - "id": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.TextInput" + }, + "custom_id": { "type": "string" }, - "count": { + "style": { + "$ref": "#/components/schemas/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { "type": "integer" }, - "me_voted": { + "max_length": { + "type": "integer" + }, + "required": { "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "id": { + "type": "integer" } }, "required": [ - "count", - "id", - "me_voted" - ] - }, - "MessageSnapshot": { - "type": "object", - "properties": { - "message": { - "type": "object", - "properties": { - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "mentions": { - "type": "array", - "items": { - "type": "string" - } - }, - "mention_roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Embed" - } - }, - "type": { - "$ref": "#/components/schemas/MessageType" - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessageComponent" - } - }, - "resolved": { - "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - } - }, - "additionalProperties": false, - "required": [ - "content", - "embeds", - "flags", - "mention_roles", - "mentions", - "timestamp", - "type" - ] - } - }, - "required": [ - "message" - ] - }, - "MessageComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType" - } - }, - "required": [ + "custom_id", + "label", + "style", "type" ] }, - "MessageComponentType": { + "MessageComponentType.TextInput": { + "type": "number", + "const": 4 + }, + "TextInputStyle": { "type": "number", "enum": [ 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23 + 2 ] }, - "InteractionGuild": { + "ContainerComponent": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" + "type": { + "$ref": "#/components/schemas/MessageComponentType.Container" }, - "features": { + "components": { "type": "array", "items": { - "type": "string" + "anyOf": [ + { + "$ref": "#/components/schemas/SectionComponent" + }, + { + "$ref": "#/components/schemas/TextDisplayComponent" + }, + { + "$ref": "#/components/schemas/MediaGalleryComponent" + }, + { + "$ref": "#/components/schemas/FileComponent" + }, + { + "$ref": "#/components/schemas/SeperatorComponent" + }, + { + "$ref": "#/components/schemas/ActionRowComponent" + } + ] } }, - "locale": { - "type": "string" + "accent_color": { + "type": "integer" + }, + "spoiler": { + "type": "boolean" + }, + "id": { + "type": "integer" } }, "required": [ - "features", - "id", - "locale" + "components", + "type" ] }, - "PublicMember": { + "MessageComponentType.Container": { + "type": "number", + "const": 17 + }, + "Poll": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "flags": { - "type": "integer" + "question": { + "$ref": "#/components/schemas/PollMedia" }, - "nick": { - "type": "string" + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswer" + } }, - "joined_at": { + "expiry": { "type": "string", "format": "date-time" }, - "pending": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "mute": { + "allow_multiselect": { "type": "boolean" }, - "premium_since": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { + "results": { + "$ref": "#/components/schemas/PollResult" + } + }, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { "type": "string" }, - "communication_disabled_until": { + "emoji": { "anyOf": [ { - "type": "string", - "format": "date-time" + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] }, { - "type": "null" + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] } ] + } + } + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" }, - "user": { - "$ref": "#/components/schemas/PublicUser" + "poll_media": { + "$ref": "#/components/schemas/PollMedia" + } + }, + "required": [ + "poll_media" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" }, - "roles": { + "answer_counts": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/PollAnswerCount" } } }, "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" + "answer_counts", + "is_finalized" ] }, - "PublicUser": { + "PollAnswerCount": { "type": "object", "properties": { "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { "type": "string" }, - "public_flags": { - "type": "integer" - }, - "accent_color": { + "count": { "type": "integer" }, - "bot": { + "me_voted": { "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" - }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" - }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" - }, - "primary_guild": { - "$ref": "#/components/schemas/PrimaryGuild" } }, "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" + "count", + "id", + "me_voted" + ] + }, + "MessageSnapshot": { + "type": "object", + "properties": { + "message": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "mentions": { + "type": "array", + "items": { + "type": "string" + } + }, + "mention_roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "type": { + "$ref": "#/components/schemas/MessageType" + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "resolved": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + } + }, + "additionalProperties": false, + "required": [ + "content", + "embeds", + "flags", + "mention_roles", + "mentions", + "timestamp", + "type" + ] + } + }, + "required": [ + "message" ] }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object" - }, - "GameActivity": { + "MessageComponent": { "type": "object", "properties": { - "activity_level": { - "type": "integer" + "type": { + "$ref": "#/components/schemas/MessageComponentType" }, - "activity_score": { + "id": { "type": "integer" } }, "required": [ - "activity_level", - "activity_score" + "type" ] }, - "GuildBadgeType": { + "MessageComponentType": { "type": "number", "enum": [ - 0, 1, 2, 3, @@ -12009,7 +12418,6 @@ 12, 13, 14, - 15, 16, 17, 18, @@ -12017,1144 +12425,1174 @@ 20, 21, 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30 + 23 ] }, - "GuildTrait": { + "VoiceState": { "type": "object", "properties": { - "emoji_id": { - "type": "string", - "nullable": true + "guild_id": { + "type": "string" }, - "emoji_name": { - "type": "string", - "nullable": true + "guild": { + "$ref": "#/components/schemas/Guild" }, - "emoji_animated": { - "type": "boolean" + "channel_id": { + "type": "string" }, - "label": { + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "user_id": { "type": "string" }, - "position": { - "type": "integer" - } - }, - "required": [ - "emoji_animated", - "emoji_id", - "emoji_name", - "label", - "position" - ] - }, - "GuildVisibilityLevel": { - "type": "number", - "enum": [ - 1, - 2, - 3 - ] - }, - "InstanceUserDeleteSchemaContent": { - "type": "object", - "properties": { - "reason": { + "user": { + "$ref": "#/components/schemas/User" + }, + "member": { + "$ref": "#/components/schemas/Member" + }, + "session_id": { "type": "string" }, - "persistInstanceBan": { + "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" } - } + }, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] }, - "PartialUser": { + "ReadState": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "channel_id": { "type": "string" }, - "username": { - "type": "string" + "channel": { + "$ref": "#/components/schemas/Channel" }, - "discriminator": { + "user_id": { "type": "string" }, - "global_name": { - "type": "string", - "nullable": true - }, - "avatar": { - "type": "string", - "nullable": true - }, - "avatar_decoration_data": { - "anyOf": [ - { - "$ref": "#/components/schemas/AvatarDecorationData" - }, - { - "type": "null" - } - ] + "user": { + "$ref": "#/components/schemas/User" }, - "collectibles": { - "anyOf": [ - { - "$ref": "#/components/schemas/Collectibles" - }, - { - "type": "null" - } - ] + "last_message_id": { + "type": "string" }, - "display_name_styles": { - "anyOf": [ - { - "$ref": "#/components/schemas/DisplayNameStyle" - }, - { - "type": "null" - } - ] + "last_acked_id": { + "type": "string" }, - "primary_guild": { - "anyOf": [ - { - "$ref": "#/components/schemas/PrimaryGuild" - }, - { - "type": "null" - } - ] + "notifications_cursor": { + "type": "string" }, - "bot": { - "type": "boolean" + "mention_count": { + "type": "integer" }, - "system": { - "type": "boolean" + "badge_count": { + "type": "integer" }, - "banner": { + "last_pin_timestamp": { "type": "string", - "nullable": true + "format": "date-time" }, - "accent_color": { - "type": "integer", - "nullable": true + "read_state_type": { + "$ref": "#/components/schemas/ReadStateType" }, - "public_flags": { - "type": "integer" + "flags": { + "$ref": "#/components/schemas/ReadStateFlags" + }, + "id": { + "type": "string" } }, "required": [ - "avatar", - "discriminator", + "badge_count", + "channel", + "channel_id", + "flags", "id", - "username" + "mention_count", + "notifications_cursor", + "read_state_type", + "user", + "user_id" ] }, - "Classification": { + "ReadStateType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ] + }, + "ReadStateFlags": { + "type": "number", + "enum": [ + 1, + 2, + 4 + ] + }, + "ThreadMetadata": { "type": "object", "properties": { - "id": { - "type": "string" + "archived": { + "type": "boolean" }, - "classification_type": { - "$ref": "#/components/schemas/ClassificationType" + "auto_archive_duration": { + "type": "integer" }, - "description": { + "archive_timestamp": { "type": "string" }, - "explainer_link": { - "type": "string" + "locked": { + "type": "boolean" }, - "actions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationAction" - } + "invitable": { + "type": "boolean" }, - "max_expiration_time": { + "create_timestamp": { + "type": "string" + } + }, + "required": [ + "archive_timestamp", + "archived", + "auto_archive_duration", + "create_timestamp", + "locked" + ] + }, + "Tag": { + "type": "object", + "properties": { + "channel_id": { "type": "string" }, - "flagged_content": { - "type": "array", - "items": {} + "channel": { + "$ref": "#/components/schemas/Channel" }, - "appeal_status": { - "$ref": "#/components/schemas/AppealStatus" + "name": { + "type": "string" }, - "is_coppa": { - "type": "boolean" + "moderated": { + "type": "boolean", + "default": false }, - "is_spam": { - "type": "boolean" + "emoji_id": { + "type": "string" }, - "appeal_ingestion_type": { - "$ref": "#/components/schemas/AppealIngestionType" + "emoji_name": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "actions", - "appeal_ingestion_type", - "appeal_status", - "classification_type", - "description", - "explainer_link", - "flagged_content", + "channel", + "channel_id", "id", - "is_coppa", - "is_spam", - "max_expiration_time" - ] - }, - "ClassificationType": { - "type": "number", - "enum": [ - 1, - 100, - 200, - 210, - 220, - 230, - 240, - 250, - 280, - 290, - 310, - 320, - 390, - 600, - 650, - 711, - 720, - 3010, - 3030, - 4000, - 4010, - 4130, - 4140, - 5010, - 5090, - 5305, - 5411, - 5440, - 5485 + "moderated", + "name" ] }, - "ClassificationAction": { + "Ban": { "type": "object", "properties": { - "id": { + "user_id": { "type": "string" }, - "action_type": { - "$ref": "#/components/schemas/ClassificationActionType" + "user": { + "$ref": "#/components/schemas/User" }, - "descriptions": { - "type": "array", - "items": { - "type": "string" - } + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "executor_id": { + "type": "string" + }, + "executor": { + "$ref": "#/components/schemas/User" + }, + "ip": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "action_type", - "descriptions", - "id" - ] - }, - "ClassificationActionType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 20, - 22 + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "user", + "user_id" ] }, - "AppealStatus": { + "Template": { "type": "object", "properties": { - "status": { - "$ref": "#/components/schemas/AppealStatusValue" + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/components/schemas/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/components/schemas/Guild" + }, + "serialized_source_guild": { + "$ref": "#/components/schemas/Guild" + }, + "id": { + "type": "string" } }, "required": [ - "status" - ] - }, - "AppealStatusValue": { - "type": "number", - "enum": [ - 1, - 2, - 3 - ] - }, - "AppealIngestionType": { - "type": "number", - "enum": [ - 0, - 1, - 2 + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" ] }, - "GuildClassification": { + "Emoji": { "type": "object", "properties": { - "guild_metadata": { - "$ref": "#/components/schemas/GuildMetadata" + "animated": { + "type": "boolean" }, - "id": { + "available": { + "type": "boolean" + }, + "guild_id": { "type": "string" }, - "classification_type": { - "$ref": "#/components/schemas/ClassificationType" + "guild": { + "$ref": "#/components/schemas/Guild" }, - "description": { + "user_id": { "type": "string" }, - "explainer_link": { + "user": { + "$ref": "#/components/schemas/User" + }, + "managed": { + "type": "boolean" + }, + "name": { "type": "string" }, - "actions": { + "require_colons": { + "type": "boolean" + }, + "roles": { "type": "array", "items": { - "$ref": "#/components/schemas/ClassificationAction" + "type": "string" } }, - "max_expiration_time": { - "type": "string" - }, - "flagged_content": { + "groups": { "type": "array", - "items": {} - }, - "appeal_status": { - "$ref": "#/components/schemas/AppealStatus" + "items": { + "type": "string" + } }, - "is_coppa": { + "id": { + "type": "string" + } + }, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { "type": "boolean" }, - "is_spam": { - "type": "boolean" + "description": { + "type": "string" }, - "appeal_ingestion_type": { - "$ref": "#/components/schemas/AppealIngestionType" + "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" + ] + } } }, "required": [ - "actions", - "appeal_ingestion_type", - "appeal_status", - "classification_type", "description", - "explainer_link", - "flagged_content", - "guild_metadata", - "id", - "is_coppa", - "is_spam", - "max_expiration_time" + "enabled", + "welcome_channels" ] }, - "GuildMetadata": { + "PartialMessage": { + "description": "https://docs.discord.food/resources/message#partial-message-structure", "type": "object", "properties": { - "name": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "icon": { + "channel_id": { "type": "string" }, - "member_type": { - "$ref": "#/components/schemas/GuildMemberType" + "type": { + "$ref": "#/components/schemas/MessageType" + }, + "content": { + "type": "string" + }, + "author": { + "$ref": "#/components/schemas/PartialUser" + }, + "flags": { + "type": "integer" + }, + "application_id": { + "type": "string" } }, "required": [ - "member_type", - "name" - ] - }, - "GuildMemberType": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, - "AccountStandingState": { - "type": "number", - "enum": [ - 100, - 200, - 300, - 400, - 500 - ] - }, - "AppealEligibility": { - "type": "number", - "enum": [ - 1, - 2, - 3 + "author", + "channel_id", + "content", + "id", + "type" ] }, - "CollectiblesCategoryItem": { + "PartialUser": { "type": "object", "properties": { - "sku_id": { - "type": "string" - }, - "name": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "summary": { + "username": { "type": "string" }, - "store_listing_id": { + "discriminator": { "type": "string" }, - "banner": { - "type": "string" + "global_name": { + "type": "string", + "nullable": true }, - "unpublished_at": { + "avatar": { "type": "string", "nullable": true }, - "styles": { - "$ref": "#/components/schemas/CollectiblesCategoryStyle" + "avatar_decoration_data": { + "anyOf": [ + { + "$ref": "#/components/schemas/AvatarDecorationData" + }, + { + "type": "null" + } + ] }, - "logo": { - "type": "string" + "collectibles": { + "anyOf": [ + { + "$ref": "#/components/schemas/Collectibles" + }, + { + "type": "null" + } + ] + }, + "display_name_styles": { + "anyOf": [ + { + "$ref": "#/components/schemas/DisplayNameStyle" + }, + { + "type": "null" + } + ] }, - "hero_ranking": { + "primary_guild": { "anyOf": [ { - "type": "array", - "items": { - "type": "string" - } + "$ref": "#/components/schemas/PrimaryGuild" }, { "type": "null" } ] }, - "mobile_bg": { - "type": "string", - "nullable": true - }, - "pdp_bg": { - "type": "string", - "nullable": true - }, - "success_modal_bg": { - "type": "string", - "nullable": true - }, - "mobile_banner": { - "type": "string", - "nullable": true - }, - "featured_block": { - "type": "string", - "nullable": true + "bot": { + "type": "boolean" }, - "hero_banner": { - "type": "string", - "nullable": true + "system": { + "type": "boolean" }, - "wide_banner": { + "banner": { "type": "string", "nullable": true }, - "hero_logo": { - "type": "string", + "accent_color": { + "type": "integer", "nullable": true }, - "products": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CollectiblesCategoryProductItem" - } - }, - "banner_asset": { - "$ref": "#/components/schemas/StaticAnimatedAsset" - }, - "hero_banner_asset": { - "$ref": "#/components/schemas/StaticAnimatedAsset" + "public_flags": { + "type": "integer" } }, "required": [ - "banner", - "featured_block", - "hero_banner", - "hero_logo", - "hero_ranking", - "logo", - "mobile_banner", - "mobile_bg", - "name", - "pdp_bg", - "products", - "sku_id", - "store_listing_id", - "styles", - "success_modal_bg", - "summary", - "unpublished_at", - "wide_banner" + "avatar", + "discriminator", + "id", + "username" ] }, - "CollectiblesCategoryStyle": { + "HubGuild": { "type": "object", "properties": { - "background_colors": { - "type": "array", - "items": { - "type": "integer" - } + "icon": { + "type": "string" }, - "button_colors": { - "type": "array", - "items": { - "type": "integer" - } + "id": { + "type": "string" }, - "confetti_colors": { - "type": "array", - "items": { - "type": "integer" - } + "name": { + "type": "string" } }, "required": [ - "background_colors", - "button_colors", - "confetti_colors" + "icon", + "id", + "name" ] }, - "CollectiblesCategoryProductItem": { + "EmojiGuild": { "type": "object", "properties": { - "sku_id": { + "id": { "type": "string" }, "name": { "type": "string" }, - "summary": { - "type": "string" - }, - "store_listing_id": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "unpublished_at": { + "icon": { "type": "string", "nullable": true }, - "styles": { - "$ref": "#/components/schemas/CollectiblesCategoryStyle" + "description": { + "type": "string", + "nullable": true }, - "prices": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "country_prices": { - "$ref": "#/components/schemas/CountryPrice" - } - }, - "additionalProperties": false, - "required": [ - "country_prices" - ] + "features": { + "type": "array", + "items": { + "type": "string" } }, - "items": { + "emojis": { "type": "array", "items": { - "$ref": "#/components/schemas/ProductItem" + "$ref": "#/components/schemas/Emoji" } }, - "type": { + "premium_tier": { "type": "integer" }, - "premium_type": { + "premium_subscription_count": { "type": "integer" }, - "category_sku_id": { - "type": "string" - }, - "google_sku_ids": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "approximate_member_count": { + "type": "integer" }, - "variants": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductItemVariant" - } + "approximate_presence_count": { + "type": "integer" } }, "required": [ - "banner", - "category_sku_id", - "google_sku_ids", - "items", + "emojis", + "features", + "id", "name", - "premium_type", - "prices", - "sku_id", - "store_listing_id", - "styles", - "summary", - "type", - "unpublished_at" + "premium_tier" ] }, - "CountryPrice": { + "EmojiApplication": { "type": "object", "properties": { - "country_code": { + "id": { "type": "string" }, - "prices": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PriceEntry" - } + "name": { + "type": "string" } }, "required": [ - "country_code", - "prices" + "id", + "name" ] }, - "PriceEntry": { + "GuildMessagesSearchMessage": { "type": "object", "properties": { - "amount": { - "type": "integer" - }, - "currency": { + "id": { "type": "string" }, - "exponent": { - "type": "integer" - } - }, - "required": [ - "amount", - "currency", - "exponent" - ] - }, - "ProductItem": { - "type": "object", - "properties": { "type": { - "type": "integer" + "$ref": "#/components/schemas/MessageType" + }, + "content": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "author": { + "$ref": "#/components/schemas/PublicUser" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PublicUser" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "pinned": { + "type": "boolean" }, - "id": { - "type": "string" + "mention_everyone": { + "type": "boolean" }, - "sku_id": { - "type": "string" + "tts": { + "type": "boolean" }, - "asset": { + "timestamp": { "type": "string" }, - "label": { - "type": "string" + "edited_timestamp": { + "type": "string", + "nullable": true }, - "palette": { - "type": "string" + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BaseMessageComponents" + } + }, + "poll": { + "$ref": "#/components/schemas/Poll" + }, + "hit": { + "type": "boolean", + "const": true } }, "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", "id", - "sku_id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", "type" ] }, - "ProductItemVariant": { + "PublicUser": { "type": "object", "properties": { - "sku_id": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "name": { + "banner": { "type": "string" }, - "name_localizations": { - "type": "null" + "premium_since": { + "type": "string", + "format": "date-time" }, - "summary": { + "avatar": { "type": "string" }, - "summary_localizations": { - "type": "null" - }, - "store_listing_id": { + "bio": { "type": "string" }, - "banner": { - "type": "string" + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } }, - "unpublished_at": { - "type": "string", - "nullable": true + "pronouns": { + "type": "string" }, - "styles": { - "$ref": "#/components/schemas/CollectiblesCategoryStyle" + "username": { + "type": "string" }, - "prices": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "country_prices": { - "$ref": "#/components/schemas/CountryPrice" - } - }, - "additionalProperties": false, - "required": [ - "country_prices" - ] - } + "discriminator": { + "type": "string" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductItem" - } + "public_flags": { + "type": "integer" }, - "type": { + "accent_color": { "type": "integer" }, + "bot": { + "type": "boolean" + }, "premium_type": { "type": "integer" }, - "category_sku_id": { - "type": "string" - }, - "google_sku_ids": { - "type": "object", - "additionalProperties": { + "badge_ids": { + "type": "array", + "items": { "type": "string" } }, - "base_variant_sku_id": { - "type": "string" + "avatar_decoration_data": { + "$ref": "#/components/schemas/AvatarDecorationData" }, - "base_variant_name": { - "type": "string" + "display_name_styles": { + "$ref": "#/components/schemas/DisplayNameStyle" }, - "variant_label": { - "type": "string" + "collectibles": { + "$ref": "#/components/schemas/Collectibles" }, - "variant_value": { - "type": "string" + "primary_guild": { + "$ref": "#/components/schemas/PrimaryGuild" } }, "required": [ - "base_variant_name", - "base_variant_sku_id", - "category_sku_id", - "items", - "name", - "name_localizations", + "bio", + "bot", + "discriminator", + "id", + "premium_since", "premium_type", - "prices", - "sku_id", - "store_listing_id", - "summary", - "summary_localizations", - "type", - "variant_label", - "variant_value" + "public_flags", + "username" ] }, - "StaticAnimatedAsset": { + "GuildVanityUrl": { "type": "object", "properties": { - "animated": { - "type": "string", - "nullable": true - }, - "static": { + "code": { "type": "string" + }, + "uses": { + "type": "integer" } }, "required": [ - "animated", - "static" + "code", + "uses" ] }, - "CollectiblesMarketingItem": { + "GuildVanityUrlNoInvite": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "title": { - "type": "string" - }, - "body": { - "type": "string" + "code": { + "type": "null" } }, "required": [ - "body", - "title", - "type", - "version" + "code" ] }, - "AnyShopBlock": { - "anyOf": [ - { - "$ref": "#/components/schemas/ItemRowShopBlock" - }, - { - "$ref": "#/components/schemas/BundleTileRowShopBlock" - }, - { - "$ref": "#/components/schemas/ItemCollectionShopBlock" - } - ] + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object" }, - "ItemRowShopBlock": { + "HubDirectoryEntry": { "type": "object", "properties": { - "type": { - "type": "integer", - "const": 0 - }, - "category_sku_id": { + "author_id": { "type": "string" }, - "name": { + "created_at": { "type": "string" }, - "category_store_listing_id": { + "description": { "type": "string" }, - "banner_asset": { - "$ref": "#/components/schemas/StaticAnimatedAsset" - }, - "logo_url": { + "directory_channel_id": { "type": "string" }, - "unpublished_at": { - "type": "string", - "nullable": true - }, - "summary": { - "type": "string" + "guild": { + "$ref": "#/components/schemas/Guild" }, - "ranked_sku_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "banner_asset", - "category_sku_id", - "category_store_listing_id", - "logo_url", - "name", - "ranked_sku_ids", - "summary", - "type", - "unpublished_at" - ] - }, - "BundleTileRowShopBlock": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "const": 1 + "primary_category_id": { + "type": "integer" }, - "subblocks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ShopBlockSubBlock" - } + "type": { + "type": "integer" } }, "required": [ - "subblocks", + "author_id", + "created_at", + "description", + "directory_channel_id", + "guild", + "primary_category_id", "type" ] }, - "ShopBlockSubBlock": { + "RefreshedUrl": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "category_store_listing_id": { - "type": "string" - }, - "name": { + "original": { "type": "string" }, - "unpublished_at": { - "type": "string", - "nullable": true - }, - "banner_url": { + "refreshed": { "type": "string" - }, - "body_text": { - "type": "string", - "nullable": true - }, - "banner_text_color": { - "type": "integer", - "nullable": true } }, "required": [ - "banner_text_color", - "banner_url", - "body_text", - "category_store_listing_id", - "name", - "type", - "unpublished_at" + "original", + "refreshed" ] }, - "ItemCollectionShopBlock": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "const": 2 - }, - "ranked_sku_ids": { - "type": "array", - "items": { - "type": "string" + "JsonValue": { + "description": "Represents any possible JSON value:\n- number\n- string\n- boolean\n- null\n- object (with any JSON value as property)\n- array (with any JSON value as element)", + "anyOf": [ + { + "description": "Represents a JSON object.", + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/JsonValue" } }, - "sorted_sku_ids": { + { "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "$ref": "#/components/schemas/JsonValue" + } + }, "properties": { - "recommended": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } + "length": { + "type": "integer" + }, + "__@unscopables@698": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "type": "boolean" + } + }, + "properties": { + "length": { + "type": "boolean" }, - { - "type": "null" + "toString": { + "type": "boolean" + }, + "toLocaleString": { + "type": "boolean" + }, + "pop": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "concat": { + "type": "boolean" + }, + "join": { + "type": "boolean" + }, + "reverse": { + "type": "boolean" + }, + "shift": { + "type": "boolean" + }, + "slice": { + "type": "boolean" + }, + "sort": { + "type": "boolean" + }, + "splice": { + "type": "boolean" + }, + "unshift": { + "type": "boolean" + }, + "indexOf": { + "type": "boolean" + }, + "lastIndexOf": { + "type": "boolean" + }, + "every": { + "type": "boolean" + }, + "some": { + "type": "boolean" + }, + "forEach": { + "type": "boolean" + }, + "map": { + "type": "boolean" + }, + "filter": { + "type": "boolean" + }, + "reduce": { + "type": "boolean" + }, + "reduceRight": { + "type": "boolean" + }, + "find": { + "type": "boolean" + }, + "findIndex": { + "type": "boolean" + }, + "fill": { + "type": "boolean" + }, + "copyWithin": { + "type": "boolean" + }, + "entries": { + "type": "boolean" + }, + "keys": { + "type": "boolean" + }, + "values": { + "type": "boolean" + }, + "includes": { + "type": "boolean" + }, + "flatMap": { + "type": "boolean" + }, + "flat": { + "type": "boolean" + }, + "at": { + "type": "boolean" + }, + "findLast": { + "type": "boolean" + }, + "findLastIndex": { + "type": "boolean" + }, + "toReversed": { + "type": "boolean" + }, + "toSorted": { + "type": "boolean" + }, + "toSpliced": { + "type": "boolean" + }, + "with": { + "type": "boolean" + }, + "__@iterator@696": { + "type": "boolean" + }, + "__@unscopables@698": { + "type": "boolean" } - ] - }, - "popular": { - "type": "array", - "items": { - "type": "string" } } }, - "additionalProperties": false, "required": [ - "popular", - "recommended" + "__@unscopables@698", + "length" + ] + }, + { + "type": [ + "null", + "string", + "integer", + "boolean" ] } - }, - "required": [ - "ranked_sku_ids", - "sorted_sku_ids", - "type" ] - }, - "PartialMessage": { - "description": "https://docs.discord.food/resources/message#partial-message-structure", - "type": "object", - "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/MessageType" + }, + "BackupCode": { + "type": "object", + "properties": { + "user": { + "$ref": "#/components/schemas/User" }, - "content": { + "code": { "type": "string" }, - "author": { - "$ref": "#/components/schemas/PartialUser" + "consumed": { + "type": "boolean" }, - "flags": { - "type": "integer" + "expired": { + "type": "boolean" }, - "application_id": { + "id": { "type": "string" } }, "required": [ - "author", - "channel_id", - "content", + "code", + "consumed", + "expired", "id", - "type" + "user" ] }, - "HubGuild": { + "InteractionCallbackType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12 + ] + }, + "PongCallback": { "type": "object", "properties": { - "icon": { - "type": "string" - }, - "id": { - "type": "string" + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.PONG" }, - "name": { - "type": "string" - } + "data": {} }, "required": [ - "icon", - "id", - "name" + "data", + "type" ] }, - "EmojiGuild": { + "InteractionCallbackType.PONG": { + "type": "number", + "const": 1 + }, + "AckCallback": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - }, - "description": { - "type": "string", - "nullable": true - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Emoji" - } - }, - "premium_tier": { - "type": "integer" - }, - "premium_subscription_count": { - "type": "integer" - }, - "approximate_member_count": { - "type": "integer" + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.ACKNOWLEDGE" }, - "approximate_presence_count": { - "type": "integer" - } + "data": {} }, "required": [ - "emojis", - "features", - "id", - "name", - "premium_tier" + "data", + "type" ] }, - "EmojiApplication": { + "InteractionCallbackType.ACKNOWLEDGE": { + "type": "number", + "const": 2 + }, + "MessageCallback": { "type": "object", "properties": { - "id": { - "type": "string" + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.CHANNEL_MESSAGE" }, - "name": { - "type": "string" - } + "data": {} }, "required": [ - "id", - "name" + "data", + "type" ] }, - "GuildMessagesSearchMessage": { + "InteractionCallbackType.CHANNEL_MESSAGE": { + "type": "number", + "const": 3 + }, + "MessageWSourceCallback": { "type": "object", "properties": { - "id": { - "type": "string" - }, "type": { - "$ref": "#/components/schemas/MessageType" + "$ref": "#/components/schemas/InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE" }, + "data": { + "$ref": "#/components/schemas/InteractionMessage" + } + }, + "required": [ + "data", + "type" + ] + }, + "InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE": { + "type": "number", + "const": 4 + }, + "InteractionMessage": { + "type": "object", + "properties": { "content": { "type": "string" }, - "channel_id": { - "type": "string" - }, - "author": { - "$ref": "#/components/schemas/PublicUser" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Attachment" - } + "tts": { + "type": "boolean" }, "embeds": { "type": "array", @@ -13162,343 +13600,330 @@ "$ref": "#/components/schemas/Embed" } }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PublicUser" - } + "allowed_mentions": { + "$ref": "#/components/schemas/AllowedMentions" }, - "mention_roles": { + "components": { "type": "array", "items": { - "$ref": "#/components/schemas/Role" + "$ref": "#/components/schemas/BaseMessageComponents" } }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": "string", - "nullable": true - }, "flags": { "type": "integer" }, - "components": { + "attachments": { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponent" + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "uploaded_filename": { + "type": "string" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "uploaded_filename" + ] + } + ] } }, "poll": { - "$ref": "#/components/schemas/Poll" + "$ref": "#/components/schemas/PollCreationSchema" + } + } + }, + "MessageDWSourceCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE" }, - "hit": { - "type": "boolean", - "const": true + "data": { + "$ref": "#/components/schemas/InteractionMessage" } }, "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", + "data", + "type" + ] + }, + "InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE": { + "type": "number", + "const": 5 + }, + "MessageUpdateCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.UPDATE_MESSAGE" + }, + "data": { + "$ref": "#/components/schemas/InteractionMessage" + } + }, + "required": [ + "data", "type" ] }, - "GuildVanityUrl": { + "InteractionCallbackType.UPDATE_MESSAGE": { + "type": "number", + "const": 7 + }, + "MessageDUpdateCallback": { "type": "object", "properties": { - "code": { - "type": "string" + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.DEFERRED_UPDATE_MESSAGE" }, - "uses": { - "type": "integer" + "data": { + "$ref": "#/components/schemas/InteractionMessage" } }, "required": [ - "code", - "uses" + "data", + "type" ] }, - "GuildVanityUrlNoInvite": { + "InteractionCallbackType.DEFERRED_UPDATE_MESSAGE": { + "type": "number", + "const": 6 + }, + "InteractionGuild": { "type": "object", "properties": { - "code": { - "type": "null" + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "locale": { + "type": "string" } }, "required": [ - "code" + "features", + "id", + "locale" ] }, - "HubDirectoryEntry": { + "PublicMember": { "type": "object", "properties": { - "author_id": { + "id": { "type": "string" }, - "created_at": { + "guild_id": { "type": "string" }, - "description": { + "flags": { + "type": "integer" + }, + "banner": { "type": "string" }, - "directory_channel_id": { + "nick": { "type": "string" }, - "guild": { - "$ref": "#/components/schemas/Guild" + "joined_at": { + "type": "string", + "format": "date-time" }, - "primary_category_id": { - "type": "integer" + "pending": { + "type": "boolean" }, - "type": { + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { "type": "integer" - } - }, - "required": [ - "author_id", - "created_at", - "description", - "directory_channel_id", - "guild", - "primary_category_id", - "type" - ] - }, - "RefreshedUrl": { - "type": "object", - "properties": { - "original": { + }, + "avatar": { "type": "string" }, - "refreshed": { + "bio": { "type": "string" - } - }, - "required": [ - "original", - "refreshed" - ] - }, - "JsonValue": { - "description": "Represents any possible JSON value:\n- number\n- string\n- boolean\n- null\n- object (with any JSON value as property)\n- array (with any JSON value as element)", - "anyOf": [ - { - "description": "Represents a JSON object.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/JsonValue" - } }, - { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "$ref": "#/components/schemas/JsonValue" - } - }, - "properties": { - "length": { - "type": "integer" - }, - "__@unscopables@698": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "boolean" - } - }, - "properties": { - "length": { - "type": "boolean" - }, - "toString": { - "type": "boolean" - }, - "toLocaleString": { - "type": "boolean" - }, - "pop": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "concat": { - "type": "boolean" - }, - "join": { - "type": "boolean" - }, - "reverse": { - "type": "boolean" - }, - "shift": { - "type": "boolean" - }, - "slice": { - "type": "boolean" - }, - "sort": { - "type": "boolean" - }, - "splice": { - "type": "boolean" - }, - "unshift": { - "type": "boolean" - }, - "indexOf": { - "type": "boolean" - }, - "lastIndexOf": { - "type": "boolean" - }, - "every": { - "type": "boolean" - }, - "some": { - "type": "boolean" - }, - "forEach": { - "type": "boolean" - }, - "map": { - "type": "boolean" - }, - "filter": { - "type": "boolean" - }, - "reduce": { - "type": "boolean" - }, - "reduceRight": { - "type": "boolean" - }, - "find": { - "type": "boolean" - }, - "findIndex": { - "type": "boolean" - }, - "fill": { - "type": "boolean" - }, - "copyWithin": { - "type": "boolean" - }, - "entries": { - "type": "boolean" - }, - "keys": { - "type": "boolean" - }, - "values": { - "type": "boolean" - }, - "includes": { - "type": "boolean" - }, - "flatMap": { - "type": "boolean" - }, - "flat": { - "type": "boolean" - }, - "at": { - "type": "boolean" - }, - "findLast": { - "type": "boolean" - }, - "findLastIndex": { - "type": "boolean" - }, - "toReversed": { - "type": "boolean" - }, - "toSorted": { - "type": "boolean" - }, - "toSpliced": { - "type": "boolean" - }, - "with": { - "type": "boolean" - }, - "__@iterator@696": { - "type": "boolean" - }, - "__@unscopables@698": { - "type": "boolean" - } - } + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" } - }, - "required": [ - "__@unscopables@698", - "length" ] }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] + "user": { + "$ref": "#/components/schemas/PublicUser" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } } + }, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "flags", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" ] }, - "BackupCode": { + "InstanceUserDeleteSchemaContent": { "type": "object", "properties": { - "user": { - "$ref": "#/components/schemas/User" - }, - "code": { + "reason": { "type": "string" }, - "consumed": { + "persistInstanceBan": { "type": "boolean" + } + } + }, + "GameActivity": { + "type": "object", + "properties": { + "activity_level": { + "type": "integer" }, - "expired": { + "activity_score": { + "type": "integer" + } + }, + "required": [ + "activity_level", + "activity_score" + ] + }, + "GuildBadgeType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30 + ] + }, + "GuildTrait": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string", + "nullable": true + }, + "emoji_name": { + "type": "string", + "nullable": true + }, + "emoji_animated": { "type": "boolean" }, - "id": { + "label": { "type": "string" + }, + "position": { + "type": "integer" } }, "required": [ - "code", - "consumed", - "expired", - "id", - "user" + "emoji_animated", + "emoji_id", + "emoji_name", + "label", + "position" + ] + }, + "GuildVisibilityLevel": { + "type": "number", + "enum": [ + 1, + 2, + 3 ] }, "DmChannelDTO": { @@ -13643,20 +14068,16 @@ "type": "object", "properties": { "maxGuilds": { - "type": "integer", - "default": 1048576 + "type": "integer" }, "maxUsername": { - "type": "integer", - "default": 32 + "type": "integer" }, "maxFriends": { - "type": "integer", - "default": 5000 + "type": "integer" }, "maxBio": { - "type": "integer", - "default": 190 + "type": "integer" } }, "required": [ @@ -13670,32 +14091,25 @@ "type": "object", "properties": { "maxRoles": { - "type": "integer", - "default": 1000 + "type": "integer" }, "maxEmojis": { - "type": "integer", - "default": 2000 + "type": "integer" }, "maxStickers": { - "type": "integer", - "default": 500 + "type": "integer" }, "maxMembers": { - "type": "integer", - "default": 25000000 + "type": "integer" }, "maxChannels": { - "type": "integer", - "default": 65535 + "type": "integer" }, "maxBulkBanUsers": { - "type": "integer", - "default": 200 + "type": "integer" }, "maxChannelsInCategory": { - "type": "integer", - "default": 65535 + "type": "integer" } }, "required": [ @@ -13712,32 +14126,25 @@ "type": "object", "properties": { "maxCharacters": { - "type": "integer", - "default": 1048576 + "type": "integer" }, "maxTTSCharacters": { - "type": "integer", - "default": 160 + "type": "integer" }, "maxReactions": { - "type": "integer", - "default": 2048 + "type": "integer" }, "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 + "type": "integer" }, "maxBulkDelete": { - "type": "integer", - "default": 1000 + "type": "integer" }, "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 + "type": "integer" }, "maxPreloadCount": { - "type": "integer", - "default": 100 + "type": "integer" } }, "required": [ @@ -13754,20 +14161,16 @@ "type": "object", "properties": { "maxPins": { - "type": "integer", - "default": 500 + "type": "integer" }, "maxTopic": { - "type": "integer", - "default": 1024 + "type": "integer" }, "maxWebhooks": { - "type": "integer", - "default": 100 + "type": "integer" }, "maxName": { - "type": "integer", - "default": 32 + "type": "integer" } }, "required": [ @@ -13781,8 +14184,7 @@ "type": "object", "properties": { "enabled": { - "type": "boolean", - "default": false + "type": "boolean" }, "ip": { "$ref": "#/components/schemas/RateLimitOptions" @@ -13883,16 +14285,13 @@ "type": "object", "properties": { "limit": { - "type": "integer", - "default": 100 + "type": "integer" }, "window": { - "type": "integer", - "default": 3600000 + "type": "integer" }, "enabled": { - "type": "boolean", - "default": true + "type": "boolean" } }, "required": [ @@ -13990,34 +14389,23 @@ "id" ] }, - "AllowedMentions": { + "MessageReference": { "type": "object", "properties": { - "parse": { - "type": "array", - "items": { - "enum": [ - "everyone", - "roles", - "users" - ], - "type": "string" - } + "message_id": { + "type": "string" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "channel_id": { + "type": "string" }, - "users": { - "type": "array", - "items": { - "type": "string" - } + "guild_id": { + "type": "string" }, - "replied_user": { + "fail_if_not_exists": { "type": "boolean" + }, + "type": { + "type": "integer" } } }, @@ -14025,12 +14413,7 @@ "type": "object", "properties": { "type": { - "enum": [ - 1, - 3, - 5 - ], - "type": "number" + "$ref": "#/components/schemas/MessageActivityType" }, "session_id": { "type": "string" @@ -14048,6 +14431,16 @@ "required": [ "type" ] + }, + "MessageActivityType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ] } } }, @@ -18726,6 +19119,16 @@ "bearer": [] } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InteractionCallbacksSchema" + } + } + } + }, "responses": { "default": { "description": "No description available" diff --git a/assets/schemas.json b/assets/schemas.json index 0369e04d..256191e1 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -224,1114 +224,1286 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionCallbackSchema": { + "AckBulkSchema": { "type": "object", "properties": { - "type": { - "$ref": "#/definitions/InteractionCallbackType" - }, - "data": { - "$ref": "#/definitions/Message" + "read_states": { + "type": "array", + "items": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "read_state_type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_id", + "read_state_type" + ] + } } }, "additionalProperties": false, "required": [ - "data", - "type" + "read_states" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionCreateSchema": { + "ActivitySchema": { "type": "object", "properties": { - "version": { - "type": "integer" - }, - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "application_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" + "afk": { + "type": "boolean" }, - "token": { - "type": "string" + "status": { + "$ref": "#/definitions/Status" }, - "data": { - "type": "object", - "properties": {}, - "additionalProperties": true + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "guild": { - "$ref": "#/definitions/InteractionGuild" + "since": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "status" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationAuthorizeSchema": { + "type": "object", + "properties": { + "authorize": { + "type": "boolean" }, "guild_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "guild_locale": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "channel_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "permissions": { "type": "string" }, - "member": { - "$ref": "#/definitions/PublicMember" - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "locale": { + "captcha_key": { "type": "string" }, - "message": { - "$ref": "#/definitions/Message" - }, - "app_permissions": { + "code": { + "minLength": 6, + "maxLength": 6, "type": "string" - }, - "entitlements": { - "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } - }, - "entitlement_sku_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "authorizing_integration_owners": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "string" - } - } - }, - "context": { - "type": "integer" - }, - "attachment_size_limit": { - "type": "integer" } }, "additionalProperties": false, "required": [ - "app_permissions", - "application_id", - "attachment_size_limit", - "id", - "token", - "type", - "version" + "authorize", + "guild_id", + "permissions" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationCreateSchema": { + "AutomodMentionSpamRuleSchema": { "type": "object", "properties": { - "name": { - "type": "string" + "mention_total_limit": { + "type": "integer" }, - "team_id": { - "type": "string" + "mention_raid_protection_enabled": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "name" + "mention_raid_protection_enabled", + "mention_total_limit" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationModifySchema": { + "AutomodSuspectedSpamRuleSchema": { + "type": "object", + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AutomodCommonlyFlaggedWordsRuleSchema": { "type": "object", "properties": { - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "cover_image": { - "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": { + "allow_list": { "type": "array", - "items": { - "type": "string" - } - }, - "terms_of_service_url": { - "type": "string" - }, - "bot_public": { - "type": "boolean" - }, - "bot_require_code_grant": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "custom_install_url": { - "type": "string" + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "guild_id": { - "type": "string" + "presets": { + "type": "array", + "items": [ + { + "type": "integer" + } + ], + "minItems": 1, + "maxItems": 1 } }, "additionalProperties": false, + "required": [ + "allow_list", + "presets" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "SendableApplicationCommandDataSchema": { + "AutomodCustomWordsRuleSchema": { "type": "object", "properties": { - "id": { - "$ref": "#/definitions/Snowflake" - }, - "type": { - "enum": [ - 1, - 2, - 3, - 4 + "allow_list": { + "type": "array", + "items": [ + { + "type": "string" + } ], - "type": "number" - }, - "name": { - "type": "string" + "minItems": 1, + "maxItems": 1 }, - "version": { - "$ref": "#/definitions/Snowflake" - }, - "application_command": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "options": { + "keyword_filter": { "type": "array", - "items": { - "$ref": "#/definitions/ApplicationCommandOption" - } - }, - "target_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/definitions/Snowflake" + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "attachments": { + "regex_patterns": { "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 } }, "additionalProperties": false, "required": [ - "id", - "name", - "version" + "allow_list", + "keyword_filter", + "regex_patterns" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "SendableMessageComponentDataSchema": { + "AutomodRuleSchema": { "type": "object", "properties": { - "component_type": { - "enum": [ - 1, - 10, - 11, - 12, - 13, - 14, - 16, - 17, - 18, - 19, - 2, - 20, - 21, - 22, - 23, - 3, - 4, - 5, - 6, - 7, - 8, - 9 + "creator_id": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "event_type": { + "type": "integer" + }, + "exempt_channels": { + "type": "array", + "items": [ + { + "type": "string" + } ], - "type": "number" + "minItems": 1, + "maxItems": 1 }, - "type": { - "enum": [ - 1, - 2, - 3, - 4 + "exempt_roles": { + "type": "array", + "items": [ + { + "type": "string" + } ], - "type": "number" + "minItems": 1, + "maxItems": 1 }, - "custom_id": { + "guild_id": { "type": "string" }, - "values": { + "name": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "trigger_type": { + "type": "integer" + }, + "trigger_metadata": { "anyOf": [ { - "type": "array", - "items": { - "type": "string" - } + "$ref": "#/definitions/AutomodMentionSpamRuleSchema" }, { - "type": "array", - "items": { - "$ref": "#/definitions/Snowflake" - } + "$ref": "#/definitions/AutomodSuspectedSpamRuleSchema" + }, + { + "$ref": "#/definitions/AutomodCommonlyFlaggedWordsRuleSchema" + }, + { + "$ref": "#/definitions/AutomodCustomWordsRuleSchema" } ] } }, "additionalProperties": false, "required": [ - "custom_id" + "creator_id", + "enabled", + "event_type", + "exempt_channels", + "exempt_roles", + "guild_id", + "name", + "position", + "trigger_metadata", + "trigger_type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "SendableModalSubmitDataSchema": { + "BackupCodesChallengeSchema": { + "type": "object", + "properties": { + "password": { + "minLength": 1, + "maxLength": 72, + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BanCreateSchema": { + "type": "object", + "properties": { + "delete_message_seconds": { + "type": "integer" + }, + "delete_message_days": { + "type": "integer" + }, + "reason": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BanModeratorSchema": { "type": "object", "properties": { "id": { - "$ref": "#/definitions/Snowflake" + "type": "string" }, - "custom_id": { + "user_id": { "type": "string" }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/UploadAttachmentRequestSchema" - } + "guild_id": { + "type": "string" + }, + "executor_id": { + "type": "string" + }, + "reason": { + "type": "string" } }, "additionalProperties": false, "required": [ - "custom_id", - "id" + "executor_id", + "guild_id", + "id", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildProfileResponse": { + "BanRegistrySchema": { "type": "object", "properties": { "id": { "type": "string" }, - "name": { + "user_id": { "type": "string" }, - "icon_hash": { - "type": [ - "null", - "string" - ] - }, - "member_count": { - "type": "integer" + "guild_id": { + "type": "string" }, - "online_count": { - "type": "integer" + "executor_id": { + "type": "string" }, - "description": { + "ip": { "type": "string" }, - "brand_color_primary": { + "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" }, - "banner_hash": { - "type": [ - "null", - "string" - ] + "username": { + "type": "string" }, - "game_application_ids": { + "banner": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BulkBanSchema": { + "type": "object", + "properties": { + "user_ids": { "type": "array", "items": { "type": "string" } }, - "game_activity": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/GameActivity" - } - }, - "tag": { - "type": [ - "null", - "string" - ] - }, - "badge": { - "$ref": "#/definitions/GuildBadgeType" - }, - "badge_color_primary": { - "type": "string" - }, - "badge_color_secondary": { - "type": "string" - }, - "badge_hash": { - "type": "string" - }, - "traits": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildTrait" - } - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "visibility": { - "$ref": "#/definitions/GuildVisibilityLevel" - }, - "custom_banner_hash": { - "type": [ - "null", - "string" - ] - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { + "delete_message_seconds": { "type": "integer" } }, "additionalProperties": false, "required": [ - "badge", - "badge_color_primary", - "badge_color_secondary", - "badge_hash", - "banner_hash", - "brand_color_primary", - "custom_banner_hash", - "description", - "features", - "game_activity", - "game_application_ids", - "icon_hash", - "id", - "member_count", - "name", - "online_count", - "premium_subscription_count", - "premium_tier", - "tag", - "traits", - "visibility" + "user_ids" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildAvailableSchema": { + "BulkDeleteSchema": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "available": { - "type": "boolean" + "messages": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "available", - "id" + "messages" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceUserDeleteSchema": { - "$ref": "#/definitions/InstanceUserDeleteSchemaContent", - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserSettingsUpdateSchema": { + "ChannelModifySchema": { "type": "object", "properties": { - "afk_timeout": { - "type": "integer" - }, - "allow_accessibility_detection": { - "type": "boolean" - }, - "animate_emoji": { - "type": "boolean" - }, - "animate_stickers": { - "type": "integer" + "name": { + "type": "string" }, - "contact_sync_enabled": { - "type": "boolean" + "type": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 2, + 255, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "type": "number" }, - "convert_emoticons": { - "type": "boolean" + "topic": { + "type": "string" }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } + "icon": { + "type": [ + "null", + "string" ] }, - "default_guilds_restricted": { - "type": "boolean" - }, - "detect_platform_accounts": { - "type": "boolean" - }, - "developer_mode": { - "type": "boolean" - }, - "disable_games_tab": { - "type": "boolean" - }, - "enable_tts_command": { - "type": "boolean" - }, - "explicit_content_filter": { + "bitrate": { "type": "integer" }, - "friend_discovery_flags": { + "user_limit": { "type": "integer" }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" + "rate_limit_per_user": { + "type": "integer" }, - "gateway_connected": { - "type": "boolean" + "position": { + "type": "integer" }, - "gif_auto_play": { + "invitable": { "type": "boolean" }, - "guild_folders": { + "permission_overwrites": { "type": "array", "items": { - "$ref": "#/definitions/GuildFolder" + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] } }, - "guild_positions": { + "applied_tags": { "type": "array", "items": { "type": "string" } }, - "inline_attachment_media": { - "type": "boolean" + "parent_id": { + "type": "string" }, - "inline_embed_media": { + "id": { + "type": "string" + }, + "nsfw": { "type": "boolean" }, - "locale": { + "rtc_region": { "type": "string" }, - "message_display_compact": { - "type": "boolean" + "default_auto_archive_duration": { + "type": "integer" }, - "native_phone_integration_enabled": { - "type": "boolean" + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] }, - "render_embeds": { + "flags": { + "type": "integer" + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + }, + "auto_archive_duration": { + "type": "integer" + }, + "archived": { "type": "boolean" }, - "render_reactions": { + "locked": { "type": "boolean" }, - "restricted_guilds": { + "available_tags": { "type": "array", "items": { - "type": "string" - } - }, - "show_current_game": { - "type": "boolean" - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "additionalProperties": false, + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "moderated": { + "type": [ + "null", + "boolean" + ] + }, + "emoji_id": { + "type": [ + "null", + "string" + ] + }, + "emoji_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + } + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ChannelPermissionOverwriteSchema": { + "type": "object", + "properties": { + "allow": { "type": "string" }, - "stream_notifications_enabled": { - "type": "boolean" - }, - "theme": { - "enum": [ - "dark", - "light" - ], + "deny": { "type": "string" }, - "timezone_offset": { - "type": "integer" + "id": { + "type": "string" }, - "view_nsfw_guilds": { - "type": "boolean" + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" } }, "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserSettingsSchema": { + "ChannelReorderSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "lock_permissions": { + "type": "boolean" + }, + "parent_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CodesVerificationSchema": { "type": "object", "properties": { - "afk_timeout": { - "type": "integer" - }, - "allow_accessibility_detection": { - "type": "boolean" - }, - "animate_emoji": { - "type": "boolean" - }, - "animate_stickers": { - "type": "integer" + "key": { + "type": "string" }, - "contact_sync_enabled": { - "type": "boolean" + "nonce": { + "type": "string" }, - "convert_emoticons": { + "regenerate": { "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "key", + "nonce" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ConnectedAccountSchema": { + "type": "object", + "properties": { + "external_id": { + "type": "string" }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ] - }, - "default_guilds_restricted": { - "type": "boolean" + "user_id": { + "type": "string" }, - "detect_platform_accounts": { - "type": "boolean" + "token_data": { + "$ref": "#/definitions/ConnectedAccountTokenData" }, - "developer_mode": { + "friend_sync": { "type": "boolean" }, - "disable_games_tab": { - "type": "boolean" + "name": { + "type": "string" }, - "enable_tts_command": { + "revoked": { "type": "boolean" }, - "explicit_content_filter": { - "type": "integer" - }, - "friend_discovery_flags": { + "show_activity": { "type": "integer" }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean" + "type": { + "type": "string" }, - "gif_auto_play": { + "verified": { "type": "boolean" }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - } + "visibility": { + "type": "integer" }, - "guild_positions": { + "integrations": { "type": "array", "items": { "type": "string" } }, - "inline_attachment_media": { - "type": "boolean" + "metadata_": {}, + "metadata_visibility": { + "type": "integer" }, - "inline_embed_media": { + "two_way_link": { "type": "boolean" - }, - "locale": { + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "name", + "type", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ConnectedAccountCommonOAuthTokenResponse": { + "type": "object", + "properties": { + "access_token": { "type": "string" }, - "message_display_compact": { - "type": "boolean" - }, - "native_phone_integration_enabled": { - "type": "boolean" - }, - "render_embeds": { - "type": "boolean" - }, - "render_reactions": { - "type": "boolean" - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - } - }, - "show_current_game": { - "type": "boolean" - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "token_type": { "type": "string" }, - "stream_notifications_enabled": { - "type": "boolean" + "scope": { + "type": "string" }, - "theme": { - "enum": [ - "dark", - "light" - ], + "refresh_token": { "type": "string" }, - "timezone_offset": { + "expires_in": { "type": "integer" - }, - "view_nsfw_guilds": { - "type": "boolean" } }, "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", - "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" + "access_token", + "scope", + "token_type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StickersResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/StickerResponse" + "ConnectionCallbackSchema": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "state": { + "type": "string" + }, + "insecure": { + "type": "boolean" + }, + "friend_sync": { + "type": "boolean" + }, + "openid_params": {} }, + "additionalProperties": false, + "required": [ + "friend_sync", + "insecure", + "state" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StickerResponse": { + "ConnectionUpdateSchema": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" + "visibility": { + "type": "boolean" }, - "pack_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" + "show_activity": { + "type": "boolean" }, + "metadata_visibility": { + "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "DmChannelCreateSchema": { + "type": "object", + "properties": { "name": { "type": "string" }, - "description": { - "type": [ - "null", - "string" - ] + "recipients": { + "type": "array", + "items": { + "type": "string" + } }, - "tags": { + "recipient_id": { "type": "string" }, - "type": { - "$ref": "#/definitions/StickerType" + "access_tokens": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmailDomainLookupSchema": { + "type": "object", + "properties": { + "allow_multiple_guilds": { + "type": "boolean" }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" + "email": { + "type": "string" }, - "available": { + "use_verification_code": { "type": "boolean" }, "guild_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiple_guilds", + "email", + "use_verification_code" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmailDomainLookupVerifyCodeSchema": { + "type": "object", + "properties": { + "email": { "type": "string" }, - "user": { - "$ref": "#/definitions/PartialUser" + "guild_id": { + "type": "string" }, - "sort_value": { - "type": "integer" + "code": { + "type": "string" } }, "additionalProperties": false, "required": [ - "description", - "format_type", - "id", - "name", - "tags", - "type" + "code", + "email", + "guild_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "IdentifySchema": { + "EmojiCreateSchema": { "type": "object", "properties": { - "token": { + "name": { "type": "string" }, - "properties": { + "image": { + "type": "string" + }, + "require_colons": { + "type": [ + "null", + "boolean" + ] + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "image" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmojiModifySchema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ForgotPasswordSchema": { + "type": "object", + "properties": { + "login": { + "type": "string" + }, + "captcha_key": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "login" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GreetRequestSchema": { + "type": "object", + "properties": { + "sticker_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowed_mentions": { + "$ref": "#/definitions/AllowedMentions" + }, + "message_reference": { "type": "object", "properties": { - "os": { - "type": "string" - }, - "os_atch": { - "type": "string" - }, - "browser": { - "type": "string" - }, - "device": { - "type": "string" - }, - "$os": { - "type": "string" - }, - "$browser": { - "type": "string" - }, - "$device": { - "type": "string" - }, - "browser_user_agent": { - "type": "string" - }, - "browser_version": { - "type": "string" - }, - "os_version": { - "type": "string" - }, - "referrer": { - "type": "string" - }, - "referring_domain": { + "message_id": { "type": "string" }, - "referrer_current": { + "channel_id": { "type": "string" }, - "referring_domain_current": { + "guild_id": { "type": "string" }, - "release_channel": { - "enum": [ - "canary", - "dev", - "ptb", - "stable" - ], - "type": "string" - }, - "client_build_number": { - "type": "integer" - }, - "client_event_source": { - "type": "string" - }, - "client_version": { - "type": "string" - }, - "system_locale": { - "type": "string" - } - }, - "additionalProperties": false - }, - "intents": { - "type": "bigint" - }, - "presence": { - "$ref": "#/definitions/ActivitySchema" - }, - "compress": { - "type": "boolean" - }, - "large_threshold": { - "type": "integer" - }, - "largeThreshold": { - "type": "integer" - }, - "shard": { - "minItems": 2, - "maxItems": 2, - "type": "array", - "items": { - "type": "bigint" - } - }, - "guild_subscriptions": { - "type": "boolean" - }, - "capabilities": { - "type": "integer" - }, - "client_state": { - "type": "object", - "properties": { - "guild_hashes": {}, - "highest_last_message_id": { - "type": "integer" - }, - "read_state_version": { - "type": "integer" - }, - "user_guild_settings_version": { - "type": "integer" - }, - "user_settings_version": { - "type": "integer" - }, - "useruser_guild_settings_version": { - "type": "integer" - }, - "private_channels_version": { - "type": "integer" - }, - "guild_versions": {}, - "api_code_version": { - "type": "integer" - }, - "initial_guild_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "clientState": { - "type": "object", - "properties": { - "guildHashes": {}, - "highestLastMessageId": { - "type": "integer" - }, - "readStateVersion": { - "type": "integer" - }, - "userGuildSettingsVersion": { - "type": "integer" - }, - "useruserGuildSettingsVersion": { - "type": "integer" - }, - "guildVersions": {}, - "apiCodeVersion": { - "type": "integer" - }, - "initialGuildId": { - "type": "string" + "fail_if_not_exists": { + "type": "boolean" } }, - "additionalProperties": false - }, - "v": { - "type": "integer" + "additionalProperties": false, + "required": [ + "message_id" + ] } }, "additionalProperties": false, "required": [ - "properties", - "token" + "sticker_ids" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StreamCreateSchema": { + "GuildCreateSchema": { "type": "object", "properties": { - "type": { - "enum": [ - "call", - "guild" - ], + "name": { + "maxLength": 100, "type": "string" }, - "channel_id": { + "region": { "type": "string" }, - "guild_id": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelCreateSchema" + } + }, + "system_channel_id": { "type": "string" }, - "preferred_region": { + "rules_channel_id": { + "type": "string" + }, + "guild_template_code": { "type": "string" + }, + "staff_only": { + "type": "boolean" } }, "additionalProperties": false, - "required": [ - "channel_id", - "type" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StreamDeleteSchema": { + "GuildSubscriptionsBulkSchema": { "type": "object", "properties": { - "stream_key": { - "type": "string" + "subscriptions": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/GuildSubscriptionSchema" + } } }, "additionalProperties": false, "required": [ - "stream_key" + "subscriptions" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StreamWatchSchema": { + "GuildSubscriptionSchema": { "type": "object", "properties": { - "stream_key": { - "type": "string" + "channels": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "activities": { + "type": "boolean" + }, + "threads": { + "type": "boolean" + }, + "typing": { + "const": true, + "type": "boolean" + }, + "members": { + "type": "array", + "items": { + "type": "string" + } + }, + "member_updates": { + "type": "boolean" + }, + "thread_member_lists": { + "type": "array", + "items": {} } }, "additionalProperties": false, - "required": [ - "stream_key" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorResponse": { + "GuildTemplateCreateSchema": { "type": "object", "properties": { - "code": { - "type": "integer" - }, - "message": { + "name": { "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" - ] - } + "icon": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "code", - "errors", - "message" + "name" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CaptchaRequiredResponse": { + "GuildUpdateSchema": { + "type": "object", + "properties": { + "banner": { + "type": [ + "null", + "string" + ] + }, + "splash": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "verification_level": { + "type": "integer" + }, + "default_message_notifications": { + "type": "integer" + }, + "system_channel_flags": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "preferred_locale": { + "type": "string" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "discovery_splash": { + "type": "string" + }, + "safety_alerts_channel_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "maxLength": 100, + "type": "string" + }, + "region": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "guild_template_code": { + "type": "string" + }, + "staff_only": { + "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildUpdateWelcomeScreenSchema": { + "type": "object", + "properties": { + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + }, + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "HubWaitlistSignupSchema": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "school": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "email", + "school" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InviteCreateSchema": { + "type": "object", + "properties": { + "target_user_id": { + "type": "string" + }, + "target_type": { + "type": "string" + }, + "validate": { + "type": "string" + }, + "max_age": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "temporary": { + "type": "boolean" + }, + "unique": { + "type": "boolean" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CaptchaRequiredResponse": { "type": "object", "properties": { "captcha_key": { @@ -1729,9 +1901,6 @@ "name": { "type": "string" }, - "primary_category_id": { - "type": "string" - }, "large": { "type": "boolean" }, @@ -1750,9 +1919,6 @@ "presence_count": { "type": "integer" }, - "template_id": { - "type": "string" - }, "mfa_level": { "type": "integer" }, @@ -1792,12 +1958,6 @@ "string" ] }, - "banner": { - "type": [ - "null", - "string" - ] - }, "system_channel_id": { "type": "string" }, @@ -1810,6 +1970,12 @@ "staff_only": { "type": "boolean" }, + "banner": { + "type": [ + "null", + "string" + ] + }, "splash": { "type": [ "null", @@ -2665,2693 +2831,2350 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuild": { + "ApplicationCommandCreateSchema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "region": { - "type": "string" - }, - "insert": { - "type": "object", - "additionalProperties": false - }, - "id": { - "type": "string" + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" }, - "icon": { + "name": { "type": "string" }, - "parent": { - "type": "string" + "name_localizations": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "owner_id": { + "description": { "type": "string" }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" + "description_localizations": { + "type": "object", + "additionalProperties": { + "type": "string" } }, - "webhooks": { + "options": { "type": "array", "items": { - "$ref": "#/definitions/Webhook" + "$ref": "#/definitions/ApplicationCommandOption" } }, - "member_count": { - "type": "integer" + "default_member_permissions": { + "type": "string" }, - "get_annotations": { - "type": "object", - "additionalProperties": false + "dm_permission": { + "type": "boolean" }, - "clean_data": { - "type": "object", - "additionalProperties": false + "nsfw": { + "type": "boolean" }, - "roles": { + "integration_types": { "type": "array", "items": { - "$ref": "#/definitions/Role" + "$ref": "#/definitions/ApplicationIntegrationType" } }, - "banner": { - "type": "string" - }, - "channels": { + "contexts": { "type": "array", "items": { - "$ref": "#/definitions/Channel" + "$ref": "#/definitions/InteractionContextType" } }, - "system_channel_id": { - "type": [ - "null", - "string" - ] - }, - "rules_channel_id": { - "type": [ - "null", - "string" - ] + "handler": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BulkApplicationCommandCreateSchema": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandCreateSchema" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType" }, - "splash": { - "type": "string" + "data": {} + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbacksSchema": { + "anyOf": [ + { + "$ref": "#/definitions/PongCallback" }, - "description": { - "type": "string" + { + "$ref": "#/definitions/AckCallback" }, - "features": { - "type": "array", - "items": { - "type": "string" - } + { + "$ref": "#/definitions/MessageCallback" }, - "verification_level": { - "type": "integer" + { + "$ref": "#/definitions/MessageWSourceCallback" }, - "default_message_notifications": { - "type": "integer" + { + "$ref": "#/definitions/MessageDWSourceCallback" }, - "system_channel_flags": { - "type": "integer" + { + "$ref": "#/definitions/MessageUpdateCallback" }, - "explicit_content_filter": { + { + "$ref": "#/definitions/MessageDUpdateCallback" + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCreateSchema": { + "type": "object", + "properties": { + "version": { "type": "integer" }, - "public_updates_channel_id": { - "type": [ - "null", - "string" - ] + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" }, - "afk_timeout": { - "type": "integer" + "application_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" }, - "afk_channel_id": { - "type": [ - "null", - "string" - ] + "type": { + "$ref": "#/definitions/InteractionType" }, - "preferred_locale": { + "token": { "type": "string" }, - "premium_progress_bar_enabled": { - "type": "boolean" + "data": { + "type": "object", + "properties": {}, + "additionalProperties": true }, - "discovery_splash": { - "type": "string" + "guild": { + "$ref": "#/definitions/InteractionGuild" }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" }, - "primary_category_id": { + "guild_locale": { "type": "string" }, - "large": { - "type": "boolean" + "channel": { + "$ref": "#/definitions/Channel" }, - "max_members": { - "type": "integer" + "channel_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" }, - "max_presences": { - "type": "integer" + "member": { + "$ref": "#/definitions/PublicMember" }, - "max_video_channel_users": { - "type": "integer" + "user": { + "$ref": "#/definitions/PublicUser" }, - "presence_count": { - "type": "integer" + "locale": { + "type": "string" }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } + "message": { + "$ref": "#/definitions/Message" }, - "template_id": { + "app_permissions": { "type": "string" }, - "emojis": { + "entitlements": { "type": "array", "items": { - "$ref": "#/definitions/Emoji" + "type": "object", + "properties": {}, + "additionalProperties": true } }, - "stickers": { + "entitlement_sku_ids": { "type": "array", "items": { - "$ref": "#/definitions/Sticker" + "type": "string" } }, - "mfa_level": { - "type": "integer" + "authorizing_integration_owners": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "type": "string" + } + } }, - "premium_subscription_count": { + "context": { "type": "integer" }, - "premium_tier": { + "attachment_size_limit": { "type": "integer" - }, - "unavailable": { - "type": "boolean" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen", - "description": "DEPRECATED: Look at the new Guild onboarding screens." - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "discovery_weight": { - "type": "integer" - }, - "discovery_excluded": { - "type": "boolean" } }, "additionalProperties": false, "required": [ - "bans", - "channel_ordering", - "channels", - "clean_data", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", - "get_annotations", + "app_permissions", + "application_id", + "attachment_size_limit", "id", - "insert", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "token", + "type", + "version" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicUser": { + "ApplicationCreateSchema": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "name": { "type": "string" }, - "premium_since": { - "type": "string", - "format": "date-time" + "team_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationModifySchema": { + "type": "object", + "properties": { + "description": { + "type": "string" }, - "avatar": { + "icon": { "type": "string" }, - "banner": { + "cover_image": { "type": "string" }, - "bio": { + "interactions_endpoint_url": { "type": "string" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "max_participants": { + "type": [ + "null", + "integer" + ] }, - "pronouns": { + "name": { "type": "string" }, - "username": { + "privacy_policy_url": { "type": "string" }, - "discriminator": { + "role_connections_verification_url": { "type": "string" }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "badge_ids": { + "tags": { "type": "array", "items": { "type": "string" } }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" + "terms_of_service_url": { + "type": "string" }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" + "bot_public": { + "type": "boolean" }, - "collectibles": { - "$ref": "#/definitions/Collectibles" + "bot_require_code_grant": { + "type": "boolean" }, - "primary_guild": { - "$ref": "#/definitions/PrimaryGuild" + "flags": { + "type": "integer" + }, + "custom_install_url": { + "type": "string" + }, + "guild_id": { + "type": "string" } }, "additionalProperties": false, - "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPrivateUser": { + "SendableApplicationCommandDataSchema": { "type": "object", "properties": { - "email": { - "type": "string" - }, "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "flags": { - "type": "integer" - }, - "verified": { - "type": "boolean" + "$ref": "#/definitions/Snowflake" }, - "premium_since": { - "type": "string", - "format": "date-time" + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" }, - "avatar": { + "name": { "type": "string" }, - "banner": { - "type": "string" + "version": { + "$ref": "#/definitions/Snowflake" }, - "bio": { - "type": "string" + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true }, - "theme_colors": { + "options": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/ApplicationCommandOption" } }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "type": "integer" - }, - "bot": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" }, - "badge_ids": { + "attachments": { "type": "array", "items": { - "type": "string" + "type": "object", + "properties": {}, + "additionalProperties": true } - }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" - }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" - }, - "collectibles": { - "$ref": "#/definitions/Collectibles" - }, - "primary_guild": { - "$ref": "#/definitions/PrimaryGuild" - }, - "mfa_enabled": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserSettingsSchema" } }, "additionalProperties": false, "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" + "name", + "version" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildArray": { - "type": "array", - "items": { - "$ref": "#/definitions/APIGuild" + "SendableMessageComponentDataSchema": { + "type": "object", + "properties": { + "component_type": { + "enum": [ + 1, + 10, + 11, + 12, + 13, + 14, + 16, + 17, + 18, + 19, + 2, + 20, + 21, + 22, + 23, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "type": "number" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "values": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/Snowflake" + } + } + ] + } }, + "additionalProperties": false, + "required": [ + "custom_id" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDMChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/DmChannelDTO" + "SendableModalSubmitDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/Snowflake" + }, + "custom_id": { + "type": "string" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/UploadAttachmentRequestSchema" + } + } }, + "additionalProperties": false, + "required": [ + "custom_id", + "id" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIBackupCodeArray": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" - }, + "InstanceUserDeleteSchema": { + "$ref": "#/definitions/InstanceUserDeleteSchemaContent", "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserUpdateResponse": { + "UserSettingsUpdateSchema": { "type": "object", "properties": { - "newToken": { - "type": "string" + "afk_timeout": { + "type": "integer" }, - "email": { - "type": "string" + "allow_accessibility_detection": { + "type": "boolean" }, - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" + "animate_emoji": { + "type": "boolean" }, - "flags": { + "animate_stickers": { "type": "integer" }, - "verified": { + "contact_sync_enabled": { "type": "boolean" }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" + "convert_emoticons": { + "type": "boolean" }, - "banner": { - "type": "string" + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ] }, - "bio": { - "type": "string" + "default_guilds_restricted": { + "type": "boolean" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "detect_platform_accounts": { + "type": "boolean" }, - "pronouns": { - "type": "string" + "developer_mode": { + "type": "boolean" }, - "username": { - "type": "string" + "disable_games_tab": { + "type": "boolean" }, - "discriminator": { - "type": "string" + "enable_tts_command": { + "type": "boolean" }, - "public_flags": { + "explicit_content_filter": { "type": "integer" }, - "accent_color": { + "friend_discovery_flags": { "type": "integer" }, - "bot": { + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { "type": "boolean" }, - "premium_type": { - "type": "integer" + "gif_auto_play": { + "type": "boolean" }, - "badge_ids": { + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + } + }, + "guild_positions": { "type": "array", "items": { "type": "string" } }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" + "inline_attachment_media": { + "type": "boolean" }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" + "inline_embed_media": { + "type": "boolean" }, - "collectibles": { - "$ref": "#/definitions/Collectibles" + "locale": { + "type": "string" }, - "primary_guild": { - "$ref": "#/definitions/PrimaryGuild" + "message_display_compact": { + "type": "boolean" }, - "mfa_enabled": { + "native_phone_integration_enabled": { "type": "boolean" }, - "phone": { - "type": "string" + "render_embeds": { + "type": "boolean" }, - "nsfw_allowed": { + "render_reactions": { "type": "boolean" }, - "premium": { + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { "type": "boolean" }, - "purchased_flags": { - "type": "integer" + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" }, - "premium_usage_flags": { + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string" + }, + "timezone_offset": { "type": "integer" }, - "disabled": { + "view_nsfw_guilds": { "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserSettingsSchema" } }, "additionalProperties": false, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationDetectableResponse": { - "type": "array", - "items": {}, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationEntitlementsResponse": { - "type": "array", - "items": {}, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationSkusResponse": { - "type": "array", - "items": {}, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIApplicationArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Application" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIInviteArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIMessageArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIWebhookArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIDiscoveryCategoryArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Categories" - }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGeneralConfiguration": { + "UserSettingsSchema": { "type": "object", "properties": { - "instanceName": { - "type": "string", - "default": "Spacebar Instance" + "afk_timeout": { + "type": "integer" }, - "serverName": { - "type": [ - "null", - "string" - ], - "default": null + "allow_accessibility_detection": { + "type": "boolean" }, - "instanceDescription": { - "type": [ - "null", - "string" - ], - "default": "This is a Spacebar instance made in the pre-release days" + "animate_emoji": { + "type": "boolean" }, - "frontPage": { - "type": [ - "null", - "string" - ], - "default": null + "animate_stickers": { + "type": "integer" }, - "tosPage": { - "type": [ - "null", - "string" - ], - "default": null + "contact_sync_enabled": { + "type": "boolean" }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ], - "default": null + "convert_emoticons": { + "type": "boolean" }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ], - "default": null + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ] }, - "image": { - "type": [ - "null", - "string" - ], - "default": null + "default_guilds_restricted": { + "type": "boolean" }, - "instanceId": { - "type": "string" + "detect_platform_accounts": { + "type": "boolean" }, - "autoCreateBotUsers": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false, - "required": [ - "autoCreateBotUsers", - "correspondenceEmail", - "correspondenceUserID", - "frontPage", - "image", - "instanceDescription", - "instanceId", - "instanceName", - "serverName", - "tosPage" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIMemberArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIPublicMember": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" + "developer_mode": { + "type": "boolean" }, - "guild_id": { - "type": "string" + "disable_games_tab": { + "type": "boolean" }, - "flags": { + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { "type": "integer" }, - "nick": { - "type": "string" + "friend_discovery_flags": { + "type": "integer" }, - "joined_at": { - "type": "string", - "format": "date-time" + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" }, - "pending": { + "gateway_connected": { "type": "boolean" }, - "deaf": { + "gif_auto_play": { "type": "boolean" }, - "mute": { - "type": "boolean" + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + } }, - "premium_since": { - "type": "integer" + "guild_positions": { + "type": "array", + "items": { + "type": "string" + } }, - "avatar": { - "type": "string" + "inline_attachment_media": { + "type": "boolean" }, - "banner": { - "type": "string" + "inline_embed_media": { + "type": "boolean" }, - "bio": { + "locale": { "type": "string" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "message_display_compact": { + "type": "boolean" }, - "pronouns": { - "type": "string" + "native_phone_integration_enabled": { + "type": "boolean" }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] + "render_embeds": { + "type": "boolean" }, - "user": { - "$ref": "#/definitions/PublicUser" + "render_reactions": { + "type": "boolean" }, - "roles": { + "restricted_guilds": { "type": "array", "items": { "type": "string" } - } - }, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIGuildWithJoinedAt": { - "type": "object", - "properties": { - "joined_at": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" }, - "primary_category_id": { - "type": "string" - }, - "large": { + "show_current_game": { "type": "boolean" }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "template_id": { - "type": "string" - }, - "mfa_level": { - "type": "integer" - }, - "owner_id": { + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], "type": "string" }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" + "stream_notifications_enabled": { + "type": "boolean" }, - "widget_channel_id": { + "theme": { + "enum": [ + "dark", + "light" + ], "type": "string" }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { + "timezone_offset": { "type": "integer" }, - "nsfw": { + "view_nsfw_guilds": { "type": "boolean" - }, - "parent": { + } + }, + "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", + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildProfileResponse": { + "type": "object", + "properties": { + "id": { "type": "string" }, - "region": { + "name": { "type": "string" }, - "icon": { + "icon_hash": { "type": [ "null", "string" ] }, - "banner": { - "type": [ - "null", - "string" - ] + "member_count": { + "type": "integer" }, - "system_channel_id": { - "type": "string" + "online_count": { + "type": "integer" }, - "rules_channel_id": { + "description": { "type": "string" }, - "guild_template_code": { + "brand_color_primary": { "type": "string" }, - "staff_only": { - "type": "boolean" - }, - "splash": { + "banner_hash": { "type": [ "null", "string" ] }, - "description": { - "type": "string" - }, - "features": { + "game_application_ids": { "type": "array", "items": { "type": "string" } }, - "verification_level": { - "type": "integer" - }, - "default_message_notifications": { - "type": "integer" + "game_activity": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/GameActivity" + } }, - "system_channel_flags": { - "type": "integer" + "tag": { + "type": [ + "null", + "string" + ] }, - "explicit_content_filter": { - "type": "integer" + "badge": { + "$ref": "#/definitions/GuildBadgeType" }, - "public_updates_channel_id": { + "badge_color_primary": { "type": "string" }, - "afk_timeout": { - "type": "integer" - }, - "afk_channel_id": { + "badge_color_secondary": { "type": "string" }, - "preferred_locale": { + "badge_hash": { "type": "string" }, - "premium_progress_bar_enabled": { - "type": "boolean" + "traits": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildTrait" + } }, - "discovery_splash": { - "type": "string" + "features": { + "type": "array", + "items": { + "type": "string" + } }, - "safety_alerts_channel_id": { + "visibility": { + "$ref": "#/definitions/GuildVisibilityLevel" + }, + "custom_banner_hash": { "type": [ "null", "string" ] + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" } }, "additionalProperties": false, "required": [ + "badge", + "badge_color_primary", + "badge_color_secondary", + "badge_hash", + "banner_hash", + "brand_color_primary", + "custom_banner_hash", + "description", + "features", + "game_activity", + "game_application_ids", + "icon_hash", "id", - "joined_at", - "large", - "max_members", - "max_presences", - "max_video_channel_users", "member_count", - "mfa_level", "name", - "nsfw", - "nsfw_level", - "owner_id", - "parent", + "online_count", "premium_subscription_count", "premium_tier", - "presence_count", - "primary_category_id", - "template_id", - "welcome_screen", - "widget_channel_id", - "widget_enabled" + "tag", + "traits", + "visibility" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIRoleArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" + "GuildAvailableSchema": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "available": { + "type": "boolean" + } }, + "additionalProperties": false, + "required": [ + "available", + "id" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APITemplateArray": { + "StickersResponse": { "type": "array", "items": { - "$ref": "#/definitions/Template" + "$ref": "#/definitions/StickerResponse" }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildVoiceRegion": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildVoiceRegion" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APILimitsConfiguration": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/UserLimits" - }, - "guild": { - "$ref": "#/definitions/GuildLimits" - }, - "message": { - "$ref": "#/definitions/MessageLimits" - }, - "channel": { - "$ref": "#/definitions/ChannelLimits" - }, - "rate": { - "$ref": "#/definitions/RateLimits" - }, - "absoluteRate": { - "$ref": "#/definitions/GlobalRateLimits" - } - }, - "additionalProperties": false, - "required": [ - "absoluteRate", - "channel", - "guild", - "message", - "rate", - "user" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIConnectionsConfiguration": { - "type": "object", - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UpdatesResponse": { + "StickerResponse": { "type": "object", "properties": { - "name": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "pub_date": { + "pack_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "url": { + "name": { "type": "string" }, - "notes": { + "description": { "type": [ "null", "string" ] - } - }, - "additionalProperties": false, - "required": [ - "name", - "notes", - "pub_date", - "url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UploadAttachmentResponseSchema": { - "type": "object", - "properties": { - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/UploadAttachmentResponse" - } - } - }, - "additionalProperties": false, - "required": [ - "attachments" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UploadAttachmentResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" }, - "upload_url": { + "tags": { "type": "string" }, - "upload_filename": { - "type": "string" + "type": { + "$ref": "#/definitions/StickerType" }, - "original_content_type": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "upload_filename", - "upload_url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserNoteResponse": { - "type": "object", - "properties": { - "note": { - "type": "string" + "format_type": { + "$ref": "#/definitions/StickerFormatType" }, - "note_user_id": { - "type": "string" + "available": { + "type": "boolean" }, - "user_id": { + "guild_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" + }, + "user": { + "$ref": "#/definitions/PartialUser" + }, + "sort_value": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "note", - "note_user_id", - "user_id" + "description", + "format_type", + "id", + "name", + "tags", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileResponse": { + "IdentifySchema": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/PublicUser" + "token": { + "type": "string" }, - "connected_accounts": { - "$ref": "#/definitions/PublicConnectedAccount" + "properties": { + "type": "object", + "properties": { + "os": { + "type": "string" + }, + "os_atch": { + "type": "string" + }, + "browser": { + "type": "string" + }, + "device": { + "type": "string" + }, + "$os": { + "type": "string" + }, + "$browser": { + "type": "string" + }, + "$device": { + "type": "string" + }, + "browser_user_agent": { + "type": "string" + }, + "browser_version": { + "type": "string" + }, + "os_version": { + "type": "string" + }, + "referrer": { + "type": "string" + }, + "referring_domain": { + "type": "string" + }, + "referrer_current": { + "type": "string" + }, + "referring_domain_current": { + "type": "string" + }, + "release_channel": { + "enum": [ + "canary", + "dev", + "ptb", + "stable" + ], + "type": "string" + }, + "client_build_number": { + "type": "integer" + }, + "client_event_source": { + "type": "string" + }, + "client_version": { + "type": "string" + }, + "system_locale": { + "type": "string" + } + }, + "additionalProperties": false }, - "premium_guild_since": { - "type": "string", - "format": "date-time" + "intents": { + "type": "bigint" }, - "premium_since": { - "type": "string", - "format": "date-time" + "presence": { + "$ref": "#/definitions/ActivitySchema" }, - "mutual_guilds": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } + "compress": { + "type": "boolean" }, - "premium_type": { + "large_threshold": { "type": "integer" }, - "profile_themes_experiment_bucket": { + "largeThreshold": { "type": "integer" }, - "user_profile": { - "$ref": "#/definitions/UserProfile" - }, - "guild_member": { - "$ref": "#/definitions/PublicMember" - }, - "guild_member_profile": { - "$ref": "#/definitions/PublicMemberProfile" - }, - "badges": { + "shard": { + "minItems": 2, + "maxItems": 2, "type": "array", "items": { - "$ref": "#/definitions/Badge" + "type": "bigint" } - } - }, - "additionalProperties": false, - "required": [ - "badges", - "connected_accounts", - "mutual_guilds", - "premium_type", - "profile_themes_experiment_bucket", - "user", - "user_profile" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" + }, + "guild_subscriptions": { + "type": "boolean" + }, + "capabilities": { + "type": "integer" + }, + "client_state": { + "type": "object", + "properties": { + "guild_hashes": {}, + "highest_last_message_id": { + "type": "integer" + }, + "read_state_version": { + "type": "integer" + }, + "user_guild_settings_version": { + "type": "integer" + }, + "user_settings_version": { + "type": "integer" + }, + "useruser_guild_settings_version": { + "type": "integer" + }, + "private_channels_version": { + "type": "integer" + }, + "guild_versions": {}, + "api_code_version": { + "type": "integer" + }, + "initial_guild_id": { + "type": "string" + } }, - "avatar": { - "type": "string" + "additionalProperties": false + }, + "clientState": { + "type": "object", + "properties": { + "guildHashes": {}, + "highestLastMessageId": { + "type": "integer" + }, + "readStateVersion": { + "type": "integer" + }, + "userGuildSettingsVersion": { + "type": "integer" + }, + "useruserGuildSettingsVersion": { + "type": "integer" + }, + "guildVersions": {}, + "apiCodeVersion": { + "type": "integer" + }, + "initialGuildId": { + "type": "string" + } }, - "public_flags": { - "type": "integer" - } + "additionalProperties": false }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] + "v": { + "type": "integer" + } }, + "additionalProperties": false, + "required": [ + "properties", + "token" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserRelationshipsResponse": { + "StreamCreateSchema": { "type": "object", "properties": { - "id": { + "type": { + "enum": [ + "call", + "guild" + ], "type": "string" }, - "type": { - "$ref": "#/definitions/RelationshipType" + "channel_id": { + "type": "string" }, - "nickname": { - "type": "null" + "guild_id": { + "type": "string" }, - "user": { - "$ref": "#/definitions/PublicUser" + "preferred_region": { + "type": "string" } }, "additionalProperties": false, "required": [ - "id", - "nickname", - "type", - "user" + "channel_id", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnCreateResponse": { + "StreamDeleteSchema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "id": { + "stream_key": { "type": "string" } }, "additionalProperties": false, "required": [ - "id", - "name" + "stream_key" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateResponse": { + "StreamWatchSchema": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "hook": { - "$ref": "#/definitions/Webhook" + "stream_key": { + "type": "string" } }, "additionalProperties": false, "required": [ - "hook", - "user" + "stream_key" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AckBulkSchema": { + "VoiceIdentifySchema": { "type": "object", "properties": { - "read_states": { + "server_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "session_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "video": { + "type": "boolean" + }, + "streams": { "type": "array", "items": { "type": "object", "properties": { - "channel_id": { + "type": { + "enum": [ + "audio", + "screen", + "video" + ], "type": "string" }, - "message_id": { + "rid": { "type": "string" }, - "read_state_type": { + "quality": { "type": "integer" } }, "additionalProperties": false, "required": [ - "channel_id", - "message_id", - "read_state_type" + "quality", + "rid", + "type" ] } - } - }, - "additionalProperties": false, - "required": [ - "read_states" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" }, - "status": { - "$ref": "#/definitions/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "max_secure_frames_version": { + "type": "integer" }, - "since": { + "max_dave_protocol_version": { "type": "integer" } }, "additionalProperties": false, "required": [ - "status" + "server_id", + "session_id", + "token", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationAuthorizeSchema": { + "VoiceVideoSchema": { "type": "object", "properties": { - "authorize": { - "type": "boolean" + "audio_ssrc": { + "type": "integer" }, - "guild_id": { - "type": "string" + "video_ssrc": { + "type": "integer" }, - "permissions": { - "type": "string" + "rtx_ssrc": { + "type": "integer" }, - "captcha_key": { + "user_id": { "type": "string" }, - "code": { - "minLength": 6, - "maxLength": 6, - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "authorize", - "guild_id", - "permissions" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AutomodMentionSpamRuleSchema": { - "type": "object", - "properties": { - "mention_total_limit": { - "type": "integer" - }, - "mention_raid_protection_enabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "mention_raid_protection_enabled", - "mention_total_limit" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AutomodSuspectedSpamRuleSchema": { - "type": "object", - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AutomodCommonlyFlaggedWordsRuleSchema": { - "type": "object", - "properties": { - "allow_list": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - }, - "presets": { + "streams": { "type": "array", - "items": [ - { - "type": "integer" - } - ], - "minItems": 1, - "maxItems": 1 + "items": { + "type": "object", + "properties": { + "type": { + "enum": [ + "audio", + "screen", + "video" + ], + "type": "string" + }, + "rid": { + "type": "string" + }, + "ssrc": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "max_bitrate": { + "type": "integer" + }, + "max_framerate": { + "type": "integer" + }, + "max_resolution": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "height", + "type", + "width" + ] + } + }, + "additionalProperties": false, + "required": [ + "rid", + "type" + ] + } } }, "additionalProperties": false, "required": [ - "allow_list", - "presets" + "audio_ssrc", + "video_ssrc" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AutomodCustomWordsRuleSchema": { + "APIGuild": { "type": "object", "properties": { - "allow_list": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - }, - "keyword_filter": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 + "name": { + "type": "string" }, - "regex_patterns": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - } - }, - "additionalProperties": false, - "required": [ - "allow_list", - "keyword_filter", - "regex_patterns" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AutomodRuleSchema": { - "type": "object", - "properties": { - "creator_id": { + "region": { "type": "string" }, - "enabled": { - "type": "boolean" + "insert": { + "type": "object", + "additionalProperties": false }, - "event_type": { - "type": "integer" + "id": { + "type": "string" }, - "exempt_channels": { + "channels": { "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 + "items": { + "$ref": "#/definitions/Channel" + } }, - "exempt_roles": { + "members": { "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 + "items": { + "$ref": "#/definitions/Member" + } }, - "guild_id": { + "icon": { "type": "string" }, - "name": { + "system_channel_id": { + "type": [ + "null", + "string" + ] + }, + "rules_channel_id": { + "type": [ + "null", + "string" + ] + }, + "banner": { "type": "string" }, - "position": { + "splash": { + "type": "string" + }, + "description": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "verification_level": { "type": "integer" }, - "trigger_type": { + "default_message_notifications": { "type": "integer" }, - "trigger_metadata": { - "anyOf": [ - { - "$ref": "#/definitions/AutomodMentionSpamRuleSchema" - }, - { - "$ref": "#/definitions/AutomodSuspectedSpamRuleSchema" - }, - { - "$ref": "#/definitions/AutomodCommonlyFlaggedWordsRuleSchema" - }, - { - "$ref": "#/definitions/AutomodCustomWordsRuleSchema" - } + "system_channel_flags": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": [ + "null", + "string" ] - } - }, - "additionalProperties": false, - "required": [ - "creator_id", - "enabled", - "event_type", - "exempt_channels", - "exempt_roles", - "guild_id", - "name", - "position", - "trigger_metadata", - "trigger_type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BackupCodesChallengeSchema": { - "type": "object", - "properties": { - "password": { - "minLength": 1, - "maxLength": 72, - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "password" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BanCreateSchema": { - "type": "object", - "properties": { - "delete_message_seconds": { - "type": "integer" }, - "delete_message_days": { + "afk_timeout": { "type": "integer" }, - "reason": { - "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BanModeratorSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" + "afk_channel_id": { + "type": [ + "null", + "string" + ] }, - "guild_id": { + "preferred_locale": { "type": "string" }, - "executor_id": { - "type": "string" + "premium_progress_bar_enabled": { + "type": "boolean" }, - "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": { + "discovery_splash": { "type": "string" }, - "user_id": { - "type": "string" + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } }, - "guild_id": { + "parent": { "type": "string" }, - "executor_id": { + "owner_id": { "type": "string" }, - "ip": { - "type": "string" + "nsfw": { + "type": "boolean" }, - "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" + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } }, - "username": { - "type": "string" + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } }, - "banner": { - "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BulkBanSchema": { - "type": "object", - "properties": { - "user_ids": { + "webhooks": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Webhook" } }, - "delete_message_seconds": { + "member_count": { "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "user_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BulkDeleteSchema": { - "type": "object", - "properties": { - "messages": { + }, + "get_annotations": { + "type": "object", + "additionalProperties": false + }, + "clean_data": { + "type": "object", + "additionalProperties": false + }, + "bans": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Ban" } - } - }, - "additionalProperties": false, - "required": [ - "messages" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelModifySchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 2, - 255, - 3, - 4, - 5, - 6, - 7, - 8, - 9 - ], - "type": "number" }, - "topic": { + "primary_category_id": { "type": "string" }, - "icon": { - "type": [ - "null", - "string" - ] + "large": { + "type": "boolean" }, - "bitrate": { + "max_members": { "type": "integer" }, - "user_limit": { + "max_presences": { "type": "integer" }, - "rate_limit_per_user": { + "max_video_channel_users": { "type": "integer" }, - "position": { + "presence_count": { "type": "integer" }, - "invitable": { - "type": "boolean" + "template_id": { + "type": "string" }, - "permission_overwrites": { + "emojis": { "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" - ] + "$ref": "#/definitions/Emoji" } }, - "applied_tags": { + "stickers": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Sticker" } }, - "parent_id": { - "type": "string" + "mfa_level": { + "type": "integer" }, - "id": { - "type": "string" + "premium_subscription_count": { + "type": "integer" }, - "nsfw": { + "premium_tier": { + "type": "integer" + }, + "unavailable": { "type": "boolean" }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen", + "description": "DEPRECATED: Look at the new Guild onboarding screens." }, - "flags": { - "type": "integer" + "widget_channel_id": { + "type": "string" }, - "default_thread_rate_limit_per_user": { - "type": "integer" + "widget_enabled": { + "type": "boolean" }, - "video_quality_mode": { + "nsfw_level": { "type": "integer" }, - "auto_archive_duration": { + "permissions": { "type": "integer" }, - "archived": { - "type": "boolean" - }, - "locked": { - "type": "boolean" - }, - "available_tags": { + "channel_ordering": { "type": "array", "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "moderated": { - "type": [ - "null", - "boolean" - ] - }, - "emoji_id": { - "type": [ - "null", - "string" - ] - }, - "emoji_name": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ] + "type": "string" } - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelPermissionOverwriteSchema": { - "type": "object", - "properties": { - "allow": { - "type": "string" }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" + "discovery_weight": { + "type": "integer" }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" + "discovery_excluded": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "allow", - "deny", + "bans", + "channel_ordering", + "channels", + "clean_data", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", + "get_annotations", "id", - "type" + "insert", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelReorderSchema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "lock_permissions": { - "type": "boolean" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CodesVerificationSchema": { + "APIPublicUser": { "type": "object", "properties": { - "key": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "nonce": { + "banner": { "type": "string" }, - "regenerate": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "key", - "nonce" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ConnectedAccountSchema": { - "type": "object", - "properties": { - "external_id": { + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { "type": "string" }, - "user_id": { + "bio": { "type": "string" }, - "token_data": { - "$ref": "#/definitions/ConnectedAccountTokenData" + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } }, - "friend_sync": { - "type": "boolean" + "pronouns": { + "type": "string" }, - "name": { + "username": { "type": "string" }, - "revoked": { - "type": "boolean" + "discriminator": { + "type": "string" }, - "show_activity": { + "public_flags": { "type": "integer" }, - "type": { - "type": "string" + "accent_color": { + "type": "integer" }, - "verified": { + "bot": { "type": "boolean" }, - "visibility": { + "premium_type": { "type": "integer" }, - "integrations": { + "badge_ids": { "type": "array", "items": { "type": "string" } }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer" + "avatar_decoration_data": { + "$ref": "#/definitions/AvatarDecorationData" }, - "two_way_link": { - "type": "boolean" + "display_name_styles": { + "$ref": "#/definitions/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/definitions/Collectibles" + }, + "primary_guild": { + "$ref": "#/definitions/PrimaryGuild" } }, "additionalProperties": false, "required": [ - "external_id", - "name", - "type", - "user_id" + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ConnectedAccountCommonOAuthTokenResponse": { + "APIPrivateUser": { "type": "object", "properties": { - "access_token": { + "email": { "type": "string" }, - "token_type": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "scope": { + "flags": { + "type": "integer" + }, + "banner": { "type": "string" }, - "refresh_token": { + "verified": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { "type": "string" }, - "expires_in": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "scope", - "token_type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ConnectionCallbackSchema": { - "type": "object", - "properties": { - "code": { + "bio": { "type": "string" }, - "state": { + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { "type": "string" }, - "insecure": { - "type": "boolean" + "username": { + "type": "string" }, - "friend_sync": { - "type": "boolean" + "discriminator": { + "type": "string" }, - "openid_params": {} - }, - "additionalProperties": false, - "required": [ - "friend_sync", - "insecure", - "state" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ConnectionUpdateSchema": { - "type": "object", - "properties": { - "visibility": { - "type": "boolean" + "public_flags": { + "type": "integer" }, - "show_activity": { - "type": "boolean" + "accent_color": { + "type": "integer" }, - "metadata_visibility": { + "bot": { "type": "boolean" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "DmChannelCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" }, - "recipients": { + "premium_type": { + "type": "integer" + }, + "badge_ids": { "type": "array", "items": { "type": "string" } }, - "recipient_id": { - "type": "string" + "avatar_decoration_data": { + "$ref": "#/definitions/AvatarDecorationData" }, - "access_tokens": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmailDomainLookupSchema": { - "type": "object", - "properties": { - "allow_multiple_guilds": { + "display_name_styles": { + "$ref": "#/definitions/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/definitions/Collectibles" + }, + "primary_guild": { + "$ref": "#/definitions/PrimaryGuild" + }, + "mfa_enabled": { "type": "boolean" }, - "email": { + "phone": { "type": "string" }, - "use_verification_code": { + "nsfw_allowed": { "type": "boolean" }, - "guild_id": { - "type": "string" + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserSettingsSchema" } }, "additionalProperties": false, "required": [ - "allow_multiple_guilds", - "email", - "use_verification_code" + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "EmailDomainLookupVerifyCodeSchema": { + "APIGuildArray": { + "type": "array", + "items": { + "$ref": "#/definitions/APIGuild" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIDMChannelArray": { + "type": "array", + "items": { + "$ref": "#/definitions/DmChannelDTO" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIBackupCodeArray": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserUpdateResponse": { "type": "object", "properties": { - "email": { + "newToken": { "type": "string" }, - "guild_id": { + "email": { "type": "string" }, - "code": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "email", - "guild_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmojiCreateSchema": { - "type": "object", - "properties": { - "name": { + }, + "flags": { + "type": "integer" + }, + "banner": { "type": "string" }, - "image": { + "verified": { + "type": "boolean" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { "type": "string" }, - "require_colons": { - "type": [ - "null", - "boolean" - ] + "bio": { + "type": "string" }, - "roles": { + "theme_colors": { "type": "array", "items": { - "type": "string" + "type": "integer" } - } - }, - "additionalProperties": false, - "required": [ - "image" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmojiModifySchema": { - "type": "object", - "properties": { - "name": { + }, + "pronouns": { "type": "string" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ForgotPasswordSchema": { - "type": "object", - "properties": { - "login": { + "username": { "type": "string" }, - "captcha_key": { + "discriminator": { "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "login" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GreetRequestSchema": { - "type": "object", - "properties": { - "sticker_ids": { + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "badge_ids": { "type": "array", "items": { "type": "string" } }, - "allowed_mentions": { - "$ref": "#/definitions/AllowedMentions" + "avatar_decoration_data": { + "$ref": "#/definitions/AvatarDecorationData" }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - } - }, - "additionalProperties": false, - "required": [ - "sticker_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildCreateSchema": { - "type": "object", - "properties": { - "name": { - "maxLength": 100, - "type": "string" + "display_name_styles": { + "$ref": "#/definitions/DisplayNameStyle" }, - "region": { - "type": "string" + "collectibles": { + "$ref": "#/definitions/Collectibles" }, - "icon": { - "type": [ - "null", - "string" - ] + "primary_guild": { + "$ref": "#/definitions/PrimaryGuild" }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelCreateSchema" - } + "mfa_enabled": { + "type": "boolean" }, - "system_channel_id": { + "phone": { "type": "string" }, - "rules_channel_id": { - "type": "string" + "nsfw_allowed": { + "type": "boolean" }, - "guild_template_code": { - "type": "string" + "premium": { + "type": "boolean" }, - "staff_only": { + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserSettingsSchema" } }, "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildSubscriptionsBulkSchema": { - "type": "object", - "properties": { - "subscriptions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/GuildSubscriptionSchema" - } - } + "ApplicationDetectableResponse": { + "type": "array", + "items": {}, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationEntitlementsResponse": { + "type": "array", + "items": {}, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationSkusResponse": { + "type": "array", + "items": {}, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIApplicationArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" }, - "additionalProperties": false, - "required": [ - "subscriptions" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildSubscriptionSchema": { - "type": "object", - "properties": { - "channels": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, - "members": { - "type": "array", - "items": { - "type": "string" - } - }, - "activities": { - "type": "boolean" - }, - "threads": { - "type": "boolean" - }, - "typing": { - "const": true, - "type": "boolean" - }, - "member_updates": { - "type": "boolean" - }, - "thread_member_lists": { - "type": "array", - "items": {} - } + "APIInviteArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" }, - "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildTemplateCreateSchema": { + "APIMessageArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIWebhookArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIDiscoveryCategoryArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Categories" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIGeneralConfiguration": { "type": "object", "properties": { - "name": { + "instanceName": { "type": "string" }, - "icon": { + "serverName": { "type": [ "null", "string" ] - } - }, - "additionalProperties": false, - "required": [ - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildUpdateSchema": { - "type": "object", - "properties": { - "banner": { + }, + "instanceDescription": { "type": [ "null", "string" ] }, - "splash": { + "frontPage": { "type": [ "null", "string" ] }, - "description": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "verification_level": { - "type": "integer" + "tosPage": { + "type": [ + "null", + "string" + ] }, - "default_message_notifications": { - "type": "integer" + "correspondenceEmail": { + "type": [ + "null", + "string" + ] }, - "system_channel_flags": { - "type": "integer" + "correspondenceUserID": { + "type": [ + "null", + "string" + ] }, - "explicit_content_filter": { - "type": "integer" + "image": { + "type": [ + "null", + "string" + ] }, - "public_updates_channel_id": { + "instanceId": { "type": "string" }, - "afk_timeout": { - "type": "integer" - }, - "afk_channel_id": { + "autoCreateBotUsers": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "autoCreateBotUsers", + "correspondenceEmail", + "correspondenceUserID", + "frontPage", + "image", + "instanceDescription", + "instanceId", + "instanceName", + "serverName", + "tosPage" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIChannelArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIMemberArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIPublicMember": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { "type": "string" }, - "preferred_locale": { + "guild_id": { "type": "string" }, - "premium_progress_bar_enabled": { - "type": "boolean" + "flags": { + "type": "integer" }, - "discovery_splash": { + "banner": { "type": "string" }, - "safety_alerts_channel_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "maxLength": 100, + "nick": { "type": "string" }, - "region": { - "type": "string" + "joined_at": { + "type": "string", + "format": "date-time" }, - "icon": { - "type": [ - "null", - "string" - ] + "pending": { + "type": "boolean" }, - "system_channel_id": { - "type": "string" + "deaf": { + "type": "boolean" }, - "rules_channel_id": { + "mute": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, + "avatar": { "type": "string" }, - "guild_template_code": { + "bio": { "type": "string" }, - "staff_only": { - "type": "boolean" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildUpdateWelcomeScreenSchema": { - "type": "object", - "properties": { - "welcome_channels": { + "theme_colors": { "type": "array", "items": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] + "type": "integer" } }, - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "HubWaitlistSignupSchema": { - "type": "object", - "properties": { - "email": { + "pronouns": { "type": "string" }, - "school": { - "type": "string" + "communication_disabled_until": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } } }, - "additionalProperties": false, "required": [ - "email", - "school" + "banner", + "bio", + "communication_disabled_until", + "deaf", + "flags", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InviteCreateSchema": { + "APIGuildWithJoinedAt": { "type": "object", "properties": { - "target_user_id": { + "joined_at": { "type": "string" }, - "target_type": { + "id": { "type": "string" }, - "validate": { + "name": { "type": "string" }, - "max_age": { + "large": { + "type": "boolean" + }, + "max_members": { "type": "integer" }, - "max_uses": { + "max_presences": { "type": "integer" }, - "temporary": { - "type": "boolean" + "max_video_channel_users": { + "type": "integer" }, - "unique": { - "type": "boolean" + "member_count": { + "type": "integer" }, - "target_user": { + "presence_count": { + "type": "integer" + }, + "mfa_level": { + "type": "integer" + }, + "owner_id": { "type": "string" }, - "target_user_type": { + "premium_subscription_count": { "type": "integer" }, - "flags": { + "premium_tier": { "type": "integer" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { "type": "string" }, - "mfa": { - "type": "boolean", - "const": true + "widget_enabled": { + "type": "boolean" }, - "sms": { - "type": "boolean", - "const": false + "nsfw_level": { + "type": "integer" }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { + "nsfw": { + "type": "boolean" + }, + "parent": { "type": "string" }, - "ticket": { + "region": { "type": "string" }, - "mfa": { - "type": "boolean", - "const": true + "icon": { + "type": [ + "null", + "string" + ] }, - "sms": { - "type": "boolean", - "const": false + "system_channel_id": { + "type": "string" }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "LoginResponse": { - "anyOf": [ - { - "$ref": "#/definitions/TokenResponse" + "rules_channel_id": { + "type": "string" }, - { - "$ref": "#/definitions/MFAResponse" + "guild_template_code": { + "type": "string" }, - { - "$ref": "#/definitions/WebAuthnResponse" - } - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "LoginSchema": { - "type": "object", - "properties": { - "login": { + "staff_only": { + "type": "boolean" + }, + "banner": { + "type": [ + "null", + "string" + ] + }, + "splash": { + "type": [ + "null", + "string" + ] + }, + "description": { "type": "string" }, - "password": { - "minLength": 1, - "maxLength": 72, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "verification_level": { + "type": "integer" + }, + "default_message_notifications": { + "type": "integer" + }, + "system_channel_flags": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "public_updates_channel_id": { "type": "string" }, - "undelete": { - "type": "boolean" + "afk_timeout": { + "type": "integer" }, - "captcha_key": { + "afk_channel_id": { "type": "string" }, - "login_source": { + "preferred_locale": { "type": "string" }, - "gift_code_sku_id": { + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "discovery_splash": { "type": "string" + }, + "safety_alerts_channel_id": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "login", - "password" + "id", + "joined_at", + "name", + "nsfw", + "welcome_screen", + "widget_enabled" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberChangeProfileSchema": { + "APIRoleArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APITemplateArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Template" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIGuildVoiceRegion": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildVoiceRegion" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APILimitsConfiguration": { "type": "object", "properties": { - "banner": { - "type": [ - "null", - "string" - ] + "user": { + "$ref": "#/definitions/UserLimits" }, - "nick": { - "type": "string" + "guild": { + "$ref": "#/definitions/GuildLimits" }, - "bio": { - "type": "string" + "message": { + "$ref": "#/definitions/MessageLimits" }, - "pronouns": { - "type": "string" + "channel": { + "$ref": "#/definitions/ChannelLimits" }, - "theme_colors": { - "items": [ - { - "type": "integer" - }, - { - "type": "integer" - } - ], - "type": "array", - "minItems": 2, - "maxItems": 2 + "rate": { + "$ref": "#/definitions/RateLimits" + }, + "absoluteRate": { + "$ref": "#/definitions/GlobalRateLimits" } }, "additionalProperties": false, + "required": [ + "absoluteRate", + "channel", + "guild", + "message", + "rate", + "user" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberChangeSchema": { + "APIConnectionsConfiguration": { + "type": "object", + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UpdatesResponse": { "type": "object", "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "nick": { + "name": { "type": "string" }, - "avatar": { - "type": [ - "null", - "string" - ] + "pub_date": { + "type": "string" }, - "bio": { + "url": { "type": "string" }, - "communication_disabled_until": { + "notes": { "type": [ "null", "string" @@ -5359,456 +5182,490 @@ } }, "additionalProperties": false, + "required": [ + "name", + "notes", + "pub_date", + "url" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberNickChangeSchema": { + "UploadAttachmentResponseSchema": { "type": "object", "properties": { - "nick": { - "type": "string" + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/UploadAttachmentResponse" + } } }, "additionalProperties": false, "required": [ - "nick" + "attachments" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageAcknowledgeSchema": { + "UploadAttachmentResponse": { "type": "object", "properties": { - "manual": { - "type": "boolean" - }, - "mention_count": { - "type": "integer" + "id": { + "type": "string" }, - "flags": { - "enum": [ - 0, - 1, - 2, - 4 - ], - "type": "number" + "upload_url": { + "type": "string" }, - "last_viewed": { - "type": "integer" + "upload_filename": { + "type": "string" }, - "token": { + "original_content_type": { "type": "string" } }, "additionalProperties": false, + "required": [ + "upload_filename", + "upload_url" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AcknowledgeDeleteSchema": { + "UserNoteResponse": { "type": "object", "properties": { - "read_state_type": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5 - ], - "type": "number" - }, - "version": { - "type": "integer" + "note": { + "type": "string" + }, + "note_user_id": { + "type": "string" + }, + "user_id": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "note", + "note_user_id", + "user_id" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageCreateSchema": { + "UserProfileResponse": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "content": { - "type": "string" - }, - "mobile_network_type": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "tts": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "embeds": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - { - "type": "null" - } - ] - }, - "embed": { - "anyOf": [ - { - "$ref": "#/definitions/Embed" - }, - { - "type": "null" - } - ] - }, - "allowed_mentions": { - "anyOf": [ - { - "type": "object", - "properties": { - "parse": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "roles": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "users": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "replied_user": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] + "user": { + "$ref": "#/definitions/PublicUser" }, - "message_reference": { - "anyOf": [ - { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false - }, - { - "type": "null" - } - ] + "connected_accounts": { + "$ref": "#/definitions/PublicConnectedAccount" }, - "payload_json": { - "type": "string" + "premium_guild_since": { + "type": "string", + "format": "date-time" }, - "file": { - "type": "object", - "properties": { - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename" - ] + "premium_since": { + "type": "string", + "format": "date-time" }, - "attachments": { + "mutual_guilds": { "type": "array", "items": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id" - ] + "type": "object", + "properties": { + "id": { + "type": "string" }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "uploaded_filename": { - "type": "string" - }, - "original_content_type": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "uploaded_filename" - ] + "nick": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "id" ] } }, - "sticker_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] + "premium_type": { + "type": "integer" }, - "components": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - { - "type": "null" - } - ] + "profile_themes_experiment_bucket": { + "type": "integer" }, - "poll": { - "$ref": "#/definitions/PollCreationSchema" + "user_profile": { + "$ref": "#/definitions/UserProfile" }, - "enforce_nonce": { - "type": "boolean" + "guild_member": { + "$ref": "#/definitions/PublicMember" }, - "applied_tags": { + "guild_member_profile": { + "$ref": "#/definitions/PublicMemberProfile" + }, + "badges": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Badge" } - }, - "thread_name": { - "type": "string" - }, - "avatar_url": { - "type": "string" - }, - "interaction": { - "$ref": "#/definitions/MessageInteractionSchema" - }, - "interaction_metadata": { - "$ref": "#/definitions/MessageInteractionSchema" } }, "additionalProperties": false, + "required": [ + "badges", + "connected_accounts", + "mutual_guilds", + "premium_type", + "profile_themes_experiment_bucket", + "user", + "user_profile" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PollCreationSchema": { + "UserRelationsResponse": { + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserRelationshipsResponse": { "type": "object", "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } + "id": { + "type": "string" }, - "duration": { - "type": "integer" + "type": { + "$ref": "#/definitions/RelationshipType" }, - "allow_multiselect": { - "type": "boolean" + "nickname": { + "type": "null" }, - "layout_type": { - "type": "integer" + "user": { + "$ref": "#/definitions/PublicUser" } }, "additionalProperties": false, "required": [ - "answers", - "question" + "id", + "nickname", + "type", + "user" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageInteractionSchema": { + "WebAuthnCreateResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, "name": { "type": "string" }, - "command_type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "ephemerality_reason": { - "type": "integer" - }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "WebhookCreateResponse": { + "type": "object", + "properties": { "user": { - "$ref": "#/definitions/PublicUser" + "$ref": "#/definitions/User" }, - "user_id": { + "hook": { + "$ref": "#/definitions/Webhook" + } + }, + "additionalProperties": false, + "required": [ + "hook", + "user" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { "type": "string" }, - "authorizing_integration_owners": { - "type": "object", - "properties": {}, - "additionalProperties": true + "mfa": { + "type": "boolean", + "const": true }, - "original_response_message_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/definitions/Snowflake" + "sms": { + "type": "boolean", + "const": false }, - "interacted_message_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/definitions/Snowflake" + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" }, - "triggering_interaction_metadata": { - "$ref": "#/definitions/MessageInteractionSchema" + "ticket": { + "type": "string" }, - "target_user": { - "$ref": "#/definitions/PublicUser" + "mfa": { + "type": "boolean", + "const": true }, - "target_message_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/definitions/Snowflake" + "sms": { + "type": "boolean", + "const": false + }, + "token": { + "type": "null" } }, "additionalProperties": false, "required": [ - "id", - "name", - "type" + "mfa", + "sms", + "ticket", + "token", + "webauthn" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageEditSchema": { + "LoginResponse": { + "anyOf": [ + { + "$ref": "#/definitions/TokenResponse" + }, + { + "$ref": "#/definitions/MFAResponse" + }, + { + "$ref": "#/definitions/WebAuthnResponse" + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "LoginSchema": { "type": "object", "properties": { - "embed": { - "anyOf": [ - { - "$ref": "#/definitions/Embed" - }, - { - "type": "null" - } - ] + "login": { + "type": "string" }, - "file": { - "type": "object", - "properties": { - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename" - ] + "password": { + "minLength": 1, + "maxLength": 72, + "type": "string" }, - "flags": { - "type": "integer" + "undelete": { + "type": "boolean" }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } + "captcha_key": { + "type": "string" }, - "channel_id": { + "login_source": { "type": "string" }, - "content": { + "gift_code_sku_id": { "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "login", + "password" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MemberChangeProfileSchema": { + "type": "object", + "properties": { + "banner": { + "type": [ + "null", + "string" + ] }, - "mobile_network_type": { + "nick": { "type": "string" }, - "nonce": { + "bio": { "type": "string" }, - "tts": { - "type": "boolean" + "pronouns": { + "type": "string" }, - "embeds": { - "anyOf": [ + "theme_colors": { + "items": [ + { + "type": "integer" + }, + { + "type": "integer" + } + ], + "type": "array", + "minItems": 2, + "maxItems": 2 + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MemberChangeSchema": { + "type": "object", + "properties": { + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "nick": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "bio": { + "type": "string" + }, + "communication_disabled_until": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MemberNickChangeSchema": { + "type": "object", + "properties": { + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "nick" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageAcknowledgeSchema": { + "type": "object", + "properties": { + "manual": { + "type": "boolean" + }, + "mention_count": { + "type": "integer" + }, + "flags": { + "enum": [ + 0, + 1, + 2, + 4 + ], + "type": "number" + }, + "last_viewed": { + "type": "integer" + }, + "token": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AcknowledgeDeleteSchema": { + "type": "object", + "properties": { + "read_state_type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "type": "number" + }, + "version": { + "type": "integer" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageCreateSchema": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "content": { + "type": "string" + }, + "mobile_network_type": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "embeds": { + "anyOf": [ { "type": "array", "items": { @@ -5820,55 +5677,20 @@ } ] }, + "embed": { + "anyOf": [ + { + "$ref": "#/definitions/Embed" + }, + { + "type": "null" + } + ] + }, "allowed_mentions": { "anyOf": [ { - "type": "object", - "properties": { - "parse": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "roles": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "users": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "replied_user": { - "type": "boolean" - } - }, - "additionalProperties": false + "$ref": "#/definitions/AllowedMentions" }, { "type": "null" @@ -5878,25 +5700,7 @@ "message_reference": { "anyOf": [ { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false + "$ref": "#/definitions/MessageReference" }, { "type": "null" @@ -5906,6 +5710,18 @@ "payload_json": { "type": "string" }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, "attachments": { "type": "array", "items": { @@ -5969,7 +5785,7 @@ { "type": "array", "items": { - "$ref": "#/definitions/ActionRowComponent" + "$ref": "#/definitions/BaseMessageComponents" } }, { @@ -5983,6 +5799,12 @@ "enforce_nonce": { "type": "boolean" }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, "thread_name": { "type": "string" }, @@ -5999,128 +5821,397 @@ "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MfaCodesSchema": { + "PollCreationSchema": { "type": "object", "properties": { - "password": { - "minLength": 1, - "maxLength": 72, - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "regenerate": { + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { "type": "boolean" + }, + "layout_type": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "password" + "answers", + "question" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ModifyGuildStickerSchema": { + "MessageInteractionSchema": { "type": "object", "properties": { - "name": { - "minLength": 2, - "maxLength": 30, + "id": { "type": "string" }, - "description": { - "maxLength": 100, - "type": "string" + "type": { + "$ref": "#/definitions/InteractionType" }, - "tags": { - "maxLength": 200, - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "name", - "tags" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PasswordResetSchema": { - "type": "object", - "properties": { - "password": { - "minLength": 1, - "maxLength": 72, + "name": { "type": "string" }, - "token": { + "command_type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "ephemerality_reason": { + "type": "integer" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "user_id": { "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "original_response_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "interacted_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "triggering_interaction_metadata": { + "$ref": "#/definitions/MessageInteractionSchema" + }, + "target_user": { + "$ref": "#/definitions/PublicUser" + }, + "target_message_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" } }, "additionalProperties": false, "required": [ - "password", - "token" + "id", + "name", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PreloadMessagesRequestSchema": { + "MessageEditSchema": { "type": "object", "properties": { - "channels": { + "embed": { + "anyOf": [ + { + "$ref": "#/definitions/Embed" + }, + { + "type": "null" + } + ] + }, + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "flags": { + "type": "integer" + }, + "applied_tags": { "type": "array", "items": { "type": "string" } }, - "channel_ids": { + "channel_id": { + "type": "string" + }, + "content": { + "type": "string" + }, + "mobile_network_type": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "embeds": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + { + "type": "null" + } + ] + }, + "allowed_mentions": { + "anyOf": [ + { + "$ref": "#/definitions/AllowedMentions" + }, + { + "type": "null" + } + ] + }, + "message_reference": { + "anyOf": [ + { + "$ref": "#/definitions/MessageReference" + }, + { + "type": "null" + } + ] + }, + "payload_json": { + "type": "string" + }, + "attachments": { "type": "array", "items": { - "type": "string" + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "uploaded_filename": { + "type": "string" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "uploaded_filename" + ] + } + ] } + }, + "sticker_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "components": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/BaseMessageComponents" + } + }, + { + "type": "null" + } + ] + }, + "poll": { + "$ref": "#/definitions/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "interaction": { + "$ref": "#/definitions/MessageInteractionSchema" + }, + "interaction_metadata": { + "$ref": "#/definitions/MessageInteractionSchema" } }, "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, - "PruneSchema": { + "MfaCodesSchema": { "type": "object", "properties": { - "days": { - "type": "integer" + "password": { + "minLength": 1, + "maxLength": 72, + "type": "string" + }, + "regenerate": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "days" + "password" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PurgeSchema": { + "ModifyGuildStickerSchema": { "type": "object", "properties": { - "before": { + "name": { + "minLength": 2, + "maxLength": 30, "type": "string" }, - "after": { + "description": { + "maxLength": 100, + "type": "string" + }, + "tags": { + "maxLength": 200, "type": "string" } }, "additionalProperties": false, "required": [ - "after", - "before" + "name", + "tags" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "RefreshUrlsRequestSchema": { + "PasswordResetSchema": { "type": "object", "properties": { - "attachment_urls": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ + "password": { + "minLength": 1, + "maxLength": 72, + "type": "string" + }, + "token": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password", + "token" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PreloadMessagesRequestSchema": { + "type": "object", + "properties": { + "channels": { + "type": "array", + "items": { + "type": "string" + } + }, + "channel_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PruneSchema": { + "type": "object", + "properties": { + "days": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "days" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PurgeSchema": { + "type": "object", + "properties": { + "before": { + "type": "string" + }, + "after": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "after", + "before" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RefreshUrlsRequestSchema": { + "type": "object", + "properties": { + "attachment_urls": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ "attachment_urls" ], "$schema": "http://json-schema.org/draft-07/schema#" @@ -7158,85 +7249,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationCommandCreateSchema": { - "type": "object", - "properties": { - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "name": { - "type": "string" - }, - "name_localizations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "description_localizations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ApplicationCommandOption" - } - }, - "default_member_permissions": { - "type": "string" - }, - "dm_permission": { - "type": "boolean" - }, - "nsfw": { - "type": "boolean" - }, - "integration_types": { - "type": "array", - "items": { - "$ref": "#/definitions/ApplicationIntegrationType" - } - }, - "contexts": { - "type": "array", - "items": { - "$ref": "#/definitions/InteractionContextType" - } - }, - "handler": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - } - }, - "additionalProperties": false, - "required": [ - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BulkApplicationCommandCreateSchema": { - "type": "array", - "items": { - "$ref": "#/definitions/ApplicationCommandCreateSchema" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, "ThreadCreationSchema": { "type": "object", "properties": { @@ -7312,7 +7324,7 @@ { "type": "array", "items": { - "$ref": "#/definitions/ActionRowComponent" + "$ref": "#/definitions/BaseMessageComponents" } }, { @@ -7568,230 +7580,73 @@ "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceIdentifySchema": { + "EmojisResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/EmojiResponse" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmojiResponse": { "type": "object", "properties": { - "server_id": { - "type": "string" - }, - "user_id": { - "type": "string" + "id": { + "type": [ + "null", + "string" + ] }, - "session_id": { - "type": "string" + "name": { + "type": [ + "null", + "string" + ] }, - "channel_id": { - "type": "string" + "roles": { + "type": "array", + "items": { + "type": "string" + } }, - "token": { - "type": "string" + "user": { + "$ref": "#/definitions/PartialUser" }, - "video": { + "require_colons": { "type": "boolean" }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "enum": [ - "audio", - "screen", - "video" - ], - "type": "string" - }, - "rid": { - "type": "string" - }, - "quality": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "quality", - "rid", - "type" - ] - } + "managed": { + "type": "boolean" }, - "max_secure_frames_version": { - "type": "integer" + "animated": { + "type": "boolean" }, - "max_dave_protocol_version": { - "type": "integer" + "available": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "server_id", - "session_id", - "token", - "user_id" + "id", + "name" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceVideoSchema": { + "CreateReportSchema": { "type": "object", "properties": { - "audio_ssrc": { - "type": "integer" + "version": { + "type": "string" }, - "video_ssrc": { - "type": "integer" + "variant": { + "type": "string" }, - "rtx_ssrc": { - "type": "integer" + "name": { + "type": "string" }, - "user_id": { + "language": { "type": "string" }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "enum": [ - "audio", - "screen", - "video" - ], - "type": "string" - }, - "rid": { - "type": "string" - }, - "ssrc": { - "type": "integer" - }, - "active": { - "type": "boolean" - }, - "quality": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" - }, - "max_bitrate": { - "type": "integer" - }, - "max_framerate": { - "type": "integer" - }, - "max_resolution": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "height", - "type", - "width" - ] - } - }, - "additionalProperties": false, - "required": [ - "active", - "max_bitrate", - "max_framerate", - "max_resolution", - "quality", - "rid", - "rtx_ssrc", - "ssrc", - "type" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "audio_ssrc", - "video_ssrc" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmojisResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/EmojiResponse" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmojiResponse": { - "type": "object", - "properties": { - "id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "user": { - "$ref": "#/definitions/PartialUser" - }, - "require_colons": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CreateReportSchema": { - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "variant": { - "type": "string" - }, - "name": { - "type": "string" - }, - "language": { - "type": "string" - }, - "breadcrumbs": { + "breadcrumbs": { "type": "array", "items": { "type": "integer" @@ -8139,472 +7994,382 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionCallbackType": { - "type": "number", + "Status": { "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12 + "dnd", + "idle", + "invisible", + "offline", + "online" ], + "type": "string", "$schema": "http://json-schema.org/draft-07/schema#" }, - "Message": { + "Activity": { "type": "object", "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "thread_id": { - "type": "string" - }, - "thread": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { + "name": { "type": "string" }, - "author": { - "$ref": "#/definitions/User" + "type": { + "$ref": "#/definitions/ActivityType" }, - "member_id": { + "url": { "type": "string" }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" + "created_at": { + "type": "integer" }, - "webhook": { - "$ref": "#/definitions/Webhook" + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] }, "application_id": { "type": "string" }, - "application": { - "$ref": "#/definitions/Application" + "details": { + "type": "string" }, - "content": { + "state": { "type": "string" }, - "timestamp": { - "type": "string", - "format": "date-time" + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] }, - "edited_timestamp": { - "type": "string", - "format": "date-time" + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false }, - "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_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "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": { + "assets": { "type": "object", "properties": { - "message_id": { + "large_image": { "type": "string" }, - "channel_id": { + "large_text": { "type": "string" }, - "guild_id": { + "small_image": { "type": "string" }, - "type": { - "type": "integer" + "small_text": { + "type": "string" } }, "additionalProperties": false }, - "referenced_message": { - "anyOf": [ - { - "$ref": "#/definitions/Message" - }, - { - "type": "null" - } - ] - }, - "interaction": { + "secrets": { "type": "object", "properties": { - "id": { + "join": { "type": "string" }, - "type": { - "$ref": "#/definitions/InteractionType" + "spectate": { + "type": "string" }, - "name": { + "match": { "type": "string" } }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type" - ] + "additionalProperties": false }, - "interaction_metadata": { + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { "type": "object", "properties": { - "id": { - "type": "string" + "button_urls": { + "type": "array", + "items": { + "type": "string" + } }, - "type": { - "$ref": "#/definitions/InteractionType" + "context_uri": { + "type": "string" }, - "user_id": { + "album_id": { "type": "string" }, - "authorizing_integration_owners": { - "type": "object", - "properties": {}, - "additionalProperties": true + "artist_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "name": { + "type": { + "enum": [ + "episode", + "track" + ], "type": "string" - }, - "command_type": { - "$ref": "#/definitions/ApplicationCommandType" } }, - "additionalProperties": false, - "required": [ - "authorizing_integration_owners", - "command_type", - "id", - "name", - "type", - "user_id" - ] - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "message_snapshots": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageSnapshot" - } + "additionalProperties": false }, - "id": { + "session_id": { "type": "string" } }, "additionalProperties": false, "required": [ - "channel", - "embeds", "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "message_snapshots", - "pinned", - "reactions", - "timestamp", + "name", + "session_id", "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Channel": { + "ActivityType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ChannelPermissionOverwriteType": { + "type": "number", + "enum": [ + 0, + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ConnectedAccountTokenData": { "type": "object", "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { + "access_token": { "type": "string" }, - "icon": { - "type": [ - "null", - "string" - ] + "token_type": { + "type": "string" }, - "type": { - "$ref": "#/definitions/ChannelType" + "scope": { + "type": "string" }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } + "refresh_token": { + "type": "string" }, - "thread_members": { - "type": "array", - "items": { - "$ref": "#/definitions/ThreadMember" - } - }, - "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": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { + "expires_in": { "type": "integer" }, - "user_limit": { + "expires_at": { "type": "integer" }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { + "fetched_at": { "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AllowedMentions": { + "type": "object", + "properties": { + "parse": { "type": "array", "items": { - "$ref": "#/definitions/Invite" + "enum": [ + "everyone", + "roles", + "users" + ], + "type": "string" } }, - "retention_policy_id": { - "type": "string" - }, - "messages": { + "roles": { "type": "array", "items": { - "$ref": "#/definitions/Message" + "type": "string" } }, - "voice_states": { + "users": { "type": "array", "items": { - "$ref": "#/definitions/VoiceState" + "type": "string" } }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } + "replied_user": { + "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Classification": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "webhooks": { + "classification_type": { + "$ref": "#/definitions/ClassificationType" + }, + "description": { + "type": "string" + }, + "explainer_link": { + "type": "string" + }, + "actions": { "type": "array", "items": { - "$ref": "#/definitions/Webhook" + "$ref": "#/definitions/ClassificationAction" } }, - "flags": { - "type": "integer", - "default": 0 + "max_expiration_time": { + "type": "string" }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 + "flagged_content": { + "type": "array", + "items": {} }, - "thread_metadata": { - "$ref": "#/definitions/ThreadMetadata" + "appeal_status": { + "$ref": "#/definitions/AppealStatus" }, - "member_count": { - "type": "integer" + "is_coppa": { + "type": "boolean" }, - "message_count": { - "type": "integer" + "is_spam": { + "type": "boolean" }, - "total_message_sent": { - "type": "integer" + "appeal_ingestion_type": { + "$ref": "#/definitions/AppealIngestionType" + } + }, + "additionalProperties": false, + "required": [ + "actions", + "appeal_ingestion_type", + "appeal_status", + "classification_type", + "description", + "explainer_link", + "flagged_content", + "id", + "is_coppa", + "is_spam", + "max_expiration_time" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ClassificationType": { + "type": "number", + "enum": [ + 1, + 100, + 200, + 210, + 220, + 230, + 240, + 250, + 280, + 290, + 310, + 320, + 390, + 600, + 650, + 711, + 720, + 3010, + 3030, + 4000, + 4010, + 4130, + 4140, + 5010, + 5090, + 5305, + 5411, + 5440, + 5485 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ClassificationAction": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "available_tags": { - "type": "array", - "items": { - "$ref": "#/definitions/Tag" - } + "action_type": { + "$ref": "#/definitions/ClassificationActionType" }, - "applied_tags": { + "descriptions": { "type": "array", "items": { "type": "string" } - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" } }, "additionalProperties": false, "required": [ - "created_at", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" + "action_type", + "descriptions", + "id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelType": { + "ClassificationActionType": { "type": "number", "enum": [ 0, @@ -8624,1610 +8389,1492 @@ 14, 15, 16, - 17, - 18, - 255 + 20, + 22 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Recipient": { + "AppealStatus": { "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" + "status": { + "$ref": "#/definitions/AppealStatusValue" } }, "additionalProperties": false, "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" + "status" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "User": { + "AppealStatusValue": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AppealIngestionType": { + "type": "number", + "enum": [ + 0, + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildClassification": { "type": "object", "properties": { - "username": { - "type": "string" + "guild_metadata": { + "$ref": "#/definitions/GuildMetadata" }, - "discriminator": { + "id": { "type": "string" }, - "avatar": { - "type": "string" + "classification_type": { + "$ref": "#/definitions/ClassificationType" }, - "accent_color": { - "type": "integer" + "description": { + "type": "string" }, - "banner": { + "explainer_link": { "type": "string" }, - "theme_colors": { + "actions": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/ClassificationAction" } }, - "pronouns": { - "type": "string" - }, - "phone": { + "max_expiration_time": { "type": "string" }, - "desktop": { - "type": "boolean", - "default": false + "flagged_content": { + "type": "array", + "items": {} }, - "mobile": { - "type": "boolean", - "default": false + "appeal_status": { + "$ref": "#/definitions/AppealStatus" }, - "premium": { + "is_coppa": { "type": "boolean" }, - "premium_type": { - "type": "integer" + "is_spam": { + "type": "boolean" }, - "bot": { - "type": "boolean", - "default": false + "appeal_ingestion_type": { + "$ref": "#/definitions/AppealIngestionType" + } + }, + "additionalProperties": false, + "required": [ + "actions", + "appeal_ingestion_type", + "appeal_status", + "classification_type", + "description", + "explainer_link", + "flagged_content", + "guild_metadata", + "id", + "is_coppa", + "is_spam", + "max_expiration_time" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "bio": { - "type": "string", - "default": "" + "icon": { + "type": "string" }, - "system": { - "type": "boolean", - "default": false + "member_type": { + "$ref": "#/definitions/GuildMemberType" + } + }, + "additionalProperties": false, + "required": [ + "member_type", + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildMemberType": { + "type": "number", + "enum": [ + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AccountStandingState": { + "type": "number", + "enum": [ + 100, + 200, + 300, + 400, + 500 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AppealEligibility": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesCategoryItem": { + "type": "object", + "properties": { + "sku_id": { + "type": "string" }, - "nsfw_allowed": { - "type": "boolean", - "default": true + "name": { + "type": "string" }, - "mfa_enabled": { - "type": "boolean", - "default": false + "summary": { + "type": "string" }, - "webauthn_enabled": { - "type": "boolean", - "default": false + "store_listing_id": { + "type": "string" }, - "totp_secret": { - "type": "string", - "default": "" + "banner": { + "type": "string" }, - "totp_last_ticket": { - "type": "string", - "default": "" + "unpublished_at": { + "type": [ + "null", + "string" + ] }, - "created_at": { - "type": "string", - "format": "date-time" + "styles": { + "$ref": "#/definitions/CollectiblesCategoryStyle" }, - "premium_since": { - "type": "string", - "format": "date-time" + "logo": { + "type": "string" }, - "verified": { - "type": "boolean" + "hero_ranking": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, - "disabled": { - "type": "boolean", - "default": false + "mobile_bg": { + "type": [ + "null", + "string" + ] }, - "deleted": { - "type": "boolean", - "default": false + "pdp_bg": { + "type": [ + "null", + "string" + ] }, - "email": { - "type": "string" + "success_modal_bg": { + "type": [ + "null", + "string" + ] }, - "flags": { - "type": "integer", - "default": 0 + "mobile_banner": { + "type": [ + "null", + "string" + ] }, - "public_flags": { - "type": "integer", - "default": 0 + "featured_block": { + "type": [ + "null", + "string" + ] }, - "purchased_flags": { - "type": "integer", - "default": 0 + "hero_banner": { + "type": [ + "null", + "string" + ] }, - "premium_usage_flags": { - "type": "integer", - "default": 0 + "wide_banner": { + "type": [ + "null", + "string" + ] }, - "rights": { - "type": "string" + "hero_logo": { + "type": [ + "null", + "string" + ] }, - "sessions": { + "products": { "type": "array", "items": { - "$ref": "#/definitions/Session" + "$ref": "#/definitions/CollectiblesCategoryProductItem" } }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } + "banner_asset": { + "$ref": "#/definitions/StaticAnimatedAsset" }, - "connected_accounts": { + "hero_banner_asset": { + "$ref": "#/definitions/StaticAnimatedAsset" + } + }, + "additionalProperties": false, + "required": [ + "banner", + "featured_block", + "hero_banner", + "hero_logo", + "hero_ranking", + "logo", + "mobile_banner", + "mobile_bg", + "name", + "pdp_bg", + "products", + "sku_id", + "store_listing_id", + "styles", + "success_modal_bg", + "summary", + "unpublished_at", + "wide_banner" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesCategoryStyle": { + "type": "object", + "properties": { + "background_colors": { "type": "array", "items": { - "$ref": "#/definitions/ConnectedAccount" + "type": "integer" } }, - "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" - }, - "security_keys": { + "button_colors": { "type": "array", "items": { - "$ref": "#/definitions/SecurityKey" + "type": "integer" } }, - "badge_ids": { + "confetti_colors": { "type": "array", "items": { - "type": "string" + "type": "integer" } - }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" - }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" - }, - "collectibles": { - "$ref": "#/definitions/Collectibles" - }, - "primary_guild": { - "$ref": "#/definitions/PrimaryGuild" - }, - "tag": { - "type": "string" - }, - "id": { - "type": "string" } }, "additionalProperties": false, "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "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", - "system", - "tag", - "username", - "verified", - "webauthn_enabled" + "background_colors", + "button_colors", + "confetti_colors" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Session": { + "CollectiblesCategoryProductItem": { "type": "object", "properties": { - "session_id": { + "sku_id": { "type": "string" }, - "user_id": { + "name": { "type": "string" }, - "user": { - "$ref": "#/definitions/User" + "summary": { + "type": "string" }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } + "store_listing_id": { + "type": "string" }, - "client_info": { - "type": "object", - "properties": { - "platform": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - }, - "location": { - "type": "string" - } - }, - "additionalProperties": false + "banner": { + "type": "string" }, - "client_status": { - "$ref": "#/definitions/ClientStatus" + "unpublished_at": { + "type": [ + "null", + "string" + ] }, - "status": { - "$ref": "#/definitions/Status" + "styles": { + "$ref": "#/definitions/CollectiblesCategoryStyle" }, - "is_admin_session": { - "type": "boolean" + "prices": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "country_prices": { + "$ref": "#/definitions/CountryPrice" + } + }, + "additionalProperties": false, + "required": [ + "country_prices" + ] + } }, - "created_at": { - "type": "string", - "format": "date-time" + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/ProductItem" + } }, - "last_seen": { - "type": "string", - "format": "date-time" + "type": { + "type": "integer" }, - "last_seen_ip": { - "type": "string" + "premium_type": { + "type": "integer" }, - "last_seen_location": { + "category_sku_id": { "type": "string" }, - "last_seen_location_info": { - "$ref": "#/definitions/ExtendedLocationInfo" + "google_sku_ids": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "session_nickname": { - "type": "string" + "variants": { + "type": "array", + "items": { + "$ref": "#/definitions/ProductItemVariant" + } } }, "additionalProperties": false, "required": [ - "activities", - "client_info", - "client_status", - "created_at", - "is_admin_session", - "session_id", - "status", - "user", - "user_id" + "banner", + "category_sku_id", + "google_sku_ids", + "items", + "name", + "premium_type", + "prices", + "sku_id", + "store_listing_id", + "styles", + "summary", + "type", + "unpublished_at" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Activity": { + "CountryPrice": { "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": { + "country_code": { "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" + "prices": { + "type": "array", + "items": { + "$ref": "#/definitions/PriceEntry" + } } }, "additionalProperties": false, "required": [ - "flags", - "name", - "session_id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ActivityType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 4, - 5 + "country_code", + "prices" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ClientStatus": { + "PriceEntry": { "type": "object", "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" + "amount": { + "type": "integer" }, - "web": { + "currency": { "type": "string" }, - "embedded": { - "type": "string" + "exponent": { + "type": "integer" } }, "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" + "required": [ + "amount", + "currency", + "exponent" ], - "type": "string", "$schema": "http://json-schema.org/draft-07/schema#" }, - "ExtendedLocationInfo": { + "ProductItem": { "type": "object", "properties": { - "is_eu": { - "type": "boolean" + "type": { + "type": "integer" }, - "city": { + "id": { "type": "string" }, - "region": { + "sku_id": { "type": "string" }, - "region_code": { + "asset": { "type": "string" }, - "country_name": { + "label": { "type": "string" }, - "country_code": { + "palette": { "type": "string" - }, - "continent_name": { + } + }, + "additionalProperties": false, + "required": [ + "id", + "sku_id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ProductItemVariant": { + "type": "object", + "properties": { + "sku_id": { "type": "string" }, - "continent_code": { + "name": { "type": "string" }, - "latitude": { - "type": "integer" - }, - "longitude": { - "type": "integer" + "name_localizations": { + "type": "null" }, - "postal": { + "summary": { "type": "string" }, - "calling_code": { - "type": "string" + "summary_localizations": { + "type": "null" }, - "flag": { + "store_listing_id": { "type": "string" }, - "emoji_flag": { + "banner": { "type": "string" }, - "emoji_unicode": { - "type": "string" + "unpublished_at": { + "type": [ + "null", + "string" + ] + }, + "styles": { + "$ref": "#/definitions/CollectiblesCategoryStyle" + }, + "prices": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "country_prices": { + "$ref": "#/definitions/CountryPrice" + } + }, + "additionalProperties": false, + "required": [ + "country_prices" + ] + } + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/ProductItem" + } + }, + "type": { + "type": "integer" + }, + "premium_type": { + "type": "integer" + }, + "category_sku_id": { + "type": "string" + }, + "google_sku_ids": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "base_variant_sku_id": { + "type": "string" + }, + "base_variant_name": { + "type": "string" + }, + "variant_label": { + "type": "string" + }, + "variant_value": { + "type": "string" } }, "additionalProperties": false, "required": [ - "calling_code", - "city", - "continent_code", - "continent_name", - "country_code", - "country_name", - "emoji_flag", - "emoji_unicode", - "flag", - "is_eu", - "latitude", - "longitude", - "postal", - "region", - "region_code" + "base_variant_name", + "base_variant_sku_id", + "category_sku_id", + "items", + "name", + "name_localizations", + "premium_type", + "prices", + "sku_id", + "store_listing_id", + "summary", + "summary_localizations", + "type", + "variant_label", + "variant_value" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Relationship": { + "StaticAnimatedAsset": { "type": "object", "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" + "animated": { + "type": [ + "null", + "string" + ] }, - "to_id": { + "static": { "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "static" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesMarketingItem": { + "type": "object", + "properties": { + "type": { + "type": "integer" }, - "to": { - "$ref": "#/definitions/User" + "version": { + "type": "integer" }, - "nickname": { + "title": { "type": "string" }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { + "body": { "type": "string" } }, "additionalProperties": false, "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" + "body", + "title", + "type", + "version" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "RelationshipType": { - "type": "number", - "enum": [ - 4, - 3, - 2, - 1 + "AnyShopBlock": { + "anyOf": [ + { + "$ref": "#/definitions/ItemRowShopBlock" + }, + { + "$ref": "#/definitions/BundleTileRowShopBlock" + }, + { + "$ref": "#/definitions/ItemCollectionShopBlock" + } ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ConnectedAccount": { + "ItemRowShopBlock": { "type": "object", "properties": { - "external_id": { - "type": "string" + "type": { + "type": "integer", + "const": 0 }, - "user_id": { + "category_sku_id": { "type": "string" }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, "name": { "type": "string" }, - "revoked": { - "type": "boolean", - "default": false + "category_store_listing_id": { + "type": "string" }, - "show_activity": { - "type": "integer", - "default": 0 + "banner_asset": { + "$ref": "#/definitions/StaticAnimatedAsset" }, - "type": { + "logo_url": { "type": "string" }, - "verified": { - "type": "boolean", - "default": true + "unpublished_at": { + "type": [ + "null", + "string" + ] }, - "visibility": { - "type": "integer", - "default": 0 + "summary": { + "type": "string" }, - "integrations": { + "ranked_sku_ids": { "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", + "banner_asset", + "category_sku_id", + "category_store_listing_id", + "logo_url", "name", + "ranked_sku_ids", + "summary", "type", - "user", - "user_id" + "unpublished_at" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ConnectedAccountTokenData": { + "BundleTileRowShopBlock": { "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" + "type": { + "type": "integer", + "const": 1 }, - "fetched_at": { - "type": "integer" + "subblocks": { + "type": "array", + "items": { + "$ref": "#/definitions/ShopBlockSubBlock" + } } }, "additionalProperties": false, "required": [ - "access_token", - "fetched_at" + "subblocks", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserSettings": { + "ShopBlockSubBlock": { "type": "object", "properties": { - "index": { + "type": { + "type": "integer" + }, + "category_store_listing_id": { "type": "string" }, - "afk_timeout": { - "type": "integer", - "default": 3600 + "name": { + "type": "string" }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true + "unpublished_at": { + "type": [ + "null", + "string" + ] }, - "animate_emoji": { - "type": "boolean", - "default": true + "banner_url": { + "type": "string" }, - "animate_stickers": { - "type": "integer", - "default": 0 + "body_text": { + "type": [ + "null", + "string" + ] }, - "contact_sync_enabled": { - "type": "boolean", - "default": false + "banner_text_color": { + "type": [ + "null", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "banner_text_color", + "banner_url", + "body_text", + "category_store_listing_id", + "name", + "type", + "unpublished_at" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ItemCollectionShopBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "const": 2 }, - "convert_emoticons": { - "type": "boolean", - "default": false + "ranked_sku_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" + "sorted_sku_ids": { + "type": "object", + "properties": { + "recommended": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, - { - "type": "null" + "popular": { + "type": "array", + "items": { + "type": "string" + } } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true + }, + "additionalProperties": false, + "required": [ + "popular", + "recommended" + ] + } + }, + "additionalProperties": false, + "required": [ + "ranked_sku_ids", + "sorted_sku_ids", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": [ + "null", + "string" + ] }, - "disable_games_tab": { - "type": "boolean", - "default": true + "afk_channel": { + "$ref": "#/definitions/Channel" }, - "enable_tts_command": { - "type": "boolean", - "default": false + "afk_timeout": { + "type": "integer" }, - "explicit_content_filter": { - "type": "integer", - "default": 0 + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 + "banner": { + "type": "string" }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" + "default_message_notifications": { + "type": "integer" }, - "gateway_connected": { - "type": "boolean", - "default": false + "description": { + "type": "string" }, - "gif_auto_play": { - "type": "boolean", - "default": false + "discovery_splash": { + "type": "string" }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] + "explicit_content_filter": { + "type": "integer" }, - "guild_positions": { + "features": { "type": "array", "items": { "type": "string" }, "default": [] }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true + "primary_category_id": { + "type": "string" }, - "locale": { - "type": "string", - "default": "en-US" + "icon": { + "type": "string" }, - "message_display_compact": { + "large": { "type": "boolean", "default": false }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true + "max_members": { + "type": "integer" }, - "render_embeds": { - "type": "boolean", - "default": true + "max_presences": { + "type": "integer" }, - "render_reactions": { - "type": "boolean", - "default": true + "max_video_channel_users": { + "type": "integer" }, - "restricted_guilds": { + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { "type": "array", "items": { - "type": "string" - }, - "default": [] + "$ref": "#/definitions/Member" + } }, - "show_current_game": { - "type": "boolean", - "default": true + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false + "template_id": { + "type": "string" }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" + "template": { + "$ref": "#/definitions/Template" }, - "timezone_offset": { - "type": "integer", - "default": 0 + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } }, - "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" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { + "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" }, - "emoji_name": { + "owner_id": { "type": "string" }, - "expires_at": { - "type": "integer" + "owner": { + "$ref": "#/definitions/User" }, - "text": { + "preferred_locale": { "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { "type": [ "null", - "integer" + "string" ] }, - "guild_ids": { - "type": "array", - "items": { - "type": "string" - } + "public_updates_channel": { + "$ref": "#/definitions/Channel" }, - "id": { + "rules_channel_id": { "type": [ "null", - "integer" + "string" ] }, - "name": { + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { "type": [ "null", "string" ] - } - }, - "additionalProperties": false, - "required": [ - "guild_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" }, - "user": { - "$ref": "#/definitions/User" + "system_channel": { + "$ref": "#/definitions/Channel" }, - "key_id": { - "type": "string" + "system_channel_flags": { + "type": "integer" }, - "public_key": { + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen", + "description": "DEPRECATED: Look at the new Guild onboarding screens." + }, + "widget_channel_id": { "type": "string" }, - "counter": { + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { "type": "integer" }, - "name": { + "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" + } + }, + "discovery_weight": { + "type": "integer", + "default": 0 + }, + "discovery_excluded": { + "type": "boolean", + "default": false + }, "id": { "type": "string" } }, "additionalProperties": false, "required": [ - "counter", + "bans", + "channel_ordering", + "channels", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", "id", - "key_id", + "invites", + "members", "name", - "public_key", - "user", - "user_id" + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AvatarDecorationData": { + "Channel": { "type": "object", "properties": { - "asset": { - "type": "string" + "created_at": { + "type": "string", + "format": "date-time" }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "name": { "type": "string" }, - "expires_at": { + "icon": { "type": [ "null", "string" ] - } - }, - "additionalProperties": false, - "required": [ - "asset", - "expires_at", - "sku_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "DisplayNameStyle": { - "type": "object", - "properties": { - "font_id": { - "type": "integer" }, - "effect_id": { - "type": "integer" + "type": { + "$ref": "#/definitions/ChannelType" }, - "colors": { + "recipients": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/Recipient" } - } - }, - "additionalProperties": false, - "required": [ - "colors", - "effect_id", - "font_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Collectibles": { - "type": "object", - "properties": { - "nameplate": { - "anyOf": [ - { - "$ref": "#/definitions/NameplateData" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "nameplate" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "NameplateData": { - "type": "object", - "properties": { - "asset": { - "type": "string" }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" + "thread_members": { + "type": "array", + "items": { + "$ref": "#/definitions/ThreadMember" + } }, - "label": { + "last_message_id": { "type": "string" }, - "palette": { + "guild_id": { "type": "string" }, - "expires_at": { - "type": [ - "null", - "integer" - ] - } - }, - "additionalProperties": false, - "required": [ - "asset", - "expires_at", - "label", - "palette", - "sku_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PrimaryGuild": { - "type": "object", - "properties": { - "identity_enabled": { - "type": [ - "null", - "boolean" - ] - }, - "identity_guild_id": { - "type": [ - "null", - "string" - ] - }, - "tag": { - "type": [ - "null", - "string" - ] + "guild": { + "$ref": "#/definitions/Guild" }, - "badge": { + "parent_id": { "type": [ "null", "string" ] - } - }, - "additionalProperties": false, - "required": [ - "badge", - "identity_enabled", - "identity_guild_id", - "tag" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ThreadMember": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" }, - "channel": { + "parent": { "$ref": "#/definitions/Channel" }, - "member_idx": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "join_timestamp": { - "type": "string", - "format": "date-time" - }, - "muted": { - "type": "boolean" - }, - "mute_config": { - "$ref": "#/definitions/ThreadMemberMuteConfig" - }, - "flags": { - "$ref": "#/definitions/ThreadMemberFlags" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "flags", - "id", - "index", - "join_timestamp", - "member", - "member_idx", - "muted" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { + "owner_id": { "type": "string" }, - "user": { + "owner": { "$ref": "#/definitions/User" }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" + "last_pin_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] }, - "nick": { - "type": "string" + "default_auto_archive_duration": { + "type": "integer" }, - "roles": { + "permission_overwrites": { "type": "array", "items": { - "$ref": "#/definitions/Role" + "$ref": "#/definitions/ChannelPermissionOverwrite" } }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { + "video_quality_mode": { "type": "integer" }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" + "bitrate": { + "type": "integer" }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" + "user_limit": { + "type": "integer" }, - "last_message_id": { - "type": "string" + "nsfw": { + "type": "boolean", + "default": false }, - "joined_by": { - "type": "string" + "rate_limit_per_user": { + "type": "integer" }, - "avatar": { + "topic": { "type": "string" }, - "banner": { - "type": "string" + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } }, - "bio": { + "retention_policy_id": { "type": "string" }, - "theme_colors": { + "messages": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/Message" } }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } }, - "collectibles": { - "$ref": "#/definitions/Collectibles" + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } }, "flags": { "type": "integer", "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "thread_metadata": { + "$ref": "#/definitions/ThreadMetadata" + }, + "member_count": { + "type": "integer" + }, + "message_count": { + "type": "integer" + }, + "total_message_sent": { + "type": "integer" + }, + "available_tags": { + "type": "array", + "items": { + "$ref": "#/definitions/Tag" + } + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", + "created_at", "flags", - "guild", - "guild_id", "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" + "nsfw", + "owner", + "parent_id", + "position", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Guild": { + "ChannelType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 255 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Recipient": { "type": "object", "properties": { - "afk_channel_id": { - "type": [ - "null", - "string" - ] + "channel_id": { + "type": "string" }, - "afk_channel": { + "channel": { "$ref": "#/definitions/Channel" }, - "afk_timeout": { - "type": "integer" + "user_id": { + "type": "string" }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } + "user": { + "$ref": "#/definitions/User" }, - "banner": { - "type": "string" + "closed": { + "type": "boolean" }, - "default_message_notifications": { - "type": "integer" + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" }, - "description": { + "discriminator": { "type": "string" }, - "discovery_splash": { + "avatar": { "type": "string" }, - "explicit_content_filter": { + "accent_color": { "type": "integer" }, - "features": { + "banner": { + "type": "string" + }, + "theme_colors": { "type": "array", "items": { - "type": "string" - }, - "default": [] + "type": "integer" + } }, - "primary_category_id": { + "pronouns": { "type": "string" }, - "icon": { + "phone": { "type": "string" }, - "large": { + "desktop": { "type": "boolean", "default": false }, - "max_members": { - "type": "integer" + "mobile": { + "type": "boolean", + "default": false }, - "max_presences": { - "type": "integer" + "premium": { + "type": "boolean" }, - "max_video_channel_users": { + "premium_type": { "type": "integer" }, - "member_count": { - "type": "integer" + "bot": { + "type": "boolean", + "default": false }, - "presence_count": { - "type": "integer" + "bio": { + "type": "string", + "default": "" }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } + "system": { + "type": "boolean", + "default": false }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } + "nsfw_allowed": { + "type": "boolean", + "default": true }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } + "mfa_enabled": { + "type": "boolean", + "default": false }, - "template_id": { - "type": "string" + "webauthn_enabled": { + "type": "boolean", + "default": false }, - "template": { - "$ref": "#/definitions/Template" + "totp_secret": { + "type": "string", + "default": "" }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } + "totp_last_ticket": { + "type": "string", + "default": "" }, - "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": [ - "null", - "string" - ] + "created_at": { + "type": "string", + "format": "date-time" }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" + "premium_since": { + "type": "string", + "format": "date-time" }, - "rules_channel_id": { - "type": [ - "null", - "string" - ] + "verified": { + "type": "boolean" }, - "rules_channel": { - "type": "string" + "disabled": { + "type": "boolean", + "default": false }, - "region": { - "type": "string" + "deleted": { + "type": "boolean", + "default": false }, - "splash": { + "email": { "type": "string" }, - "system_channel_id": { - "type": [ - "null", - "string" - ] - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" + "flags": { + "type": "integer", + "default": 0 }, - "unavailable": { - "type": "boolean", - "default": false + "public_flags": { + "type": "integer", + "default": 0 }, - "verification_level": { - "type": "integer" + "purchased_flags": { + "type": "integer", + "default": 0 }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen", - "description": "DEPRECATED: Look at the new Guild onboarding screens." + "premium_usage_flags": { + "type": "integer", + "default": 0 }, - "widget_channel_id": { + "rights": { "type": "string" }, - "widget_channel": { - "$ref": "#/definitions/Channel" + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } }, - "widget_enabled": { - "type": "boolean", - "default": true + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } }, - "nsfw_level": { - "type": "integer" + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } }, - "nsfw": { - "type": "boolean", - "default": false + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] }, - "parent": { - "type": "string" + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] }, - "permissions": { - "type": "integer" + "settings": { + "$ref": "#/definitions/UserSettings" }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } }, - "channel_ordering": { + "badge_ids": { "type": "array", "items": { "type": "string" } }, - "discovery_weight": { - "type": "integer", - "default": 0 + "avatar_decoration_data": { + "$ref": "#/definitions/AvatarDecorationData" }, - "discovery_excluded": { - "type": "boolean", - "default": false + "display_name_styles": { + "$ref": "#/definitions/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/definitions/Collectibles" + }, + "primary_guild": { + "$ref": "#/definitions/PrimaryGuild" + }, + "tag": { + "type": "string" }, "id": { "type": "string" @@ -10235,208 +9882,227 @@ }, "additionalProperties": false, "required": [ - "bans", - "channel_ordering", - "channels", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "fingerprints", + "flags", "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Ban": { + "Session": { "type": "object", "properties": { + "session_id": { + "type": "string" + }, "user_id": { "type": "string" }, "user": { "$ref": "#/definitions/User" }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } }, - "executor": { - "$ref": "#/definitions/User" + "client_info": { + "type": "object", + "properties": { + "platform": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "location": { + "type": "string" + } + }, + "additionalProperties": false }, - "ip": { + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "is_admin_session": { + "type": "boolean" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "last_seen": { + "type": "string", + "format": "date-time" + }, + "last_seen_ip": { "type": "string" }, - "reason": { + "last_seen_location": { "type": "string" }, - "id": { + "last_seen_location_info": { + "$ref": "#/definitions/ExtendedLocationInfo" + }, + "session_nickname": { "type": "string" } }, "additionalProperties": false, "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", + "activities", + "client_info", + "client_status", + "created_at", + "is_admin_session", + "session_id", + "status", "user", "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Role": { + "ClientStatus": { "type": "object", "properties": { - "guild_id": { + "desktop": { "type": "string" }, - "guild": { - "$ref": "#/definitions/Guild" + "mobile": { + "type": "string" }, - "color": { - "type": "integer" + "web": { + "type": "string" }, - "hoist": { + "embedded": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ExtendedLocationInfo": { + "type": "object", + "properties": { + "is_eu": { "type": "boolean" }, - "managed": { - "type": "boolean" + "city": { + "type": "string" }, - "mentionable": { - "type": "boolean" + "region": { + "type": "string" }, - "name": { + "region_code": { "type": "string" }, - "permissions": { + "country_name": { "type": "string" }, - "position": { - "type": "integer" + "country_code": { + "type": "string" }, - "icon": { + "continent_name": { "type": "string" }, - "unicode_emoji": { + "continent_code": { "type": "string" }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false + "latitude": { + "type": "integer" }, - "flags": { + "longitude": { "type": "integer" }, - "colors": { - "$ref": "#/definitions/RoleColors" + "postal": { + "type": "string" }, - "id": { + "calling_code": { "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "colors", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RoleColors": { - "type": "object", - "properties": { - "primary_color": { - "type": "integer" }, - "secondary_color": { - "type": "integer" + "flag": { + "type": "string" }, - "tertiary_color": { - "type": "integer" + "emoji_flag": { + "type": "string" + }, + "emoji_unicode": { + "type": "string" } }, "additionalProperties": false, "required": [ - "primary_color" + "calling_code", + "city", + "continent_code", + "continent_name", + "country_code", + "country_name", + "emoji_flag", + "emoji_unicode", + "flag", + "is_eu", + "latitude", + "longitude", + "postal", + "region", + "region_code" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Template": { + "Relationship": { "type": "object", "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { + "from_id": { "type": "string" }, - "usage_count": { - "type": "integer" + "from": { + "$ref": "#/definitions/User" }, - "creator_id": { + "to_id": { "type": "string" }, - "creator": { + "to": { "$ref": "#/definitions/User" }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { + "nickname": { "type": "string" }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" + "type": { + "$ref": "#/definitions/RelationshipType" }, "id": { "type": "string" @@ -10444,60 +10110,88 @@ }, "additionalProperties": false, "required": [ - "code", - "created_at", - "creator", - "creator_id", + "from", + "from_id", "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" + "to", + "to_id", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Emoji": { + "RelationshipType": { + "type": "number", + "enum": [ + 4, + 3, + 2, + 1 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ConnectedAccount": { "type": "object", "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { + "external_id": { "type": "string" }, - "guild": { - "$ref": "#/definitions/Guild" - }, "user_id": { "type": "string" }, "user": { "$ref": "#/definitions/User" }, - "managed": { - "type": "boolean" + "friend_sync": { + "type": "boolean", + "default": false }, "name": { "type": "string" }, - "require_colons": { - "type": "boolean" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "revoked": { + "type": "boolean", + "default": false }, - "groups": { + "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" @@ -10505,337 +10199,304 @@ }, "additionalProperties": false, "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", + "external_id", "id", - "managed", "name", - "require_colons", - "roles", + "type", "user", "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Sticker": { + "UserSettings": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { + "index": { "type": "string" }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" + "afk_timeout": { + "type": "integer", + "default": 3600 }, - "pack_id": { - "type": "string" + "allow_accessibility_detection": { + "type": "boolean", + "default": true }, - "pack": { - "$ref": "#/definitions/StickerPack" + "animate_emoji": { + "type": "boolean", + "default": true }, - "guild_id": { - "type": "string" + "animate_stickers": { + "type": "integer", + "default": 0 }, - "guild": { - "$ref": "#/definitions/Guild" + "contact_sync_enabled": { + "type": "boolean", + "default": false }, - "user_id": { - "type": "string" + "convert_emoticons": { + "type": "boolean", + "default": false }, - "user": { - "$ref": "#/definitions/User" + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null }, - "type": { - "$ref": "#/definitions/StickerType" + "default_guilds_restricted": { + "type": "boolean", + "default": false }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" + "detect_platform_accounts": { + "type": "boolean", + "default": false }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" + "developer_mode": { + "type": "boolean", + "default": true }, - "description": { - "type": "string" + "disable_games_tab": { + "type": "boolean", + "default": true }, - "banner_asset_id": { - "type": "string" + "enable_tts_command": { + "type": "boolean", + "default": false }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } + "explicit_content_filter": { + "type": "integer", + "default": 0 }, - "cover_sticker_id": { - "type": "string" + "friend_discovery_flags": { + "type": "integer", + "default": 0 }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StickerType": { - "type": "number", - "enum": [ - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StickerFormatType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" + "gateway_connected": { + "type": "boolean", + "default": false }, - "temporary": { - "type": "boolean" + "gif_auto_play": { + "type": "boolean", + "default": false }, - "uses": { - "type": "integer" + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] }, - "max_uses": { - "type": "integer" + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] }, - "max_age": { - "type": "integer" + "inline_attachment_media": { + "type": "boolean", + "default": true }, - "created_at": { - "type": "string", - "format": "date-time" + "inline_embed_media": { + "type": "boolean", + "default": true }, - "expires_at": { + "locale": { "type": "string", - "format": "date-time" + "default": "en-US" }, - "guild_id": { - "type": "string" + "message_display_compact": { + "type": "boolean", + "default": false }, - "guild": { - "$ref": "#/definitions/Guild" + "native_phone_integration_enabled": { + "type": "boolean", + "default": true }, - "channel_id": { - "type": "string" + "render_embeds": { + "type": "boolean", + "default": true }, - "channel": { - "$ref": "#/definitions/Channel" + "render_reactions": { + "type": "boolean", + "default": true }, - "inviter_id": { - "type": "string" + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] }, - "inviter": { - "$ref": "#/definitions/User" + "show_current_game": { + "type": "boolean", + "default": true }, - "target_user_id": { - "type": "string" + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" }, - "target_user": { - "type": "string" + "stream_notifications_enabled": { + "type": "boolean", + "default": false }, - "target_user_type": { - "type": "integer" + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" }, - "vanity_url": { - "type": "boolean" + "timezone_offset": { + "type": "integer", + "default": 0 }, - "flags": { - "type": "integer" + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" + "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" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceState": { + "CustomStatus": { "type": "object", "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { + "emoji_id": { "type": "string" }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { + "emoji_name": { "type": "string" }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" + "expires_at": { + "type": "integer" }, - "token": { + "text": { "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": { + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { "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" + "all" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Webhook": { + "GuildFolder": { "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" + "color": { + "type": [ + "null", + "integer" + ] }, - "application_id": { - "type": "string" + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "application": { - "$ref": "#/definitions/Application" + "id": { + "type": [ + "null", + "integer" + ] }, + "name": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "guild_ids" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SecurityKey": { + "type": "object", + "properties": { "user_id": { "type": "string" }, "user": { "$ref": "#/definitions/User" }, - "source_guild_id": { + "key_id": { "type": "string" }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { + "public_key": { "type": "string" }, - "source_channel": { - "$ref": "#/definitions/Channel" + "counter": { + "type": "integer" }, - "url": { + "name": { "type": "string" }, "id": { @@ -10844,404 +10505,492 @@ }, "additionalProperties": false, "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", + "counter", "id", + "key_id", "name", - "source_channel", - "source_channel_id", - "type", - "url", + "public_key", "user", "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookType": { - "type": "number", - "enum": [ - 1, - 2, - 3 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Application": { + "AvatarDecorationData": { "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": { + "asset": { "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": { + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "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 + "expires_at": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "asset", + "expires_at", + "sku_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "DisplayNameStyle": { + "type": "object", + "properties": { + "font_id": { + "type": "integer" }, - "bot": { - "$ref": "#/definitions/User" + "effect_id": { + "type": "integer" }, - "tags": { + "colors": { "type": "array", "items": { - "type": "string" + "type": "integer" } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } + } + }, + "additionalProperties": false, + "required": [ + "colors", + "effect_id", + "font_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Collectibles": { + "type": "object", + "properties": { + "nameplate": { + "anyOf": [ + { + "$ref": "#/definitions/NameplateData" }, - "permissions": { - "type": "string" + { + "type": "null" } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "custom_install_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" + "nameplate" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Team": { + "NameplateData": { "type": "object", "properties": { - "icon": { + "asset": { "type": "string" }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", "type": "string" }, - "owner_user_id": { + "label": { "type": "string" }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { + "palette": { "type": "string" + }, + "expires_at": { + "type": [ + "null", + "integer" + ] } }, "additionalProperties": false, "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" + "asset", + "expires_at", + "label", + "palette", + "sku_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "TeamMember": { + "PrimaryGuild": { "type": "object", "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" + "identity_enabled": { + "type": [ + "null", + "boolean" + ] }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } + "identity_guild_id": { + "type": [ + "null", + "string" + ] }, - "role": { - "$ref": "#/definitions/TeamMemberRole" + "tag": { + "type": [ + "null", + "string" + ] }, - "team_id": { + "badge": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "badge", + "identity_enabled", + "identity_guild_id", + "tag" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ThreadMember": { + "type": "object", + "properties": { + "index": { "type": "string" }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { + "id": { "type": "string" }, - "user": { - "$ref": "#/definitions/User" + "channel": { + "$ref": "#/definitions/Channel" }, - "id": { + "member_idx": { "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "join_timestamp": { + "type": "string", + "format": "date-time" + }, + "muted": { + "type": "boolean" + }, + "mute_config": { + "$ref": "#/definitions/ThreadMemberMuteConfig" + }, + "flags": { + "$ref": "#/definitions/ThreadMemberFlags" } }, "additionalProperties": false, "required": [ + "channel", + "flags", "id", - "membership_state", - "permissions", - "role", - "team", - "team_id", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TeamMemberState": { - "type": "number", - "enum": [ - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TeamMemberRole": { - "type": "string", - "enum": [ - "admin", - "developer", - "read_only" + "index", + "join_timestamp", + "member", + "member_idx", + "muted" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWelcomeScreen": { + "Member": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "index": { + "type": "string" }, - "description": { + "id": { "type": "string" }, - "welcome_channels": { + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { "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" - ] + "$ref": "#/definitions/Role" } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] }, - "message_notifications": { + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { "type": "integer" }, - "mobile_push": { + "deaf": { "type": "boolean" }, - "mute_config": { + "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": { "anyOf": [ { - "$ref": "#/definitions/MuteConfig" + "type": "string", + "format": "date-time" }, { "type": "null" } ] }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" + "avatar_decoration_data": { + "$ref": "#/definitions/AvatarDecorationData" }, - "version": { - "type": "integer" + "display_name_styles": { + "$ref": "#/definitions/DisplayNameStyle" }, - "guild_id": { - "type": [ - "null", - "string" - ] + "collectibles": { + "$ref": "#/definitions/Collectibles" }, "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { "type": "integer", - "const": 0 + "default": 0 } }, "additionalProperties": false, "required": [ - "channel_overrides", + "banner", + "bio", + "communication_disabled_until", + "deaf", "flags", + "guild", "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" + }, + "colors": { + "$ref": "#/definitions/RoleColors" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "colors", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RoleColors": { + "type": "object", + "properties": { + "primary_color": { + "type": "integer" + }, + "secondary_color": { + "type": "integer" + }, + "tertiary_color": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "primary_color" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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": "integer", + "const": 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" ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -11340,128 +11089,85 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelPermissionOverwriteType": { - "type": "number", - "enum": [ - 0, - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReadState": { + "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" }, - "user_id": { + "inviter_id": { "type": "string" }, - "user": { + "inviter": { "$ref": "#/definitions/User" }, - "last_message_id": { - "type": "string" - }, - "last_acked_id": { + "target_user_id": { "type": "string" }, - "notifications_cursor": { + "target_user": { "type": "string" }, - "mention_count": { - "type": "integer" - }, - "badge_count": { + "target_user_type": { "type": "integer" }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "read_state_type": { - "$ref": "#/definitions/ReadStateType" + "vanity_url": { + "type": "boolean" }, "flags": { - "$ref": "#/definitions/ReadStateFlags" - }, - "id": { - "type": "string" + "type": "integer" } }, "additionalProperties": false, "required": [ - "badge_count", "channel", "channel_id", + "code", + "created_at", "flags", - "id", - "mention_count", - "notifications_cursor", - "read_state_type", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReadStateType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReadStateFlags": { - "type": "number", - "enum": [ - 1, - 2, - 4 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ThreadMetadata": { - "type": "object", - "properties": { - "archived": { - "type": "boolean" - }, - "auto_archive_duration": { - "type": "integer" - }, - "archive_timestamp": { - "type": "string" - }, - "locked": { - "type": "boolean" - }, - "invitable": { - "type": "boolean" - }, - "create_timestamp": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "archive_timestamp", - "archived", - "auto_archive_duration", - "create_timestamp", - "locked" + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Tag": { + "Message": { "type": "object", "properties": { "channel_id": { @@ -11470,716 +11176,584 @@ "channel": { "$ref": "#/definitions/Channel" }, - "name": { + "thread_id": { "type": "string" }, - "moderated": { - "type": "boolean", - "default": false + "thread": { + "$ref": "#/definitions/Channel" }, - "emoji_id": { + "guild_id": { "type": "string" }, - "emoji_name": { + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { "type": "string" }, - "id": { + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "moderated", - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Attachment": { - "type": "object", - "properties": { - "filename": { + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { "type": "string" }, - "size": { - "type": "integer" + "webhook": { + "$ref": "#/definitions/Webhook" }, - "url": { + "application_id": { "type": "string" }, - "proxy_url": { + "application": { + "$ref": "#/definitions/Application" + }, + "content": { "type": "string" }, - "height": { - "type": "integer" + "timestamp": { + "type": "string", + "format": "date-time" }, - "width": { - "type": "integer" + "edited_timestamp": { + "type": "string", + "format": "date-time" }, - "content_type": { - "type": "string" + "tts": { + "type": "boolean" }, - "message_id": { - "type": "string" + "mention_everyone": { + "type": "boolean" }, - "message": { - "$ref": "#/definitions/Message" + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } }, - "description": { - "type": "string" + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } }, - "url": { + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { "type": "string" }, - "timestamp": { - "type": "string", - "format": "date-time" + "pinned_at": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] }, - "color": { - "type": "integer" + "pinned": { + "type": "boolean" }, - "footer": { + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { "type": "object", "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" + "type": { + "type": "integer" }, - "proxy_icon_url": { + "party_id": { "type": "string" } }, "additionalProperties": false, "required": [ - "text" + "party_id", + "type" ] }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" + "flags": { + "type": "integer" }, - "provider": { + "message_reference": { "type": "object", "properties": { - "name": { + "message_id": { "type": "string" }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { + "channel_id": { "type": "string" }, - "icon_url": { + "guild_id": { "type": "string" }, - "proxy_icon_url": { - "type": "string" + "type": { + "type": "integer" } }, "additionalProperties": false }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } + "referenced_message": { + "anyOf": [ + { + "$ref": "#/definitions/Message" }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + { + "type": "null" + } + ] }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PartialEmoji": { - "anyOf": [ - { + "interaction": { "type": "object", "properties": { "id": { "type": "string" }, + "type": { + "$ref": "#/definitions/InteractionType" + }, "name": { "type": "string" - }, - "animated": { - "type": "boolean" } }, "additionalProperties": false, "required": [ - "name" + "id", + "name", + "type" ] }, - { + "interaction_metadata": { "type": "object", "properties": { "id": { "type": "string" }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "user_id": { + "type": "string" + }, + "authorizing_integration_owners": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, "name": { "type": "string" }, - "animated": { - "type": "boolean" + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" } }, "additionalProperties": false, "required": [ - "id" + "authorizing_integration_owners", + "command_type", + "id", + "name", + "type", + "user_id" ] - } - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55, - 56, - 57, - 58, - 59, - 60, - 61, - 62, - 63, - 255 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationCommandType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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" - } - ] + "$ref": "#/definitions/BaseMessageComponents" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "message_snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageSnapshot" } + }, + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "components", + "channel", + "embeds", + "flags", + "id", + "mention_channels", + "mention_roles", + "mentions", + "message_snapshots", + "pinned", + "reactions", + "timestamp", "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageComponentType.ActionRow": { - "type": "number", - "const": 1, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ButtonComponent": { + "Webhook": { "type": "object", "properties": { "type": { - "$ref": "#/definitions/MessageComponentType.Button" + "$ref": "#/definitions/WebhookType" }, - "style": { - "$ref": "#/definitions/ButtonStyle" + "name": { + "type": "string" }, - "label": { + "avatar": { "type": "string" }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] + "token": { + "type": "string" }, - "custom_id": { + "guild_id": { "type": "string" }, - "sku_id": { + "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" }, - "disabled": { - "type": "boolean" + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "style", - "type" + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageComponentType.Button": { - "type": "number", - "const": 2, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ButtonStyle": { + "WebhookType": { "type": "number", "enum": [ 1, 2, - 3, - 4, - 5, - 6 + 3 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "SelectMenuComponent": { + "Application": { "type": "object", "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { + "name": { "type": "string" }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { + "icon": { "type": "string" }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } + "description": { + "type": "string" }, - "min_values": { - "type": "integer" + "summary": { + "type": "string", + "default": "" }, - "max_values": { - "type": "integer" + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" + "hook": { + "type": "boolean", + "default": true }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" + "bot_public": { + "type": "boolean", + "default": true }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } + "bot_require_code_grant": { + "type": "boolean", + "default": false }, - "custom_id": { + "verify_key": { "type": "string" }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } + "owner": { + "$ref": "#/definitions/User" }, - "placeholder": { - "type": "string" + "flags": { + "type": "integer", + "default": 0 }, - "default_values": { + "redirect_uris": { "type": "array", "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } + "type": "string" + }, + "default": [] }, - "min_values": { - "type": "integer" + "rpc_application_state": { + "type": "integer", + "default": 0 }, - "max_values": { - "type": "integer" + "store_application_state": { + "type": "integer", + "default": 1 }, - "disabled": { - "type": "boolean" + "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" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "custom_install_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "custom_id", - "options", - "type" + "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" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageComponentType.StringSelect": { - "type": "number", - "const": 3, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SelectMenuOption": { + "Team": { "type": "object", "properties": { - "label": { + "icon": { "type": "string" }, - "value": { + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { "type": "string" }, - "description": { + "owner_user_id": { "type": "string" }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] + "owner_user": { + "$ref": "#/definitions/User" }, - "default": { - "type": "boolean" + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "label", - "value" + "id", + "members", + "name", + "owner_user", + "owner_user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "TextInputComponent": { + "TeamMember": { "type": "object", "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" + "membership_state": { + "$ref": "#/definitions/TeamMemberState" }, - "custom_id": { - "type": "string" + "permissions": { + "type": "array", + "items": { + "type": "string" + } }, - "style": { - "$ref": "#/definitions/TextInputStyle" + "role": { + "$ref": "#/definitions/TeamMemberRole" }, - "label": { + "team_id": { "type": "string" }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" + "team": { + "$ref": "#/definitions/Team" }, - "value": { + "user_id": { "type": "string" }, - "placeholder": { + "user": { + "$ref": "#/definitions/User" + }, + "id": { "type": "string" } }, "additionalProperties": false, "required": [ - "custom_id", - "label", - "style", - "type" + "id", + "membership_state", + "permissions", + "role", + "team", + "team_id", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageComponentType.TextInput": { - "type": "number", - "const": 4, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TextInputStyle": { + "TeamMemberState": { "type": "number", "enum": [ 1, @@ -12187,254 +11761,369 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Poll": { + "TeamMemberRole": { + "type": "string", + "enum": [ + "admin", + "developer", + "read_only" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Sticker": { "type": "object", "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } + "name": { + "type": "string" }, - "expiry": { - "type": "string", - "format": "date-time" + "description": { + "type": "string" }, - "allow_multiselect": { + "available": { "type": "boolean" }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { + "tags": { "type": "string" }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { + "pack_id": { "type": "string" }, - "poll_media": { - "$ref": "#/definitions/PollMedia" + "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": [ - "poll_media" + "format_type", + "id", + "name", + "pack", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PollResult": { + "StickerPack": { "type": "object", "properties": { - "is_finalized": { - "type": "boolean" + "name": { + "type": "string" }, - "answer_counts": { + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { "type": "array", "items": { - "$ref": "#/definitions/PollAnswerCount" + "$ref": "#/definitions/Sticker" } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "answer_counts", - "is_finalized" + "id", + "name", + "stickers" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PollAnswerCount": { + "StickerType": { + "type": "number", + "enum": [ + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StickerFormatType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Attachment": { "type": "object", "properties": { - "id": { + "filename": { "type": "string" }, - "count": { + "size": { "type": "integer" }, - "me_voted": { - "type": "boolean" + "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": [ - "count", + "filename", "id", - "me_voted" + "message", + "message_id", + "proxy_url", + "size", + "url" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageSnapshot": { + "Embed": { "type": "object", "properties": { - "message": { + "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": { - "content": { + "text": { "type": "string" }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] + "icon_url": { + "type": "string" }, - "mentions": { - "type": "array", - "items": { - "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" }, - "mention_roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "flags": { - "type": "integer" + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } + "url": { + "type": "string" }, - "resolved": { - "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } + "icon_url": { + "type": "string" }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } + "proxy_icon_url": { + "type": "string" } }, - "additionalProperties": false, - "required": [ - "content", - "embeds", - "flags", - "mention_roles", - "mentions", - "timestamp", - "type" - ] + "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, - "required": [ - "message" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageComponent": { + "EmbedImage": { "type": "object", "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType" + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "type" + "count", + "emoji", + "user_ids" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageComponentType": { + "PartialEmoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageType": { "type": "number", "enum": [ + 0, 1, 2, 3, @@ -12449,6 +12138,7 @@ 12, 13, 14, + 15, 16, 17, 18, @@ -12456,1496 +12146,2284 @@ 20, 21, 22, - 23 + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 255 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionGuild": { + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BaseMessageComponents": { + "anyOf": [ + { + "$ref": "#/definitions/SectionComponent" + }, + { + "$ref": "#/definitions/TextDisplayComponent" + }, + { + "$ref": "#/definitions/MediaGalleryComponent" + }, + { + "$ref": "#/definitions/FileComponent" + }, + { + "$ref": "#/definitions/SeperatorComponent" + }, + { + "$ref": "#/definitions/ActionRowComponent" + }, + { + "$ref": "#/definitions/ContainerComponent" + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SectionComponent": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" + "type": { + "$ref": "#/definitions/MessageComponentType.Section" }, - "features": { + "components": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/TextDisplayComponent" } }, - "locale": { - "type": "string" - } - }, + "accessory": { + "anyOf": [ + { + "$ref": "#/definitions/ThumbnailComponent" + }, + { + "$ref": "#/definitions/ButtonComponent" + } + ] + }, + "id": { + "type": "integer" + } + }, "additionalProperties": false, "required": [ - "features", - "id", - "locale" + "accessory", + "components", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PublicMember": { - "additionalProperties": false, + "MessageComponentType.Section": { + "type": "number", + "const": 9, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TextDisplayComponent": { "type": "object", "properties": { - "id": { - "type": "string" + "type": { + "$ref": "#/definitions/MessageComponentType.TextDisplay" }, - "guild_id": { + "content": { "type": "string" }, - "flags": { + "id": { "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "content", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.TextDisplay": { + "type": "number", + "const": 10, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ThumbnailComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Thumbnail" }, - "nick": { + "description": { "type": "string" }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" + "media": { + "$ref": "#/definitions/UnfurledMediaItem" }, - "mute": { + "spoiler": { "type": "boolean" }, - "premium_since": { + "id": { "type": "integer" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } } }, + "additionalProperties": false, "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" + "media", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PublicUser": { + "MessageComponentType.Thumbnail": { + "type": "number", + "const": 11, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UnfurledMediaItem": { "type": "object", "properties": { "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { "type": "string" }, - "username": { + "url": { "type": "string" }, - "discriminator": { + "proxy_url": { "type": "string" }, - "public_flags": { + "height": { "type": "integer" }, - "accent_color": { + "width": { "type": "integer" }, - "bot": { - "type": "boolean" - }, - "premium_type": { + "flags": { "type": "integer" }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } + "content_type": { + "type": "string" }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" + "content_scan_metadata": {}, + "placeholder_version": { + "type": "integer" }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" + "placeholder": { + "type": "string" }, - "collectibles": { - "$ref": "#/definitions/Collectibles" + "loading_state": { + "type": "integer" }, - "primary_guild": { - "$ref": "#/definitions/PrimaryGuild" + "attachment_id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "bio", - "bot", - "discriminator", - "id", - "premium_since", - "premium_type", - "public_flags", - "username" + "url" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GameActivity": { + "ButtonComponent": { "type": "object", "properties": { - "activity_level": { - "type": "integer" + "type": { + "$ref": "#/definitions/MessageComponentType.Button" }, - "activity_score": { + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "id": { "type": "integer" } }, "additionalProperties": false, "required": [ - "activity_level", - "activity_score" + "style", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildBadgeType": { + "MessageComponentType.Button": { + "type": "number", + "const": 2, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ButtonStyle": { "type": "number", "enum": [ - 0, 1, 2, 3, 4, 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30 + 6 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildTrait": { + "MediaGalleryComponent": { "type": "object", "properties": { - "emoji_id": { - "type": [ - "null", - "string" - ] - }, - "emoji_name": { - "type": [ - "null", - "string" - ] - }, - "emoji_animated": { - "type": "boolean" + "type": { + "$ref": "#/definitions/MessageComponentType.MediaGallery" }, - "label": { - "type": "string" + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "media": { + "$ref": "#/definitions/UnfurledMediaItem" + }, + "description": { + "type": "string" + }, + "spoiler": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "media" + ] + } }, - "position": { + "id": { "type": "integer" } }, "additionalProperties": false, "required": [ - "emoji_animated", - "emoji_id", - "emoji_name", - "label", - "position" + "items", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVisibilityLevel": { + "MessageComponentType.MediaGallery": { "type": "number", - "enum": [ - 1, - 2, - 3 - ], + "const": 12, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceUserDeleteSchemaContent": { + "FileComponent": { "type": "object", "properties": { - "reason": { - "type": "string" + "type": { + "$ref": "#/definitions/MessageComponentType.File" }, - "persistInstanceBan": { + "file": { + "$ref": "#/definitions/UnfurledMediaItem" + }, + "spoiler": { "type": "boolean" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, + "required": [ + "file", + "name", + "size", + "spoiler", + "type" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PartialUser": { + "MessageComponentType.File": { + "type": "number", + "const": 13, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SeperatorComponent": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "global_name": { - "type": [ - "null", - "string" - ] - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "avatar_decoration_data": { - "anyOf": [ - { - "$ref": "#/definitions/AvatarDecorationData" - }, - { - "type": "null" - } - ] - }, - "collectibles": { - "anyOf": [ - { - "$ref": "#/definitions/Collectibles" - }, - { - "type": "null" - } - ] - }, - "display_name_styles": { - "anyOf": [ - { - "$ref": "#/definitions/DisplayNameStyle" - }, - { - "type": "null" - } - ] - }, - "primary_guild": { - "anyOf": [ - { - "$ref": "#/definitions/PrimaryGuild" - }, - { - "type": "null" - } - ] - }, - "bot": { - "type": "boolean" + "type": { + "$ref": "#/definitions/MessageComponentType.Separator" }, - "system": { + "divider": { "type": "boolean" }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "accent_color": { - "type": [ - "null", - "integer" - ] + "spacing": { + "enum": [ + 1, + 2 + ], + "type": "number" }, - "public_flags": { + "id": { "type": "integer" } }, "additionalProperties": false, "required": [ - "avatar", - "discriminator", - "id", - "username" + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Classification": { + "MessageComponentType.Separator": { + "type": "number", + "const": 14, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ActionRowComponent": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "classification_type": { - "$ref": "#/definitions/ClassificationType" - }, - "description": { - "type": "string" - }, - "explainer_link": { - "type": "string" + "type": { + "$ref": "#/definitions/MessageComponentType.ActionRow" }, - "actions": { + "components": { "type": "array", "items": { - "$ref": "#/definitions/ClassificationAction" + "anyOf": [ + { + "$ref": "#/definitions/ButtonComponent" + }, + { + "$ref": "#/definitions/SelectMenuComponent" + }, + { + "$ref": "#/definitions/StringSelectMenuComponent" + }, + { + "$ref": "#/definitions/TextInputComponent" + } + ] } }, - "max_expiration_time": { - "type": "string" - }, - "flagged_content": { - "type": "array", - "items": {} - }, - "appeal_status": { - "$ref": "#/definitions/AppealStatus" - }, - "is_coppa": { - "type": "boolean" - }, - "is_spam": { - "type": "boolean" - }, - "appeal_ingestion_type": { - "$ref": "#/definitions/AppealIngestionType" + "id": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "actions", - "appeal_ingestion_type", - "appeal_status", - "classification_type", - "description", - "explainer_link", - "flagged_content", - "id", - "is_coppa", - "is_spam", - "max_expiration_time" + "components", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ClassificationType": { + "MessageComponentType.ActionRow": { "type": "number", - "enum": [ - 1, - 100, - 200, - 210, - 220, - 230, - 240, - 250, - 280, - 290, - 310, - 320, - 390, - 600, - 650, - 711, - 720, - 3010, - 3030, - 4000, - 4010, - 4130, - 4140, - 5010, - 5090, - 5305, - 5411, - 5440, - 5485 - ], + "const": 1, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ClassificationAction": { + "SelectMenuComponent": { "type": "object", "properties": { - "id": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { "type": "string" }, - "action_type": { - "$ref": "#/definitions/ClassificationActionType" + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } }, - "descriptions": { + "placeholder": { + "type": "string" + }, + "default_values": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/SelectMenuDefaultOption" } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "action_type", - "descriptions", - "id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ClassificationActionType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 20, - 22 + "custom_id", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AppealStatus": { + "SelectMenuDefaultOption": { "type": "object", "properties": { - "status": { - "$ref": "#/definitions/AppealStatusValue" + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" } }, "additionalProperties": false, "required": [ - "status" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AppealStatusValue": { - "type": "number", - "enum": [ - 1, - 2, - 3 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AppealIngestionType": { - "type": "number", - "enum": [ - 0, - 1, - 2 + "id", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildClassification": { + "StringSelectMenuComponent": { "type": "object", "properties": { - "guild_metadata": { - "$ref": "#/definitions/GuildMetadata" - }, - "id": { - "type": "string" - }, - "classification_type": { - "$ref": "#/definitions/ClassificationType" + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" }, - "description": { - "type": "string" + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } }, - "explainer_link": { + "custom_id": { "type": "string" }, - "actions": { + "channel_types": { "type": "array", "items": { - "$ref": "#/definitions/ClassificationAction" + "type": "integer" } }, - "max_expiration_time": { + "placeholder": { "type": "string" }, - "flagged_content": { + "default_values": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } }, - "appeal_status": { - "$ref": "#/definitions/AppealStatus" + "min_values": { + "type": "integer" }, - "is_coppa": { - "type": "boolean" + "max_values": { + "type": "integer" }, - "is_spam": { + "disabled": { "type": "boolean" }, - "appeal_ingestion_type": { - "$ref": "#/definitions/AppealIngestionType" + "id": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "actions", - "appeal_ingestion_type", - "appeal_status", - "classification_type", - "description", - "explainer_link", - "flagged_content", - "guild_metadata", - "id", - "is_coppa", - "is_spam", - "max_expiration_time" + "custom_id", + "options", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildMetadata": { + "MessageComponentType.StringSelect": { + "type": "number", + "const": 3, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SelectMenuOption": { "type": "object", "properties": { - "name": { + "label": { "type": "string" }, - "icon": { + "value": { "type": "string" }, - "member_type": { - "$ref": "#/definitions/GuildMemberType" - } - }, - "additionalProperties": false, - "required": [ - "member_type", - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildMemberType": { - "type": "number", - "enum": [ - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AccountStandingState": { - "type": "number", - "enum": [ - 100, - 200, - 300, - 400, - 500 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AppealEligibility": { - "type": "number", - "enum": [ - 1, - 2, - 3 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CollectiblesCategoryItem": { - "type": "object", - "properties": { - "sku_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "summary": { - "type": "string" - }, - "store_listing_id": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "unpublished_at": { - "type": [ - "null", - "string" - ] - }, - "styles": { - "$ref": "#/definitions/CollectiblesCategoryStyle" - }, - "logo": { + "description": { "type": "string" }, - "hero_ranking": { + "emoji": { "anyOf": [ { - "type": "array", - "items": { - "type": "string" - } + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] }, { - "type": "null" + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] } ] }, - "mobile_bg": { - "type": [ - "null", - "string" - ] - }, - "pdp_bg": { - "type": [ - "null", - "string" - ] + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" }, - "success_modal_bg": { - "type": [ - "null", - "string" - ] + "custom_id": { + "type": "string" }, - "mobile_banner": { - "type": [ - "null", - "string" - ] + "style": { + "$ref": "#/definitions/TextInputStyle" }, - "featured_block": { - "type": [ - "null", - "string" - ] + "label": { + "type": "string" }, - "hero_banner": { - "type": [ - "null", - "string" - ] + "min_length": { + "type": "integer" }, - "wide_banner": { - "type": [ - "null", - "string" - ] + "max_length": { + "type": "integer" }, - "hero_logo": { - "type": [ - "null", - "string" - ] + "required": { + "type": "boolean" }, - "products": { - "type": "array", - "items": { - "$ref": "#/definitions/CollectiblesCategoryProductItem" - } + "value": { + "type": "string" }, - "banner_asset": { - "$ref": "#/definitions/StaticAnimatedAsset" + "placeholder": { + "type": "string" }, - "hero_banner_asset": { - "$ref": "#/definitions/StaticAnimatedAsset" + "id": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "banner", - "featured_block", - "hero_banner", - "hero_logo", - "hero_ranking", - "logo", - "mobile_banner", - "mobile_bg", - "name", - "pdp_bg", - "products", - "sku_id", - "store_listing_id", - "styles", - "success_modal_bg", - "summary", - "unpublished_at", - "wide_banner" + "custom_id", + "label", + "style", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CollectiblesCategoryStyle": { + "MessageComponentType.TextInput": { + "type": "number", + "const": 4, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TextInputStyle": { + "type": "number", + "enum": [ + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ContainerComponent": { "type": "object", "properties": { - "background_colors": { - "type": "array", - "items": { - "type": "integer" - } + "type": { + "$ref": "#/definitions/MessageComponentType.Container" }, - "button_colors": { + "components": { "type": "array", "items": { - "type": "integer" + "anyOf": [ + { + "$ref": "#/definitions/SectionComponent" + }, + { + "$ref": "#/definitions/TextDisplayComponent" + }, + { + "$ref": "#/definitions/MediaGalleryComponent" + }, + { + "$ref": "#/definitions/FileComponent" + }, + { + "$ref": "#/definitions/SeperatorComponent" + }, + { + "$ref": "#/definitions/ActionRowComponent" + } + ] } }, - "confetti_colors": { - "type": "array", - "items": { - "type": "integer" - } + "accent_color": { + "type": "integer" + }, + "spoiler": { + "type": "boolean" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "background_colors", - "button_colors", - "confetti_colors" + "components", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CollectiblesCategoryProductItem": { + "MessageComponentType.Container": { + "type": "number", + "const": 17, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Poll": { "type": "object", "properties": { - "sku_id": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "name": { - "type": "string" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "summary": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "store_listing_id": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "banner": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { "type": "string" }, - "unpublished_at": { - "type": [ - "null", - "string" - ] - }, - "styles": { - "$ref": "#/definitions/CollectiblesCategoryStyle" - }, - "prices": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "country_prices": { - "$ref": "#/definitions/CountryPrice" - } + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] }, - "additionalProperties": false, - "required": [ - "country_prices" - ] - } - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/ProductItem" - } - }, - "type": { - "type": "integer" - }, - "premium_type": { - "type": "integer" - }, - "category_sku_id": { - "type": "string" - }, - "google_sku_ids": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "variants": { - "type": "array", - "items": { - "$ref": "#/definitions/ProductItemVariant" - } + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] } }, "additionalProperties": false, - "required": [ - "banner", - "category_sku_id", - "google_sku_ids", - "items", - "name", - "premium_type", - "prices", - "sku_id", - "store_listing_id", - "styles", - "summary", - "type", - "unpublished_at" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CountryPrice": { + "PollAnswer": { "type": "object", "properties": { - "country_code": { + "answer_id": { "type": "string" }, - "prices": { - "type": "array", - "items": { - "$ref": "#/definitions/PriceEntry" - } + "poll_media": { + "$ref": "#/definitions/PollMedia" } }, "additionalProperties": false, "required": [ - "country_code", - "prices" + "poll_media" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PriceEntry": { + "PollResult": { "type": "object", "properties": { - "amount": { - "type": "integer" - }, - "currency": { - "type": "string" + "is_finalized": { + "type": "boolean" }, - "exponent": { - "type": "integer" + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } } }, "additionalProperties": false, "required": [ - "amount", - "currency", - "exponent" + "answer_counts", + "is_finalized" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ProductItem": { + "PollAnswerCount": { "type": "object", "properties": { - "type": { - "type": "integer" - }, "id": { "type": "string" }, - "sku_id": { - "type": "string" - }, - "asset": { - "type": "string" - }, - "label": { - "type": "string" + "count": { + "type": "integer" }, - "palette": { - "type": "string" + "me_voted": { + "type": "boolean" } }, "additionalProperties": false, "required": [ + "count", "id", - "sku_id", - "type" + "me_voted" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ProductItemVariant": { + "MessageSnapshot": { "type": "object", "properties": { - "sku_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "name_localizations": { - "type": "null" - }, - "summary": { - "type": "string" - }, - "summary_localizations": { - "type": "null" - }, - "store_listing_id": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "unpublished_at": { - "type": [ - "null", - "string" - ] - }, - "styles": { - "$ref": "#/definitions/CollectiblesCategoryStyle" - }, - "prices": { + "message": { "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "country_prices": { - "$ref": "#/definitions/CountryPrice" + "properties": { + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "mentions": { + "type": "array", + "items": { + "type": "string" } }, - "additionalProperties": false, - "required": [ - "country_prices" - ] - } - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/ProductItem" - } - }, - "type": { - "type": "integer" - }, - "premium_type": { - "type": "integer" - }, - "category_sku_id": { - "type": "string" - }, - "google_sku_ids": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "base_variant_sku_id": { - "type": "string" - }, - "base_variant_name": { - "type": "string" - }, - "variant_label": { - "type": "string" - }, - "variant_value": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "base_variant_name", - "base_variant_sku_id", - "category_sku_id", - "items", - "name", - "name_localizations", - "premium_type", - "prices", - "sku_id", - "store_listing_id", - "summary", - "summary_localizations", - "type", - "variant_label", - "variant_value" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StaticAnimatedAsset": { - "type": "object", - "properties": { - "animated": { - "type": [ - "null", - "string" + "mention_roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "resolved": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + } + }, + "additionalProperties": false, + "required": [ + "content", + "embeds", + "flags", + "mention_roles", + "mentions", + "timestamp", + "type" ] - }, - "static": { - "type": "string" } }, "additionalProperties": false, "required": [ - "animated", - "static" + "message" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CollectiblesMarketingItem": { + "MessageComponent": { "type": "object", "properties": { "type": { - "type": "integer" + "$ref": "#/definitions/MessageComponentType" }, - "version": { + "id": { "type": "integer" - }, - "title": { - "type": "string" - }, - "body": { - "type": "string" } }, "additionalProperties": false, "required": [ - "body", - "title", - "type", - "version" + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AnyShopBlock": { - "anyOf": [ - { - "$ref": "#/definitions/ItemRowShopBlock" - }, - { - "$ref": "#/definitions/BundleTileRowShopBlock" - }, - { - "$ref": "#/definitions/ItemCollectionShopBlock" - } + "MessageComponentType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ItemRowShopBlock": { + "VoiceState": { "type": "object", "properties": { - "type": { - "type": "integer", - "const": 0 - }, - "category_sku_id": { + "guild_id": { "type": "string" }, - "name": { - "type": "string" + "guild": { + "$ref": "#/definitions/Guild" }, - "category_store_listing_id": { + "channel_id": { "type": "string" }, - "banner_asset": { - "$ref": "#/definitions/StaticAnimatedAsset" + "channel": { + "$ref": "#/definitions/Channel" }, - "logo_url": { + "user_id": { "type": "string" }, - "unpublished_at": { - "type": [ - "null", - "string" - ] + "user": { + "$ref": "#/definitions/User" }, - "summary": { + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { "type": "string" }, - "ranked_sku_ids": { - "type": "array", - "items": { - "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": [ - "banner_asset", - "category_sku_id", - "category_store_listing_id", - "logo_url", - "name", - "ranked_sku_ids", - "summary", - "type", - "unpublished_at" + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "BundleTileRowShopBlock": { + "ReadState": { "type": "object", "properties": { - "type": { - "type": "integer", - "const": 1 + "channel_id": { + "type": "string" }, - "subblocks": { - "type": "array", - "items": { - "$ref": "#/definitions/ShopBlockSubBlock" - } + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "last_acked_id": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "mention_count": { + "type": "integer" + }, + "badge_count": { + "type": "integer" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "read_state_type": { + "$ref": "#/definitions/ReadStateType" + }, + "flags": { + "$ref": "#/definitions/ReadStateFlags" + }, + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "subblocks", - "type" + "badge_count", + "channel", + "channel_id", + "flags", + "id", + "mention_count", + "notifications_cursor", + "read_state_type", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ShopBlockSubBlock": { + "ReadStateType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ReadStateFlags": { + "type": "number", + "enum": [ + 1, + 2, + 4 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ThreadMetadata": { "type": "object", "properties": { - "type": { + "archived": { + "type": "boolean" + }, + "auto_archive_duration": { "type": "integer" }, - "category_store_listing_id": { + "archive_timestamp": { + "type": "string" + }, + "locked": { + "type": "boolean" + }, + "invitable": { + "type": "boolean" + }, + "create_timestamp": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "archive_timestamp", + "archived", + "auto_archive_duration", + "create_timestamp", + "locked" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Tag": { + "type": "object", + "properties": { + "channel_id": { "type": "string" }, + "channel": { + "$ref": "#/definitions/Channel" + }, "name": { "type": "string" }, - "unpublished_at": { - "type": [ - "null", - "string" - ] + "moderated": { + "type": "boolean", + "default": false }, - "banner_url": { + "emoji_id": { "type": "string" }, - "body_text": { - "type": [ - "null", - "string" - ] + "emoji_name": { + "type": "string" }, - "banner_text_color": { - "type": [ - "null", - "integer" - ] + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "banner_text_color", - "banner_url", - "body_text", - "category_store_listing_id", - "name", - "type", - "unpublished_at" + "channel", + "channel_id", + "id", + "moderated", + "name" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ItemCollectionShopBlock": { + "Ban": { "type": "object", "properties": { - "type": { - "type": "integer", - "const": 2 + "user_id": { + "type": "string" }, - "ranked_sku_ids": { - "type": "array", - "items": { - "type": "string" - } + "user": { + "$ref": "#/definitions/User" }, - "sorted_sku_ids": { - "type": "object", - "properties": { - "recommended": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "popular": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "popular", - "recommended" - ] + "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": [ - "ranked_sku_ids", - "sorted_sku_ids", - "type" + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PartialMessage": { + "description": "https://docs.discord.food/resources/message#partial-message-structure", + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "content": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/PartialUser" + }, + "flags": { + "type": "integer" + }, + "application_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "author", + "channel_id", + "content", + "id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PartialUser": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ] + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "avatar_decoration_data": { + "anyOf": [ + { + "$ref": "#/definitions/AvatarDecorationData" + }, + { + "type": "null" + } + ] + }, + "collectibles": { + "anyOf": [ + { + "$ref": "#/definitions/Collectibles" + }, + { + "type": "null" + } + ] + }, + "display_name_styles": { + "anyOf": [ + { + "$ref": "#/definitions/DisplayNameStyle" + }, + { + "type": "null" + } + ] + }, + "primary_guild": { + "anyOf": [ + { + "$ref": "#/definitions/PrimaryGuild" + }, + { + "type": "null" + } + ] + }, + "bot": { + "type": "boolean" + }, + "system": { + "type": "boolean" + }, + "banner": { + "type": [ + "null", + "string" + ] + }, + "accent_color": { + "type": [ + "null", + "integer" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "HubGuild": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmojiGuild": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "premium_tier": { + "type": "integer" + }, + "premium_subscription_count": { + "type": "integer" + }, + "approximate_member_count": { + "type": "integer" + }, + "approximate_presence_count": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "emojis", + "features", + "id", + "name", + "premium_tier" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmojiApplication": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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/BaseMessageComponents" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "hit": { + "type": "boolean", + "const": true + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "banner": { + "type": "string" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "avatar_decoration_data": { + "$ref": "#/definitions/AvatarDecorationData" + }, + "display_name_styles": { + "$ref": "#/definitions/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/definitions/Collectibles" + }, + "primary_guild": { + "$ref": "#/definitions/PrimaryGuild" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "discriminator", + "id", + "premium_since", + "premium_type", + "public_flags", + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildVanityUrl": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "code", + "uses" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildVanityUrlNoInvite": { + "type": "object", + "properties": { + "code": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "code" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "HubDirectoryEntry": { + "type": "object", + "properties": { + "author_id": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "description": { + "type": "string" + }, + "directory_channel_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "primary_category_id": { + "type": "integer" + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "author_id", + "created_at", + "description", + "directory_channel_id", + "guild", + "primary_category_id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RefreshedUrl": { + "type": "object", + "properties": { + "original": { + "type": "string" + }, + "refreshed": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "original", + "refreshed" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "JsonValue": { + "description": "Represents any possible JSON value:\n- number\n- string\n- boolean\n- null\n- object (with any JSON value as property)\n- array (with any JSON value as element)", + "anyOf": [ + { + "description": "Represents a JSON object.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/JsonValue" + } + }, + { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "$ref": "#/definitions/JsonValue" + } + }, + "properties": { + "length": { + "type": "integer" + }, + "__@unscopables@698": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "type": "boolean" + } + }, + "properties": { + "length": { + "type": "boolean" + }, + "toString": { + "type": "boolean" + }, + "toLocaleString": { + "type": "boolean" + }, + "pop": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "concat": { + "type": "boolean" + }, + "join": { + "type": "boolean" + }, + "reverse": { + "type": "boolean" + }, + "shift": { + "type": "boolean" + }, + "slice": { + "type": "boolean" + }, + "sort": { + "type": "boolean" + }, + "splice": { + "type": "boolean" + }, + "unshift": { + "type": "boolean" + }, + "indexOf": { + "type": "boolean" + }, + "lastIndexOf": { + "type": "boolean" + }, + "every": { + "type": "boolean" + }, + "some": { + "type": "boolean" + }, + "forEach": { + "type": "boolean" + }, + "map": { + "type": "boolean" + }, + "filter": { + "type": "boolean" + }, + "reduce": { + "type": "boolean" + }, + "reduceRight": { + "type": "boolean" + }, + "find": { + "type": "boolean" + }, + "findIndex": { + "type": "boolean" + }, + "fill": { + "type": "boolean" + }, + "copyWithin": { + "type": "boolean" + }, + "entries": { + "type": "boolean" + }, + "keys": { + "type": "boolean" + }, + "values": { + "type": "boolean" + }, + "includes": { + "type": "boolean" + }, + "flatMap": { + "type": "boolean" + }, + "flat": { + "type": "boolean" + }, + "at": { + "type": "boolean" + }, + "findLast": { + "type": "boolean" + }, + "findLastIndex": { + "type": "boolean" + }, + "toReversed": { + "type": "boolean" + }, + "toSorted": { + "type": "boolean" + }, + "toSpliced": { + "type": "boolean" + }, + "with": { + "type": "boolean" + }, + "__@iterator@696": { + "type": "boolean" + }, + "__@unscopables@698": { + "type": "boolean" + } + } + } + }, + "required": [ + "__@unscopables@698", + "length" + ] + }, + { + "type": [ + "null", + "string", + "integer", + "boolean" + ] + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PartialMessage": { - "description": "https://docs.discord.food/resources/message#partial-message-structure", + "PongCallback": { "type": "object", "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "channel_id": { - "type": "string" - }, "type": { - "$ref": "#/definitions/MessageType" - }, - "content": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/PartialUser" + "$ref": "#/definitions/InteractionCallbackType.PONG" }, - "flags": { - "type": "integer" - }, - "application_id": { - "type": "string" - } + "data": {} }, "additionalProperties": false, "required": [ - "author", - "channel_id", - "content", - "id", + "data", "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "HubGuild": { + "InteractionCallbackType.PONG": { + "type": "number", + "const": 1, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AckCallback": { "type": "object", "properties": { - "icon": { - "type": "string" - }, - "id": { - "type": "string" + "type": { + "$ref": "#/definitions/InteractionCallbackType.ACKNOWLEDGE" }, - "name": { - "type": "string" - } + "data": {} }, "additionalProperties": false, "required": [ - "icon", - "id", - "name" + "data", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "EmojiGuild": { + "InteractionCallbackType.ACKNOWLEDGE": { + "type": "number", + "const": 2, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageCallback": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "features": { - "type": "array", - "items": { - "type": "string" - } - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "premium_tier": { - "type": "integer" - }, - "premium_subscription_count": { - "type": "integer" - }, - "approximate_member_count": { - "type": "integer" + "type": { + "$ref": "#/definitions/InteractionCallbackType.CHANNEL_MESSAGE" }, - "approximate_presence_count": { - "type": "integer" - } + "data": {} }, "additionalProperties": false, "required": [ - "emojis", - "features", - "id", - "name", - "premium_tier" + "data", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "EmojiApplication": { + "InteractionCallbackType.CHANNEL_MESSAGE": { + "type": "number", + "const": 3, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageWSourceCallback": { "type": "object", "properties": { - "id": { - "type": "string" + "type": { + "$ref": "#/definitions/InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE" }, - "name": { - "type": "string" + "data": { + "$ref": "#/definitions/InteractionMessage" } }, "additionalProperties": false, "required": [ - "id", - "name" + "data", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildMessagesSearchMessage": { + "InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE": { + "type": "number", + "const": 4, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionMessage": { "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" - } + "tts": { + "type": "boolean" }, "embeds": { "type": "array", @@ -13953,357 +14431,356 @@ "$ref": "#/definitions/Embed" } }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/PublicUser" - } + "allowed_mentions": { + "$ref": "#/definitions/AllowedMentions" }, - "mention_roles": { + "components": { "type": "array", "items": { - "$ref": "#/definitions/Role" + "$ref": "#/definitions/BaseMessageComponents" } }, - "pinned": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "tts": { - "type": "boolean" - }, - "timestamp": { - "type": "string" - }, - "edited_timestamp": { - "type": [ - "null", - "string" - ] - }, "flags": { "type": "integer" }, - "components": { + "attachments": { "type": "array", "items": { - "$ref": "#/definitions/ActionRowComponent" + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "uploaded_filename": { + "type": "string" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "uploaded_filename" + ] + } + ] } }, "poll": { - "$ref": "#/definitions/Poll" + "$ref": "#/definitions/PollCreationSchema" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageDWSourceCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE" }, - "hit": { - "type": "boolean", - "const": true + "data": { + "$ref": "#/definitions/InteractionMessage" } }, "additionalProperties": false, "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE": { + "type": "number", + "const": 5, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageUpdateCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.UPDATE_MESSAGE" + }, + "data": { + "$ref": "#/definitions/InteractionMessage" + } + }, + "additionalProperties": false, + "required": [ + "data", "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrl": { + "InteractionCallbackType.UPDATE_MESSAGE": { + "type": "number", + "const": 7, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageDUpdateCallback": { "type": "object", "properties": { - "code": { - "type": "string" + "type": { + "$ref": "#/definitions/InteractionCallbackType.DEFERRED_UPDATE_MESSAGE" }, - "uses": { - "type": "integer" + "data": { + "$ref": "#/definitions/InteractionMessage" } }, "additionalProperties": false, "required": [ - "code", - "uses" + "data", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlNoInvite": { + "InteractionCallbackType.DEFERRED_UPDATE_MESSAGE": { + "type": "number", + "const": 6, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionGuild": { "type": "object", "properties": { - "code": { - "type": "null" + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "locale": { + "type": "string" } }, "additionalProperties": false, "required": [ - "code" + "features", + "id", + "locale" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "HubDirectoryEntry": { + "PublicMember": { + "additionalProperties": false, "type": "object", "properties": { - "author_id": { + "id": { "type": "string" }, - "created_at": { + "guild_id": { "type": "string" }, - "description": { + "flags": { + "type": "integer" + }, + "banner": { "type": "string" }, - "directory_channel_id": { + "nick": { "type": "string" }, - "guild": { - "$ref": "#/definitions/Guild" + "joined_at": { + "type": "string", + "format": "date-time" }, - "primary_category_id": { - "type": "integer" + "pending": { + "type": "boolean" }, - "type": { + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "author_id", - "created_at", - "description", - "directory_channel_id", - "guild", - "primary_category_id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RefreshedUrl": { - "type": "object", - "properties": { - "original": { + }, + "avatar": { "type": "string" }, - "refreshed": { + "bio": { "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "original", - "refreshed" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "JsonValue": { - "description": "Represents any possible JSON value:\n- number\n- string\n- boolean\n- null\n- object (with any JSON value as property)\n- array (with any JSON value as element)", - "anyOf": [ - { - "description": "Represents a JSON object.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/JsonValue" - } }, - { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "$ref": "#/definitions/JsonValue" - } - }, - "properties": { - "length": { - "type": "integer" - }, - "__@unscopables@698": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "boolean" - } - }, - "properties": { - "length": { - "type": "boolean" - }, - "toString": { - "type": "boolean" - }, - "toLocaleString": { - "type": "boolean" - }, - "pop": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "concat": { - "type": "boolean" - }, - "join": { - "type": "boolean" - }, - "reverse": { - "type": "boolean" - }, - "shift": { - "type": "boolean" - }, - "slice": { - "type": "boolean" - }, - "sort": { - "type": "boolean" - }, - "splice": { - "type": "boolean" - }, - "unshift": { - "type": "boolean" - }, - "indexOf": { - "type": "boolean" - }, - "lastIndexOf": { - "type": "boolean" - }, - "every": { - "type": "boolean" - }, - "some": { - "type": "boolean" - }, - "forEach": { - "type": "boolean" - }, - "map": { - "type": "boolean" - }, - "filter": { - "type": "boolean" - }, - "reduce": { - "type": "boolean" - }, - "reduceRight": { - "type": "boolean" - }, - "find": { - "type": "boolean" - }, - "findIndex": { - "type": "boolean" - }, - "fill": { - "type": "boolean" - }, - "copyWithin": { - "type": "boolean" - }, - "entries": { - "type": "boolean" - }, - "keys": { - "type": "boolean" - }, - "values": { - "type": "boolean" - }, - "includes": { - "type": "boolean" - }, - "flatMap": { - "type": "boolean" - }, - "flat": { - "type": "boolean" - }, - "at": { - "type": "boolean" - }, - "findLast": { - "type": "boolean" - }, - "findLastIndex": { - "type": "boolean" - }, - "toReversed": { - "type": "boolean" - }, - "toSorted": { - "type": "boolean" - }, - "toSpliced": { - "type": "boolean" - }, - "with": { - "type": "boolean" - }, - "__@iterator@696": { - "type": "boolean" - }, - "__@unscopables@698": { - "type": "boolean" - } - } + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" } - }, - "required": [ - "__@unscopables@698", - "length" ] }, - { - "type": [ - "null", - "string", - "integer", - "boolean" - ] + "user": { + "$ref": "#/definitions/PublicUser" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } } + }, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "flags", + "guild_id", + "id", + "joined_at", + "mute", + "pending", + "roles", + "user" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "BackupCode": { + "InstanceUserDeleteSchemaContent": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "code": { + "reason": { "type": "string" }, - "consumed": { + "persistInstanceBan": { "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GameActivity": { + "type": "object", + "properties": { + "activity_level": { + "type": "integer" }, - "expired": { + "activity_score": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "activity_level", + "activity_score" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildBadgeType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildTrait": { + "type": "object", + "properties": { + "emoji_id": { + "type": [ + "null", + "string" + ] + }, + "emoji_name": { + "type": [ + "null", + "string" + ] + }, + "emoji_animated": { "type": "boolean" }, - "id": { + "label": { "type": "string" + }, + "position": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "code", - "consumed", - "expired", - "id", - "user" + "emoji_animated", + "emoji_id", + "emoji_name", + "label", + "position" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildVisibilityLevel": { + "type": "number", + "enum": [ + 1, + 2, + 3 ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -14467,20 +14944,16 @@ "type": "object", "properties": { "maxGuilds": { - "type": "integer", - "default": 1048576 + "type": "integer" }, "maxUsername": { - "type": "integer", - "default": 32 + "type": "integer" }, "maxFriends": { - "type": "integer", - "default": 5000 + "type": "integer" }, "maxBio": { - "type": "integer", - "default": 190 + "type": "integer" } }, "additionalProperties": false, @@ -14496,32 +14969,25 @@ "type": "object", "properties": { "maxRoles": { - "type": "integer", - "default": 1000 + "type": "integer" }, "maxEmojis": { - "type": "integer", - "default": 2000 + "type": "integer" }, "maxStickers": { - "type": "integer", - "default": 500 + "type": "integer" }, "maxMembers": { - "type": "integer", - "default": 25000000 + "type": "integer" }, "maxChannels": { - "type": "integer", - "default": 65535 + "type": "integer" }, "maxBulkBanUsers": { - "type": "integer", - "default": 200 + "type": "integer" }, "maxChannelsInCategory": { - "type": "integer", - "default": 65535 + "type": "integer" } }, "additionalProperties": false, @@ -14540,32 +15006,25 @@ "type": "object", "properties": { "maxCharacters": { - "type": "integer", - "default": 1048576 + "type": "integer" }, "maxTTSCharacters": { - "type": "integer", - "default": 160 + "type": "integer" }, "maxReactions": { - "type": "integer", - "default": 2048 + "type": "integer" }, "maxAttachmentSize": { - "type": "integer", - "default": 1073741824 + "type": "integer" }, "maxBulkDelete": { - "type": "integer", - "default": 1000 + "type": "integer" }, "maxEmbedDownloadSize": { - "type": "integer", - "default": 5242880 + "type": "integer" }, "maxPreloadCount": { - "type": "integer", - "default": 100 + "type": "integer" } }, "additionalProperties": false, @@ -14584,20 +15043,16 @@ "type": "object", "properties": { "maxPins": { - "type": "integer", - "default": 500 + "type": "integer" }, "maxTopic": { - "type": "integer", - "default": 1024 + "type": "integer" }, "maxWebhooks": { - "type": "integer", - "default": 100 + "type": "integer" }, "maxName": { - "type": "integer", - "default": 32 + "type": "integer" } }, "additionalProperties": false, @@ -14613,8 +15068,7 @@ "type": "object", "properties": { "enabled": { - "type": "boolean", - "default": false + "type": "boolean" }, "ip": { "$ref": "#/definitions/RateLimitOptions" @@ -14725,16 +15179,13 @@ "type": "object", "properties": { "limit": { - "type": "integer", - "default": 100 + "type": "integer" }, "window": { - "type": "integer", - "default": 3600000 + "type": "integer" }, "enabled": { - "type": "boolean", - "default": true + "type": "boolean" } }, "additionalProperties": false, @@ -14842,34 +15293,23 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AllowedMentions": { + "MessageReference": { "type": "object", "properties": { - "parse": { - "type": "array", - "items": { - "enum": [ - "everyone", - "roles", - "users" - ], - "type": "string" - } + "message_id": { + "type": "string" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "channel_id": { + "type": "string" }, - "users": { - "type": "array", - "items": { - "type": "string" - } + "guild_id": { + "type": "string" }, - "replied_user": { + "fail_if_not_exists": { "type": "boolean" + }, + "type": { + "type": "integer" } }, "additionalProperties": false, @@ -14879,12 +15319,7 @@ "type": "object", "properties": { "type": { - "enum": [ - 1, - 3, - 5 - ], - "type": "number" + "$ref": "#/definitions/MessageActivityType" }, "session_id": { "type": "string" @@ -14904,5 +15339,16 @@ "type" ], "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageActivityType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "$schema": "http://json-schema.org/draft-07/schema#" } } \ No newline at end of file diff --git a/package.json b/package.json index d52a7c45..22ef7af6 100644 --- a/package.json +++ b/package.json @@ -15,16 +15,15 @@ "build:tsgo": "npm run build:src:tsgo && npm run generate:schema && npm run generate:openapi", "build:src:tsgo": "rm -rf dist/* tsconfig.tsbuildinfo && tsgo -b -v", "watch": "tsc -w -b .", - "test": "node scripts/test.js", + "test": "node -r dotenv/config -r module-alias/register --enable-source-maps scripts/test.js", "lint": "eslint .", "setup": "npm run build && npm run generate:schema", - "sync:db": "npm run build && node scripts/syncronise.js", - "generate:rights": "node scripts/rights.js", - "generate:schema": "node scripts/schema.js", - "generate:migration": "node -r dotenv/config -r module-alias/register node_modules/typeorm/cli.js migration:generate -d dist/util/util/Database.js", - "generate:openapi": "node scripts/openapi.js", - "add:license": "node scripts/license.js", - "migrate-from-staging": "node -r dotenv/config -r module-alias/register scripts/stagingMigration/index.js", + "sync:db": "npm run build && node -r dotenv/config -r module-alias/register --enable-source-maps scripts/syncronise.js", + "generate:rights": "node -r dotenv/config -r module-alias/register --enable-source-maps scripts/rights.js", + "generate:schema": "node -r dotenv/config -r module-alias/register --enable-source-maps scripts/schema.js", + "generate:migration": "node -r dotenv/config -r module-alias/register --enable-source-maps node_modules/typeorm/cli.js migration:generate -d dist/util/util/Database.js", + "generate:openapi": "node -r dotenv/config -r module-alias/register --enable-source-maps scripts/openapi.js", + "add:license": "node -r dotenv/config -r module-alias/register --enable-source-maps scripts/license.js", "node:tests": "npm run build:src:tsgo && node -r dotenv/config -r module-alias/register --enable-source-maps --test --experimental-test-coverage dist/**/*.test.js", "apply:migrations": "node --enable-source-maps dist/apply-migrations.js" }, diff --git a/scripts/schema.js b/scripts/schema.js index b4c156d7..f8733809 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -396,6 +396,7 @@ function columnizedObjectDiff(a, b, trackEqual = false) { return diffs; } +const showScanDepth = process.env.SCHEMAS_SHOW_SCAN_DEPTH === "true"; async function removeAllMatchingRecursive(o, selector, maxDepth = 32, path = "$") { // process.stdout.write("S"); // console.log("scan @", path, "with depth", maxDepth, typeof o, o); @@ -406,9 +407,9 @@ async function removeAllMatchingRecursive(o, selector, maxDepth = 32, path = "$" process.stdout.write(yellowBright("R(" + gray(k) + " @ " + cyan(path) + ") ")); delete o[k]; } else if (maxDepth > 0 && typeof o != "string") { - process.stdout.write(gray(">")); + if (showScanDepth) process.stdout.write(gray(">")); o[k] = await removeAllMatchingRecursive(o[k], selector, maxDepth - 1, path + "." + k); - process.stdout.write(cyan("\b \b")); + if (showScanDepth) process.stdout.write(cyan("\b \b")); } } diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts index 745db5ef..5e0a1065 100644 --- a/src/util/util/Database.ts +++ b/src/util/util/Database.ts @@ -37,7 +37,7 @@ if (!process.env) { } if (process.argv[1]?.endsWith("scripts/openapi.js")) isHeadlessProcess = true; -if (!process.env.DATABASE) { +if (!process.env.DATABASE && !isHeadlessProcess) { console.log( red( "DATABASE environment variable not set! Please set it to your database connection string.\n" + "Example for postgres: postgres://user:password@localhost:5432/database", @@ -47,7 +47,7 @@ if (!process.env.DATABASE) { } const dbConnectionString = process.env.DATABASE!; -export const DatabaseType = dbConnectionString.split(":")[0]?.replace("+srv", ""); +export const DatabaseType = isHeadlessProcess ? "postgres" : dbConnectionString.split(":")[0]?.replace("+srv", ""); const applyMigrations = process.env.APPLY_DB_MIGRATIONS !== "false"; export const DataSourceOptions = isHeadlessProcess -- cgit 1.5.1