summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-21 14:46:30 +0100
committerRory& <root@rory.gay>2026-03-21 14:46:30 +0100
commit48eb55ee07d237ff2272e9763c1bbb5c72842f53 (patch)
tree619ccf65052bc43243650b7035bb0598a873d043
parentlambert-server: remove global namespace pollution for server (diff)
downloadserver-ts-48eb55ee07d237ff2272e9763c1bbb5c72842f53.tar.xz
Fix schemas script
-rw-r--r--assets/openapi.json9491
-rw-r--r--assets/schemas.json10022
-rw-r--r--package.json15
-rw-r--r--scripts/schema.js5
-rw-r--r--src/util/util/Database.ts4
5 files changed, 10193 insertions, 9344 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": { + "permissions": { "type": "string" }, - "channel": { - "$ref": "#/components/schemas/Channel" + "captcha_key": { + "type": "string" }, - "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```", + "code": { + "minLength": 6, + "maxLength": 6, "type": "string" + } + }, + "required": [ + "authorize", + "guild_id", + "permissions" + ] + }, + "AutomodMentionSpamRuleSchema": { + "type": "object", + "properties": { + "mention_total_limit": { + "type": "integer" }, - "member": { - "$ref": "#/components/schemas/PublicMember" + "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" + } + ], + "minItems": 1, + "maxItems": 1 }, - "user": { - "$ref": "#/components/schemas/PublicUser" + "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 }, - "locale": { + "keyword_filter": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 + }, + "regex_patterns": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 + } + }, + "required": [ + "allow_list", + "keyword_filter", + "regex_patterns" + ] + }, + "AutomodRuleSchema": { + "type": "object", + "properties": { + "creator_id": { "type": "string" }, - "message": { - "$ref": "#/components/schemas/Message" + "enabled": { + "type": "boolean" }, - "app_permissions": { - "type": "string" + "event_type": { + "type": "integer" }, - "entitlements": { + "exempt_channels": { "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "entitlement_sku_ids": { + "exempt_roles": { "type": "array", - "items": { - "type": "string" - } - }, - "authorizing_integration_owners": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { + "items": [ + { "type": "string" } - } + ], + "minItems": 1, + "maxItems": 1 }, - "context": { + "guild_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { "type": "integer" }, - "attachment_size_limit": { + "trigger_type": { "type": "integer" + }, + "trigger_metadata": { + "anyOf": [ + { + "$ref": "#/components/schemas/AutomodMentionSpamRuleSchema" + }, + { + "$ref": "#/components/schemas/AutomodSuspectedSpamRuleSchema" + }, + { + "$ref": "#/components/schemas/AutomodCommonlyFlaggedWordsRuleSchema" + }, + { + "$ref": "#/components/schemas/AutomodCustomWordsRuleSchema" + } + ] } }, "required": [ - "app_permissions", - "application_id", - "attachment_size_limit", - "id", - "token", - "type", - "version" + "creator_id", + "enabled", + "event_type", + "exempt_channels", + "exempt_roles", + "guild_id", + "name", + "position", + "trigger_metadata", + "trigger_type" ] }, - "ApplicationCreateSchema": { + "BackupCodesChallengeSchema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "team_id": { + "password": { + "minLength": 1, + "maxLength": 72, "type": "string" } }, "required": [ - "name" + "password" ] }, - "ApplicationModifySchema": { + "BanCreateSchema": { "type": "object", "properties": { - "description": { - "type": "string" + "delete_message_seconds": { + "type": "integer" }, - "icon": { - "type": "string" + "delete_message_days": { + "type": "integer" }, - "cover_image": { + "reason": { "type": "string" - }, - "interactions_endpoint_url": { + } + } + }, + "BanModeratorSchema": { + "type": "object", + "properties": { + "id": { "type": "string" }, - "max_participants": { - "type": "integer", - "nullable": true - }, - "name": { + "user_id": { "type": "string" }, - "privacy_policy_url": { + "guild_id": { "type": "string" }, - "role_connections_verification_url": { + "executor_id": { "type": "string" }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "terms_of_service_url": { + "reason": { + "type": "string" + } + }, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ] + }, + "BanRegistrySchema": { + "type": "object", + "properties": { + "id": { "type": "string" }, - "bot_public": { - "type": "boolean" + "user_id": { + "type": "string" }, - "bot_require_code_grant": { - "type": "boolean" + "guild_id": { + "type": "string" }, - "flags": { - "type": "integer" + "executor_id": { + "type": "string" }, - "custom_install_url": { + "ip": { "type": "string" }, - "guild_id": { + "reason": { "type": "string" } - } + }, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ] }, - "SendableApplicationCommandDataSchema": { + "BotModifySchema": { "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/Snowflake" - }, - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "name": { + "avatar": { "type": "string" }, - "version": { - "$ref": "#/components/schemas/Snowflake" - }, - "application_command": { - "type": "object", - "properties": {}, - "additionalProperties": true + "username": { + "type": "string" }, - "options": { + "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,757 +639,743 @@ ], "type": "number" }, - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "custom_id": { + "topic": { "type": "string" }, - "values": { - "anyOf": [ - { - "type": "array", - "items": { + "icon": { + "type": "string", + "nullable": true + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "invitable": { + "type": "boolean" + }, + "permission_overwrites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { "type": "string" } }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/Snowflake" - } - } - ] - } - }, - "required": [ - "custom_id" - ] - }, - "SendableModalSubmitDataSchema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/Snowflake" - }, - "custom_id": { - "type": "string" + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] + } }, - "attachments": { + "applied_tags": { "type": "array", "items": { - "$ref": "#/components/schemas/UploadAttachmentRequestSchema" + "type": "string" } - } - }, - "required": [ - "custom_id", - "id" - ] - }, - "GuildProfileResponse": { - "type": "object", - "properties": { + }, + "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" - }, - "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" - } - ] + "external_id": { + "type": "string" }, - "default_guilds_restricted": { - "type": "boolean" + "user_id": { + "type": "string" }, - "detect_platform_accounts": { - "type": "boolean" + "token_data": { + "$ref": "#/components/schemas/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": "#/components/schemas/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean" + "type": { + "type": "string" }, - "gif_auto_play": { + "verified": { "type": "boolean" }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/components/schemas/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": { + } + }, + "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 + "additionalProperties": false, + "required": [ + "message_id" + ] + } + }, + "required": [ + "sticker_ids" + ] + }, + "GuildCreateSchema": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "type": "string" }, - "intents": { - "type": "number" + "region": { + "type": "string" }, - "presence": { - "$ref": "#/components/schemas/ActivitySchema" + "icon": { + "type": "string", + "nullable": true }, - "compress": { + "channels": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChannelCreateSchema" + } + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "guild_template_code": { + "type": "string" + }, + "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" + } + } + } + }, + "activities": { "type": "boolean" }, - "large_threshold": { - "type": "integer" + "threads": { + "type": "boolean" }, - "largeThreshold": { - "type": "integer" + "typing": { + "const": true, + "type": "boolean" }, - "shard": { - "minItems": 2, - "maxItems": 2, + "members": { "type": "array", "items": { - "type": "number" + "type": "string" } }, - "guild_subscriptions": { + "member_updates": { "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 + "thread_member_lists": { + "type": "array", + "items": {} + } + } + }, + "GuildTemplateCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "v": { - "type": "integer" + "icon": { + "type": "string", + "nullable": true } }, "required": [ - "properties", - "token" + "name" ] }, - "StreamCreateSchema": { + "GuildUpdateSchema": { "type": "object", "properties": { - "type": { - "enum": [ - "call", - "guild" - ], + "banner": { + "type": "string", + "nullable": true + }, + "splash": { + "type": "string", + "nullable": true + }, + "description": { "type": "string" }, - "channel_id": { + "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" }, - "guild_id": { + "afk_timeout": { + "type": "integer" + }, + "afk_channel_id": { "type": "string" }, - "preferred_region": { + "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" } - }, - "required": [ - "channel_id", - "type" - ] + } }, - "StreamDeleteSchema": { + "GuildUpdateWelcomeScreenSchema": { "type": "object", "properties": { - "stream_key": { + "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" } - }, - "required": [ - "stream_key" - ] + } }, - "StreamWatchSchema": { + "HubWaitlistSignupSchema": { "type": "object", "properties": { - "stream_key": { + "email": { + "type": "string" + }, + "school": { "type": "string" } }, "required": [ - "stream_key" + "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": { @@ -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,6 +1856,10 @@ "staff_only": { "type": "boolean" }, + "banner": { + "type": "string", + "nullable": true + }, "splash": { "type": "string", "nullable": true @@ -2535,70 +2654,1277 @@ "token" ] }, - "APIGuild": { + "ApplicationCommandCreateSchema": { "type": "object", "properties": { + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, "name": { "type": "string" }, - "region": { + "name_localizations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "description": { "type": "string" }, - "insert": { + "description_localizations": { "type": "object", - "additionalProperties": false + "additionalProperties": { + "type": "string" + } + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOption" + } + }, + "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" + } + }, + "InteractionCallbackSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType" + }, + "data": {} + }, + "required": [ + "data", + "type" + ] + }, + "InteractionCallbacksSchema": { + "anyOf": [ + { + "$ref": "#/components/schemas/PongCallback" + }, + { + "$ref": "#/components/schemas/AckCallback" + }, + { + "$ref": "#/components/schemas/MessageCallback" + }, + { + "$ref": "#/components/schemas/MessageWSourceCallback" + }, + { + "$ref": "#/components/schemas/MessageDWSourceCallback" + }, + { + "$ref": "#/components/schemas/MessageUpdateCallback" + }, + { + "$ref": "#/components/schemas/MessageDUpdateCallback" + } + ] + }, + "InteractionCreateSchema": { + "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" + }, + "token": { + "type": "string" + }, + "data": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "guild": { + "$ref": "#/components/schemas/InteractionGuild" + }, + "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```", + "type": "string" + }, + "member": { + "$ref": "#/components/schemas/PublicMember" + }, + "user": { + "$ref": "#/components/schemas/PublicUser" + }, + "locale": { + "type": "string" + }, + "message": { + "$ref": "#/components/schemas/Message" + }, + "app_permissions": { + "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" + } + }, + "required": [ + "app_permissions", + "application_id", + "attachment_size_limit", + "id", + "token", + "type", + "version" + ] + }, + "ApplicationCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "team_id": { + "type": "string" + } + }, + "required": [ + "name" + ] + }, + "ApplicationModifySchema": { + "type": "object", + "properties": { + "description": { "type": "string" }, "icon": { "type": "string" }, - "parent": { + "cover_image": { "type": "string" }, - "owner_id": { + "interactions_endpoint_url": { "type": "string" }, - "nsfw": { + "max_participants": { + "type": "integer", + "nullable": true + }, + "name": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "role_connections_verification_url": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "terms_of_service_url": { + "type": "string" + }, + "bot_public": { "type": "boolean" }, - "invites": { + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "custom_install_url": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + } + }, + "SendableApplicationCommandDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/Snowflake" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "name": { + "type": "string" + }, + "version": { + "$ref": "#/components/schemas/Snowflake" + }, + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "options": { "type": "array", "items": { - "$ref": "#/components/schemas/Invite" + "$ref": "#/components/schemas/ApplicationCommandOption" } }, - "voice_states": { + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/components/schemas/Snowflake" + }, + "attachments": { "type": "array", "items": { - "$ref": "#/components/schemas/VoiceState" + "type": "object", + "properties": {}, + "additionalProperties": true } + } + }, + "required": [ + "id", + "name", + "version" + ] + }, + "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" }, - "webhooks": { + "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": { + "$ref": "#/components/schemas/Snowflake" + }, + "custom_id": { + "type": "string" + }, + "attachments": { "type": "array", "items": { - "$ref": "#/components/schemas/Webhook" + "$ref": "#/components/schemas/UploadAttachmentRequestSchema" } + } + }, + "required": [ + "custom_id", + "id" + ] + }, + "InstanceUserDeleteSchema": { + "$ref": "#/components/schemas/InstanceUserDeleteSchemaContent" + }, + "UserSettingsUpdateSchema": { + "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" + }, + "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": { + "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": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { + "type": "boolean" + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string" + }, + "timezone_offset": { + "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" + } + } + }, + "UserSettingsSchema": { + "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" + }, + "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": { + "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": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { + "type": "boolean" + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "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" + ] + }, + "GuildProfileResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "icon_hash": { + "type": "string", + "nullable": true }, "member_count": { "type": "integer" }, - "get_annotations": { + "online_count": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "brand_color_primary": { + "type": "string" + }, + "banner_hash": { + "type": "string", + "nullable": true + }, + "game_application_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "game_activity": { "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/GameActivity" + } + }, + "tag": { + "type": "string", + "nullable": true + }, + "badge": { + "$ref": "#/components/schemas/GuildBadgeType" + }, + "badge_color_primary": { + "type": "string" + }, + "badge_color_secondary": { + "type": "string" + }, + "badge_hash": { + "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" + } + }, + "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" + ] + }, + "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" + } + }, + "required": [ + "available", + "id" + ] + }, + "StickersResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StickerResponse" + } + }, + "StickerResponse": { + "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" + }, + "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" + }, + "name": { + "type": "string" + }, + "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", + "tags", + "type" + ] + }, + "IdentifySchema": { + "type": "object", + "properties": { + "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 }, - "clean_data": { + "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": { + "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 }, - "roles": { + "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": [ + "properties", + "token" + ] + }, + "StreamCreateSchema": { + "type": "object", + "properties": { + "type": { + "enum": [ + "call", + "guild" + ], + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "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" + } + }, + "required": [ + "stream_key" + ] + }, + "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": { - "$ref": "#/components/schemas/Role" + "type": "object", + "properties": { + "type": { + "enum": [ + "audio", + "screen", + "video" + ], + "type": "string" + }, + "rid": { + "type": "string" + }, + "quality": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "quality", + "rid", + "type" + ] } }, - "banner": { + "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": [ + "rid", + "type" + ] + } + } + }, + "required": [ + "audio_ssrc", + "video_ssrc" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "region": { + "type": "string" + }, + "insert": { + "type": "object", + "additionalProperties": false + }, + "id": { "type": "string" }, "channels": { @@ -2607,6 +3933,15 @@ "$ref": "#/components/schemas/Channel" } }, + "members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Member" + } + }, + "icon": { + "type": "string" + }, "system_channel_id": { "type": "string", "nullable": true @@ -2615,6 +3950,9 @@ "type": "string", "nullable": true }, + "banner": { + "type": "string" + }, "splash": { "type": "string" }, @@ -2659,6 +3997,50 @@ "discovery_splash": { "type": "string" }, + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "member_count": { + "type": "integer" + }, + "get_annotations": { + "type": "object", + "additionalProperties": false + }, + "clean_data": { + "type": "object", + "additionalProperties": false + }, "bans": { "type": "array", "items": { @@ -2683,12 +4065,6 @@ "presence_count": { "type": "integer" }, - "members": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Member" - } - }, "template_id": { "type": "string" }, @@ -2779,6 +4155,9 @@ "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" @@ -2786,9 +4165,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -2862,6 +4238,9 @@ "flags": { "type": "integer" }, + "banner": { + "type": "string" + }, "verified": { "type": "boolean" }, @@ -2872,9 +4251,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -3001,6 +4377,9 @@ "flags": { "type": "integer" }, + "banner": { + "type": "string" + }, "verified": { "type": "boolean" }, @@ -3011,9 +4390,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -3152,50 +4528,41 @@ "type": "object", "properties": { "instanceName": { - "type": "string", - "default": "Spacebar Instance" + "type": "string" }, "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 }, "instanceId": { "type": "string" }, "autoCreateBotUsers": { - "type": "boolean", - "default": false + "type": "boolean" } }, "required": [ @@ -3235,6 +4602,9 @@ "flags": { "type": "integer" }, + "banner": { + "type": "string" + }, "nick": { "type": "string" }, @@ -3257,9 +4627,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -3320,9 +4687,6 @@ "name": { "type": "string" }, - "primary_category_id": { - "type": "string" - }, "large": { "type": "boolean" }, @@ -3341,9 +4705,6 @@ "presence_count": { "type": "integer" }, - "template_id": { - "type": "string" - }, "mfa_level": { "type": "integer" }, @@ -3381,10 +4742,6 @@ "type": "string", "nullable": true }, - "banner": { - "type": "string", - "nullable": true - }, "system_channel_id": { "type": "string" }, @@ -3397,6 +4754,10 @@ "staff_only": { "type": "boolean" }, + "banner": { + "type": "string", + "nullable": true + }, "splash": { "type": "string", "nullable": true @@ -3448,24 +4809,9 @@ "required": [ "id", "joined_at", - "large", - "max_members", - "max_presences", - "max_video_channel_users", - "member_count", - "mfa_level", "name", "nsfw", - "nsfw_level", - "owner_id", - "parent", - "premium_subscription_count", - "premium_tier", - "presence_count", - "primary_category_id", - "template_id", "welcome_screen", - "widget_channel_id", "widget_enabled" ] }, @@ -3749,1143 +5095,6 @@ "user" ] }, - "AckBulkSchema": { - "type": "object", - "properties": { - "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": [ - "read_states" - ] - }, - "ActivitySchema": { - "type": "object", - "properties": { - "afk": { - "type": "boolean" - }, - "status": { - "$ref": "#/components/schemas/Status" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Activity" - } - }, - "since": { - "type": "integer" - } - }, - "required": [ - "status" - ] - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "captcha_key": { - "type": "string" - }, - "code": { - "minLength": 6, - "maxLength": 6, - "type": "string" - } - }, - "required": [ - "authorize", - "guild_id", - "permissions" - ] - }, - "AutomodMentionSpamRuleSchema": { - "type": "object", - "properties": { - "mention_total_limit": { - "type": "integer" - }, - "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" - } - ], - "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 - }, - "keyword_filter": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - }, - "regex_patterns": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - } - }, - "required": [ - "allow_list", - "keyword_filter", - "regex_patterns" - ] - }, - "AutomodRuleSchema": { - "type": "object", - "properties": { - "creator_id": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "event_type": { - "type": "integer" - }, - "exempt_channels": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - }, - "exempt_roles": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - }, - "guild_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "trigger_type": { - "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": { - "type": "integer" - }, - "delete_message_days": { - "type": "integer" - }, - "reason": { - "type": "string" - } - } - }, - "BanModeratorSchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ] - }, - "BanRegistrySchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ] - }, - "BotModifySchema": { - "type": "object", - "properties": { - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "banner": { - "type": "string" - } - } - }, - "BulkBanSchema": { - "type": "object", - "properties": { - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "delete_message_seconds": { - "type": "integer" - } - }, - "required": [ - "user_ids" - ] - }, - "BulkDeleteSchema": { - "type": "object", - "properties": { - "messages": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "messages" - ] - }, - "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": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "invitable": { - "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": { - "type": "array", - "items": { - "type": "string" - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": "string", - "nullable": true - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - }, - "auto_archive_duration": { - "type": "integer" - }, - "archived": { - "type": "boolean" - }, - "locked": { - "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" - } - }, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "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": { - "key": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "regenerate": { - "type": "boolean" - } - }, - "required": [ - "key", - "nonce" - ] - }, - "ConnectedAccountSchema": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "token_data": { - "$ref": "#/components/schemas/ConnectedAccountTokenData" - }, - "friend_sync": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean" - }, - "show_activity": { - "type": "integer" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "visibility": { - "type": "integer" - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer" - }, - "two_way_link": { - "type": "boolean" - } - }, - "required": [ - "external_id", - "name", - "type", - "user_id" - ] - }, - "ConnectedAccountCommonOAuthTokenResponse": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - } - }, - "required": [ - "access_token", - "scope", - "token_type" - ] - }, - "ConnectionCallbackSchema": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "state": { - "type": "string" - }, - "insecure": { - "type": "boolean" - }, - "friend_sync": { - "type": "boolean" - }, - "openid_params": {} - }, - "required": [ - "friend_sync", - "insecure", - "state" - ] - }, - "ConnectionUpdateSchema": { - "type": "object", - "properties": { - "visibility": { - "type": "boolean" - }, - "show_activity": { - "type": "boolean" - }, - "metadata_visibility": { - "type": "boolean" - } - } - }, - "DmChannelCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "type": "string" - } - }, - "recipient_id": { - "type": "string" - }, - "access_tokens": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "EmailDomainLookupSchema": { - "type": "object", - "properties": { - "allow_multiple_guilds": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "use_verification_code": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - } - }, - "required": [ - "allow_multiple_guilds", - "email", - "use_verification_code" - ] - }, - "EmailDomainLookupVerifyCodeSchema": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "required": [ - "code", - "email", - "guild_id" - ] - }, - "EmojiCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - }, - "require_colons": { - "type": "boolean", - "nullable": true - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "image" - ] - }, - "EmojiModifySchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ForgotPasswordSchema": { - "type": "object", - "properties": { - "login": { - "type": "string" - }, - "captcha_key": { - "type": "string" - } - }, - "required": [ - "login" - ] - }, - "GreetRequestSchema": { - "type": "object", - "properties": { - "sticker_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "allowed_mentions": { - "$ref": "#/components/schemas/AllowedMentions" - }, - "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, - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChannelCreateSchema" - } - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "guild_template_code": { - "type": "string" - }, - "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 - }, - "splash": { - "type": "string", - "nullable": true - }, - "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": "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" - } - } - }, "MFAResponse": { "type": "object", "properties": { @@ -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,82 +6808,6 @@ "name" ] }, - "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": "#/components/schemas/ApplicationCommandOption" - } - }, - "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": { @@ -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,9 +7506,371 @@ "filename" ] }, - "InteractionCallbackType": { + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "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 + }, + "session_id": { + "type": "string" + } + }, + "required": [ + "flags", + "name", + "session_id", + "type" + ] + }, + "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, @@ -7666,272 +7882,982 @@ 9, 10, 11, - 12 + 12, + 13, + 14, + 15, + 16, + 20, + 22 ] }, - "Message": { + "AppealStatus": { "type": "object", "properties": { - "channel_id": { + "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" }, - "channel": { - "$ref": "#/components/schemas/Channel" + "classification_type": { + "$ref": "#/components/schemas/ClassificationType" }, - "thread_id": { + "description": { "type": "string" }, - "thread": { - "$ref": "#/components/schemas/Channel" + "explainer_link": { + "type": "string" }, - "guild_id": { + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClassificationAction" + } + }, + "max_expiration_time": { "type": "string" }, - "guild": { - "$ref": "#/components/schemas/Guild" + "flagged_content": { + "type": "array", + "items": {} }, - "author_id": { + "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" }, - "author": { - "$ref": "#/components/schemas/User" + "icon": { + "type": "string" }, - "member_id": { + "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": { + "sku_id": { "type": "string" }, - "member": { - "$ref": "#/components/schemas/Member" + "name": { + "type": "string" }, - "webhook_id": { + "summary": { "type": "string" }, - "webhook": { - "$ref": "#/components/schemas/Webhook" + "store_listing_id": { + "type": "string" }, - "application_id": { + "banner": { "type": "string" }, - "application": { - "$ref": "#/components/schemas/Application" + "unpublished_at": { + "type": "string", + "nullable": true }, - "content": { + "styles": { + "$ref": "#/components/schemas/CollectiblesCategoryStyle" + }, + "logo": { "type": "string" }, - "timestamp": { + "hero_ranking": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "mobile_bg": { "type": "string", - "format": "date-time" + "nullable": true }, - "edited_timestamp": { + "pdp_bg": { "type": "string", - "format": "date-time" + "nullable": true }, - "tts": { - "type": "boolean" + "success_modal_bg": { + "type": "string", + "nullable": true }, - "mention_everyone": { - "type": "boolean" + "mobile_banner": { + "type": "string", + "nullable": true }, - "mentions": { + "featured_block": { + "type": "string", + "nullable": true + }, + "hero_banner": { + "type": "string", + "nullable": true + }, + "wide_banner": { + "type": "string", + "nullable": true + }, + "hero_logo": { + "type": "string", + "nullable": true + }, + "products": { "type": "array", "items": { - "$ref": "#/components/schemas/User" + "$ref": "#/components/schemas/CollectiblesCategoryProductItem" } }, - "mention_roles": { + "banner_asset": { + "$ref": "#/components/schemas/StaticAnimatedAsset" + }, + "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/Role" + "type": "integer" } }, - "mention_channels": { + "button_colors": { "type": "array", "items": { - "$ref": "#/components/schemas/Channel" + "type": "integer" } }, - "sticker_items": { + "confetti_colors": { "type": "array", "items": { - "$ref": "#/components/schemas/Sticker" + "type": "integer" } + } + }, + "required": [ + "background_colors", + "button_colors", + "confetti_colors" + ] + }, + "CollectiblesCategoryProductItem": { + "type": "object", + "properties": { + "sku_id": { + "type": "string" }, - "attachments": { + "name": { + "type": "string" + }, + "summary": { + "type": "string" + }, + "store_listing_id": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "unpublished_at": { + "type": "string", + "nullable": true + }, + "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/Attachment" + "$ref": "#/components/schemas/ProductItem" } }, - "embeds": { + "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": "#/components/schemas/Embed" + "$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" }, - "reactions": { + "prices": { "type": "array", "items": { - "$ref": "#/components/schemas/Reaction" + "$ref": "#/components/schemas/PriceEntry" } + } + }, + "required": [ + "country_code", + "prices" + ] + }, + "PriceEntry": { + "type": "object", + "properties": { + "amount": { + "type": "integer" }, - "nonce": { + "currency": { "type": "string" }, - "pinned_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] + "exponent": { + "type": "integer" + } + }, + "required": [ + "amount", + "currency", + "exponent" + ] + }, + "ProductItem": { + "type": "object", + "properties": { + "type": { + "type": "integer" }, - "pinned": { - "type": "boolean" + "id": { + "type": "string" }, - "type": { - "$ref": "#/components/schemas/MessageType" + "sku_id": { + "type": "string" }, - "activity": { + "asset": { + "type": "string" + }, + "label": { + "type": "string" + }, + "palette": { + "type": "string" + } + }, + "required": [ + "id", + "sku_id", + "type" + ] + }, + "ProductItemVariant": { + "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": "string", + "nullable": true + }, + "styles": { + "$ref": "#/components/schemas/CollectiblesCategoryStyle" + }, + "prices": { "type": "object", - "properties": { - "type": { - "type": "integer" + "additionalProperties": { + "type": "object", + "properties": { + "country_prices": { + "$ref": "#/components/schemas/CountryPrice" + } }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] + "additionalProperties": false, + "required": [ + "country_prices" + ] + } }, - "flags": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductItem" + } + }, + "type": { "type": "integer" }, - "message_reference": { + "premium_type": { + "type": "integer" + }, + "category_sku_id": { + "type": "string" + }, + "google_sku_ids": { "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false + "additionalProperties": { + "type": "string" + } }, - "referenced_message": { - "anyOf": [ - { - "$ref": "#/components/schemas/Message" - }, - { - "type": "null" - } - ] + "base_variant_sku_id": { + "type": "string" }, - "interaction": { + "base_variant_name": { + "type": "string" + }, + "variant_label": { + "type": "string" + }, + "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", + "nullable": true + }, + "static": { + "type": "string" + } + }, + "required": [ + "animated", + "static" + ] + }, + "CollectiblesMarketingItem": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "version": { + "type": "integer" + }, + "title": { + "type": "string" + }, + "body": { + "type": "string" + } + }, + "required": [ + "body", + "title", + "type", + "version" + ] + }, + "AnyShopBlock": { + "anyOf": [ + { + "$ref": "#/components/schemas/ItemRowShopBlock" + }, + { + "$ref": "#/components/schemas/BundleTileRowShopBlock" + }, + { + "$ref": "#/components/schemas/ItemCollectionShopBlock" + } + ] + }, + "ItemRowShopBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "const": 0 + }, + "category_sku_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "category_store_listing_id": { + "type": "string" + }, + "banner_asset": { + "$ref": "#/components/schemas/StaticAnimatedAsset" + }, + "logo_url": { + "type": "string" + }, + "unpublished_at": { + "type": "string", + "nullable": true + }, + "summary": { + "type": "string" + }, + "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 + }, + "subblocks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShopBlockSubBlock" + } + } + }, + "required": [ + "subblocks", + "type" + ] + }, + "ShopBlockSubBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "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": { + "type": "string" + } + }, + "sorted_sku_ids": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/InteractionType" + "recommended": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, - "name": { - "type": "string" + "popular": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "id", - "name", - "type" + "popular", + "recommended" ] + } + }, + "required": [ + "ranked_sku_ids", + "sorted_sku_ids", + "type" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "string", + "nullable": true }, - "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" - } + "afk_channel": { + "$ref": "#/components/schemas/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Ban" + } + }, + "banner": { + "type": "string" + }, + "default_message_notifications": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "discovery_splash": { + "type": "string" + }, + "explicit_content_filter": { + "type": "integer" + }, + "features": { + "type": "array", + "items": { + "type": "string" }, - "additionalProperties": false, - "required": [ - "authorizing_integration_owners", - "command_type", - "id", - "name", - "type", - "user_id" - ] + "default": [] }, - "components": { + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponent" + "$ref": "#/components/schemas/Member" } }, - "poll": { - "$ref": "#/components/schemas/Poll" + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } }, - "username": { + "channels": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Channel" + } + }, + "template_id": { "type": "string" }, - "avatar": { + "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": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { "type": "string" }, - "message_snapshots": { + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/components/schemas/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "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" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "string", + "nullable": true + }, + "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": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/components/schemas/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageSnapshot" + "type": "string" } }, + "discovery_weight": { + "type": "integer", + "default": 0 + }, + "discovery_excluded": { + "type": "boolean", + "default": false + }, "id": { "type": "string" } }, "required": [ - "channel", - "embeds", - "flags", + "bans", + "channel_ordering", + "channels", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", "id", - "mention_channels", - "mention_roles", - "mentions", - "message_snapshots", - "pinned", - "reactions", - "timestamp", - "type" + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" ] }, "Channel": { @@ -8089,6 +9015,10 @@ "type": "string" } }, + "status": { + "type": "string", + "nullable": true + }, "position": { "description": "Must be calculated Channel.calculatePosition", "type": "integer" @@ -8467,168 +9397,6 @@ "user_id" ] }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "required": [ - "flags", - "name", - "session_id", - "type" - ] - }, - "ActivityType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 4, - 5 - ] - }, "ClientStatus": { "type": "object", "properties": { @@ -8646,16 +9414,6 @@ } } }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, "ExtendedLocationInfo": { "type": "object", "properties": { @@ -8843,36 +9601,6 @@ "user_id" ] }, - "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" - ] - }, "UserSettings": { "type": "object", "properties": { @@ -9438,299 +10166,6 @@ "user" ] }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "string", - "nullable": true - }, - "afk_channel": { - "$ref": "#/components/schemas/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/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": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/components/schemas/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "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" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "string", - "nullable": true - }, - "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": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/components/schemas/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "discovery_weight": { - "type": "integer", - "default": 0 - }, - "discovery_excluded": { - "type": "boolean", - "default": false - }, - "id": { - "type": "string" - } - }, - "required": [ - "bans", - "channel_ordering", - "channels", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "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": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "user", - "user_id" - ] - }, "Role": { "type": "object", "properties": { @@ -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" + "end_time": { + "type": "string", + "format": "date-time" }, - "banner_asset_id": { + "selected_time_window": { + "type": "integer" + } + } + }, + "ThreadMemberFlags": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 4, + 8 + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { "type": "string" }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - }, - "cover_sticker_id": { + "deny": { "type": "string" }, - "cover_sticker": { - "$ref": "#/components/schemas/Sticker" - }, "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": { - "type": "boolean" + "edited_timestamp": { + "type": "string", + "format": "date-time" }, - "self_stream": { + "tts": { "type": "boolean" }, - "self_video": { + "mention_everyone": { "type": "boolean" }, - "suppress": { + "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" }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" + "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" + }, + "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,357 +11087,107 @@ "read_only" ] }, - "GuildWelcomeScreen": { + "Sticker": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "name": { + "type": "string" }, "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" - ] - } - } - }, - "required": [ - "description", - "enabled", - "welcome_channels" - ] - }, - "UserGuildSettings": { - "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": { + "available": { "type": "boolean" }, - "suppress_everyone": { - "type": "boolean" + "tags": { + "type": "string" }, - "suppress_roles": { - "type": "boolean" + "pack_id": { + "type": "string" }, - "version": { - "type": "integer" + "pack": { + "$ref": "#/components/schemas/StickerPack" }, "guild_id": { - "type": "string", - "nullable": true - }, - "flags": { - "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": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/components/schemas/MuteConfig" + "type": "string" }, - "muted": { - "type": "boolean" + "guild": { + "$ref": "#/components/schemas/Guild" }, - "channel_id": { - "type": "string", - "nullable": true - } - }, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "user_id": { + "type": "string" }, - "selected_time_window": { - "type": "integer" - } - }, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "ThreadMemberMuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "string", - "format": "date-time" + "user": { + "$ref": "#/components/schemas/User" }, - "selected_time_window": { - "type": "integer" - } - } - }, - "ThreadMemberFlags": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 4, - 8 - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" + "type": { + "$ref": "#/components/schemas/StickerType" }, - "deny": { - "type": "string" + "format_type": { + "$ref": "#/components/schemas/StickerFormatType" }, "id": { "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ChannelPermissionOverwriteType" } }, "required": [ - "allow", - "deny", + "format_type", "id", + "name", + "pack", "type" ] }, - "ChannelPermissionOverwriteType": { - "type": "number", - "enum": [ - 0, - 1, - 2 - ] - }, - "ReadState": { + "StickerPack": { "type": "object", "properties": { - "channel_id": { + "name": { "type": "string" }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "user_id": { + "description": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/User" - }, - "last_message_id": { + "banner_asset_id": { "type": "string" }, - "last_acked_id": { - "type": "string" + "stickers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } }, - "notifications_cursor": { + "cover_sticker_id": { "type": "string" }, - "mention_count": { - "type": "integer" - }, - "badge_count": { - "type": "integer" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "read_state_type": { - "$ref": "#/components/schemas/ReadStateType" - }, - "flags": { - "$ref": "#/components/schemas/ReadStateFlags" + "cover_sticker": { + "$ref": "#/components/schemas/Sticker" }, "id": { "type": "string" } }, "required": [ - "badge_count", - "channel", - "channel_id", - "flags", "id", - "mention_count", - "notifications_cursor", - "read_state_type", - "user", - "user_id" + "name", + "stickers" ] }, - "ReadStateType": { + "StickerType": { "type": "number", "enum": [ - 0, 1, - 2, - 3, - 4, - 5 + 2 ] }, - "ReadStateFlags": { + "StickerFormatType": { "type": "number", "enum": [ 1, 2, + 3, 4 ] }, - "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" - } - }, - "required": [ - "archive_timestamp", - "archived", - "auto_archive_duration", - "create_timestamp", - "locked" - ] - }, - "Tag": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "name": { - "type": "string" - }, - "moderated": { - "type": "boolean", - "default": false - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "channel", - "channel_id", - "id", - "moderated", - "name" - ] - }, "Attachment": { "type": "object", "properties": { @@ -11183,40 +11501,158 @@ 4 ] }, - "ActionRowComponent": { + "BaseMessageComponents": { + "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" + }, + { + "$ref": "#/components/schemas/ContainerComponent" + } + ] + }, + "SectionComponent": { "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/MessageComponentType.ActionRow" + "$ref": "#/components/schemas/MessageComponentType.Section" }, "components": { "type": "array", "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/ButtonComponent" - }, - { - "$ref": "#/components/schemas/SelectMenuComponent" - }, - { - "$ref": "#/components/schemas/StringSelectMenuComponent" - }, - { - "$ref": "#/components/schemas/TextInputComponent" - } - ] + "$ref": "#/components/schemas/TextDisplayComponent" } + }, + "accessory": { + "anyOf": [ + { + "$ref": "#/components/schemas/ThumbnailComponent" + }, + { + "$ref": "#/components/schemas/ButtonComponent" + } + ] + }, + "id": { + "type": "integer" } }, "required": [ + "accessory", "components", "type" ] }, - "MessageComponentType.ActionRow": { + "MessageComponentType.Section": { "type": "number", - "const": 1 + "const": 9 + }, + "TextDisplayComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.TextDisplay" + }, + "content": { + "type": "string" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "content", + "type" + ] + }, + "MessageComponentType.TextDisplay": { + "type": "number", + "const": 10 + }, + "ThumbnailComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Thumbnail" + }, + "description": { + "type": "string" + }, + "media": { + "$ref": "#/components/schemas/UnfurledMediaItem" + }, + "spoiler": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "media", + "type" + ] + }, + "MessageComponentType.Thumbnail": { + "type": "number", + "const": 11 + }, + "UnfurledMediaItem": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "flags": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "content_scan_metadata": {}, + "placeholder_version": { + "type": "integer" + }, + "placeholder": { + "type": "string" + }, + "loading_state": { + "type": "integer" + }, + "attachment_id": { + "type": "string" + } + }, + "required": [ + "url" + ] }, "ButtonComponent": { "type": "object", @@ -11281,6 +11717,9 @@ }, "disabled": { "type": "boolean" + }, + "id": { + "type": "integer" } }, "required": [ @@ -11303,6 +11742,146 @@ 6 ] }, + "MediaGalleryComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.MediaGallery" + }, + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "media": { + "$ref": "#/components/schemas/UnfurledMediaItem" + }, + "description": { + "type": "string" + }, + "spoiler": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "media" + ] + } + }, + "id": { + "type": "integer" + } + }, + "required": [ + "items", + "type" + ] + }, + "MessageComponentType.MediaGallery": { + "type": "number", + "const": 12 + }, + "FileComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.File" + }, + "file": { + "$ref": "#/components/schemas/UnfurledMediaItem" + }, + "spoiler": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "file", + "name", + "size", + "spoiler", + "type" + ] + }, + "MessageComponentType.File": { + "type": "number", + "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" + ] + }, + "MessageComponentType.Separator": { + "type": "number", + "const": 14 + }, + "ActionRowComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.ActionRow" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/ButtonComponent" + }, + { + "$ref": "#/components/schemas/SelectMenuComponent" + }, + { + "$ref": "#/components/schemas/StringSelectMenuComponent" + }, + { + "$ref": "#/components/schemas/TextInputComponent" + } + ] + } + }, + "id": { + "type": "integer" + } + }, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.ActionRow": { + "type": "number", + "const": 1 + }, "SelectMenuComponent": { "type": "object", "properties": { @@ -11342,6 +11921,9 @@ }, "disabled": { "type": "boolean" + }, + "id": { + "type": "integer" } }, "required": [ @@ -11407,6 +11989,9 @@ }, "disabled": { "type": "boolean" + }, + "id": { + "type": "integer" } }, "required": [ @@ -11509,6 +12094,9 @@ }, "placeholder": { "type": "string" + }, + "id": { + "type": "integer" } }, "required": [ @@ -11529,6 +12117,56 @@ 2 ] }, + "ContainerComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Container" + }, + "components": { + "type": "array", + "items": { + "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" + } + ] + } + }, + "accent_color": { + "type": "integer" + }, + "spoiler": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "components", + "type" + ] + }, + "MessageComponentType.Container": { + "type": "number", + "const": 17 + }, "Poll": { "type": "object", "properties": { @@ -11754,6 +12392,9 @@ "properties": { "type": { "$ref": "#/components/schemas/MessageComponentType" + }, + "id": { + "type": "integer" } }, "required": [ @@ -11787,50 +12428,35 @@ 23 ] }, - "InteractionGuild": { + "VoiceState": { "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```", + "guild_id": { "type": "string" }, - "features": { - "type": "array", - "items": { - "type": "string" - } + "guild": { + "$ref": "#/components/schemas/Guild" }, - "locale": { - "type": "string" - } - }, - "required": [ - "features", - "id", - "locale" - ] - }, - "PublicMember": { - "type": "object", - "properties": { - "id": { + "channel_id": { "type": "string" }, - "guild_id": { + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "user_id": { "type": "string" }, - "flags": { - "type": "integer" + "user": { + "$ref": "#/components/schemas/User" }, - "nick": { - "type": "string" + "member": { + "$ref": "#/components/schemas/Member" }, - "joined_at": { - "type": "string", - "format": "date-time" + "session_id": { + "type": "string" }, - "pending": { - "type": "boolean" + "token": { + "type": "string" }, "deaf": { "type": "boolean" @@ -11838,160 +12464,105 @@ "mute": { "type": "boolean" }, - "premium_since": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" + "self_deaf": { + "type": "boolean" }, - "bio": { - "type": "string" + "self_mute": { + "type": "boolean" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "self_stream": { + "type": "boolean" }, - "pronouns": { - "type": "string" + "self_video": { + "type": "boolean" }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] + "suppress": { + "type": "boolean" }, - "user": { - "$ref": "#/components/schemas/PublicUser" + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "id": { + "type": "string" } }, "required": [ - "banner", - "bio", - "communication_disabled_until", + "channel", + "channel_id", "deaf", - "flags", "guild_id", "id", - "joined_at", + "member", "mute", - "pending", - "roles", - "user" + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" ] }, - "PublicUser": { + "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```", - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { + "channel_id": { "type": "string" }, - "banner": { - "type": "string" + "channel": { + "$ref": "#/components/schemas/Channel" }, - "bio": { + "user_id": { "type": "string" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "user": { + "$ref": "#/components/schemas/User" }, - "pronouns": { + "last_message_id": { "type": "string" }, - "username": { + "last_acked_id": { "type": "string" }, - "discriminator": { + "notifications_cursor": { "type": "string" }, - "public_flags": { - "type": "integer" - }, - "accent_color": { + "mention_count": { "type": "integer" }, - "bot": { - "type": "boolean" - }, - "premium_type": { + "badge_count": { "type": "integer" }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" + "last_pin_timestamp": { + "type": "string", + "format": "date-time" }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" + "read_state_type": { + "$ref": "#/components/schemas/ReadStateType" }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" + "flags": { + "$ref": "#/components/schemas/ReadStateFlags" }, - "primary_guild": { - "$ref": "#/components/schemas/PrimaryGuild" + "id": { + "type": "string" } }, "required": [ - "bio", - "bot", - "discriminator", + "badge_count", + "channel", + "channel_id", + "flags", "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object" - }, - "GameActivity": { - "type": "object", - "properties": { - "activity_level": { - "type": "integer" - }, - "activity_score": { - "type": "integer" - } - }, - "required": [ - "activity_level", - "activity_score" + "mention_count", + "notifications_cursor", + "read_state_type", + "user", + "user_id" ] }, - "GuildBadgeType": { + "ReadStateType": { "type": "number", "enum": [ 0, @@ -11999,1053 +12570,398 @@ 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" - }, - "label": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "required": [ - "emoji_animated", - "emoji_id", - "emoji_name", - "label", - "position" + 5 ] }, - "GuildVisibilityLevel": { + "ReadStateFlags": { "type": "number", "enum": [ 1, 2, - 3 + 4 ] }, - "InstanceUserDeleteSchemaContent": { + "ThreadMetadata": { "type": "object", "properties": { - "reason": { - "type": "string" - }, - "persistInstanceBan": { + "archived": { "type": "boolean" - } - } - }, - "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" + "auto_archive_duration": { + "type": "integer" }, - "discriminator": { + "archive_timestamp": { "type": "string" }, - "global_name": { - "type": "string", - "nullable": true - }, - "avatar": { - "type": "string", - "nullable": true - }, - "avatar_decoration_data": { - "anyOf": [ - { - "$ref": "#/components/schemas/AvatarDecorationData" - }, - { - "type": "null" - } - ] - }, - "collectibles": { - "anyOf": [ - { - "$ref": "#/components/schemas/Collectibles" - }, - { - "type": "null" - } - ] - }, - "display_name_styles": { - "anyOf": [ - { - "$ref": "#/components/schemas/DisplayNameStyle" - }, - { - "type": "null" - } - ] - }, - "primary_guild": { - "anyOf": [ - { - "$ref": "#/components/schemas/PrimaryGuild" - }, - { - "type": "null" - } - ] - }, - "bot": { + "locked": { "type": "boolean" }, - "system": { + "invitable": { "type": "boolean" }, - "banner": { - "type": "string", - "nullable": true - }, - "accent_color": { - "type": "integer", - "nullable": true - }, - "public_flags": { - "type": "integer" + "create_timestamp": { + "type": "string" } }, "required": [ - "avatar", - "discriminator", - "id", - "username" + "archive_timestamp", + "archived", + "auto_archive_duration", + "create_timestamp", + "locked" ] }, - "Classification": { + "Tag": { "type": "object", "properties": { - "id": { + "channel_id": { "type": "string" }, - "classification_type": { - "$ref": "#/components/schemas/ClassificationType" - }, - "description": { - "type": "string" + "channel": { + "$ref": "#/components/schemas/Channel" }, - "explainer_link": { + "name": { "type": "string" }, - "actions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationAction" - } + "moderated": { + "type": "boolean", + "default": false }, - "max_expiration_time": { + "emoji_id": { "type": "string" }, - "flagged_content": { - "type": "array", - "items": {} - }, - "appeal_status": { - "$ref": "#/components/schemas/AppealStatus" - }, - "is_coppa": { - "type": "boolean" - }, - "is_spam": { - "type": "boolean" + "emoji_name": { + "type": "string" }, - "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 + "channel", + "channel_id", + "id", + "moderated", + "name" ] }, - "GuildClassification": { + "Ban": { "type": "object", "properties": { - "guild_metadata": { - "$ref": "#/components/schemas/GuildMetadata" - }, - "id": { + "user_id": { "type": "string" }, - "classification_type": { - "$ref": "#/components/schemas/ClassificationType" - }, - "description": { - "type": "string" + "user": { + "$ref": "#/components/schemas/User" }, - "explainer_link": { + "guild_id": { "type": "string" }, - "actions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClassificationAction" - } + "guild": { + "$ref": "#/components/schemas/Guild" }, - "max_expiration_time": { + "executor_id": { "type": "string" }, - "flagged_content": { - "type": "array", - "items": {} - }, - "appeal_status": { - "$ref": "#/components/schemas/AppealStatus" - }, - "is_coppa": { - "type": "boolean" - }, - "is_spam": { - "type": "boolean" + "executor": { + "$ref": "#/components/schemas/User" }, - "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": { + "ip": { "type": "string" }, - "icon": { + "reason": { "type": "string" }, - "member_type": { - "$ref": "#/components/schemas/GuildMemberType" + "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 + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "user", + "user_id" ] }, - "CollectiblesCategoryItem": { + "Template": { "type": "object", "properties": { - "sku_id": { + "code": { "type": "string" }, "name": { "type": "string" }, - "summary": { - "type": "string" - }, - "store_listing_id": { - "type": "string" - }, - "banner": { + "description": { "type": "string" }, - "unpublished_at": { - "type": "string", - "nullable": true - }, - "styles": { - "$ref": "#/components/schemas/CollectiblesCategoryStyle" + "usage_count": { + "type": "integer" }, - "logo": { + "creator_id": { "type": "string" }, - "hero_ranking": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "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 + "creator": { + "$ref": "#/components/schemas/User" }, - "hero_banner": { + "created_at": { "type": "string", - "nullable": true + "format": "date-time" }, - "wide_banner": { + "updated_at": { "type": "string", - "nullable": true + "format": "date-time" }, - "hero_logo": { - "type": "string", - "nullable": true + "source_guild_id": { + "type": "string" }, - "products": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CollectiblesCategoryProductItem" - } + "source_guild": { + "$ref": "#/components/schemas/Guild" }, - "banner_asset": { - "$ref": "#/components/schemas/StaticAnimatedAsset" + "serialized_source_guild": { + "$ref": "#/components/schemas/Guild" }, - "hero_banner_asset": { - "$ref": "#/components/schemas/StaticAnimatedAsset" + "id": { + "type": "string" } }, "required": [ - "banner", - "featured_block", - "hero_banner", - "hero_logo", - "hero_ranking", - "logo", - "mobile_banner", - "mobile_bg", + "code", + "created_at", + "creator", + "creator_id", + "id", "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": { - "type": "integer" - } - }, - "button_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "confetti_colors": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "required": [ - "background_colors", - "button_colors", - "confetti_colors" + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" ] }, - "CollectiblesCategoryProductItem": { + "Emoji": { "type": "object", "properties": { - "sku_id": { - "type": "string" + "animated": { + "type": "boolean" }, - "name": { - "type": "string" + "available": { + "type": "boolean" }, - "summary": { + "guild_id": { "type": "string" }, - "store_listing_id": { - "type": "string" + "guild": { + "$ref": "#/components/schemas/Guild" }, - "banner": { + "user_id": { "type": "string" }, - "unpublished_at": { - "type": "string", - "nullable": true - }, - "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" + "user": { + "$ref": "#/components/schemas/User" }, - "premium_type": { - "type": "integer" + "managed": { + "type": "boolean" }, - "category_sku_id": { + "name": { "type": "string" }, - "google_sku_ids": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "require_colons": { + "type": "boolean" }, - "variants": { + "roles": { "type": "array", "items": { - "$ref": "#/components/schemas/ProductItemVariant" + "type": "string" } - } - }, - "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" }, - "prices": { + "groups": { "type": "array", "items": { - "$ref": "#/components/schemas/PriceEntry" + "type": "string" } - } - }, - "required": [ - "country_code", - "prices" - ] - }, - "PriceEntry": { - "type": "object", - "properties": { - "amount": { - "type": "integer" - }, - "currency": { - "type": "string" - }, - "exponent": { - "type": "integer" - } - }, - "required": [ - "amount", - "currency", - "exponent" - ] - }, - "ProductItem": { - "type": "object", - "properties": { - "type": { - "type": "integer" }, "id": { "type": "string" - }, - "sku_id": { - "type": "string" - }, - "asset": { - "type": "string" - }, - "label": { - "type": "string" - }, - "palette": { - "type": "string" } }, "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", "id", - "sku_id", - "type" + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" ] }, - "ProductItemVariant": { + "GuildWelcomeScreen": { "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" + "enabled": { + "type": "boolean" }, - "banner": { + "description": { "type": "string" }, - "unpublished_at": { - "type": "string", - "nullable": true - }, - "styles": { - "$ref": "#/components/schemas/CollectiblesCategoryStyle" - }, - "prices": { - "type": "object", - "additionalProperties": { + "welcome_channels": { + "type": "array", + "items": { "type": "object", "properties": { - "country_prices": { - "$ref": "#/components/schemas/CountryPrice" + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "country_prices" + "channel_id", + "description" ] } - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/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" } }, "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", - "nullable": true - }, - "static": { - "type": "string" - } - }, - "required": [ - "animated", - "static" + "description", + "enabled", + "welcome_channels" ] }, - "CollectiblesMarketingItem": { + "PartialMessage": { + "description": "https://docs.discord.food/resources/message#partial-message-structure", "type": "object", "properties": { - "type": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "title": { + "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" }, - "body": { + "channel_id": { "type": "string" - } - }, - "required": [ - "body", - "title", - "type", - "version" - ] - }, - "AnyShopBlock": { - "anyOf": [ - { - "$ref": "#/components/schemas/ItemRowShopBlock" - }, - { - "$ref": "#/components/schemas/BundleTileRowShopBlock" }, - { - "$ref": "#/components/schemas/ItemCollectionShopBlock" - } - ] - }, - "ItemRowShopBlock": { - "type": "object", - "properties": { "type": { - "type": "integer", - "const": 0 - }, - "category_sku_id": { - "type": "string" - }, - "name": { - "type": "string" + "$ref": "#/components/schemas/MessageType" }, - "category_store_listing_id": { + "content": { "type": "string" }, - "banner_asset": { - "$ref": "#/components/schemas/StaticAnimatedAsset" - }, - "logo_url": { - "type": "string" + "author": { + "$ref": "#/components/schemas/PartialUser" }, - "unpublished_at": { - "type": "string", - "nullable": true + "flags": { + "type": "integer" }, - "summary": { + "application_id": { "type": "string" - }, - "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 - }, - "subblocks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ShopBlockSubBlock" - } } }, "required": [ - "subblocks", + "author", + "channel_id", + "content", + "id", "type" ] }, - "ShopBlockSubBlock": { + "PartialUser": { "type": "object", "properties": { - "type": { - "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" }, - "category_store_listing_id": { + "username": { "type": "string" }, - "name": { + "discriminator": { "type": "string" }, - "unpublished_at": { + "global_name": { "type": "string", "nullable": true }, - "banner_url": { - "type": "string" - }, - "body_text": { + "avatar": { "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 + "avatar_decoration_data": { + "anyOf": [ + { + "$ref": "#/components/schemas/AvatarDecorationData" + }, + { + "type": "null" + } + ] }, - "ranked_sku_ids": { - "type": "array", - "items": { - "type": "string" - } + "collectibles": { + "anyOf": [ + { + "$ref": "#/components/schemas/Collectibles" + }, + { + "type": "null" + } + ] }, - "sorted_sku_ids": { - "type": "object", - "properties": { - "recommended": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] + "display_name_styles": { + "anyOf": [ + { + "$ref": "#/components/schemas/DisplayNameStyle" }, - "popular": { - "type": "array", - "items": { - "type": "string" - } + { + "type": "null" } - }, - "additionalProperties": false, - "required": [ - "popular", - "recommended" ] - } - }, - "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" + "primary_guild": { + "anyOf": [ + { + "$ref": "#/components/schemas/PrimaryGuild" + }, + { + "type": "null" + } + ] }, - "type": { - "$ref": "#/components/schemas/MessageType" + "bot": { + "type": "boolean" }, - "content": { - "type": "string" + "system": { + "type": "boolean" }, - "author": { - "$ref": "#/components/schemas/PartialUser" + "banner": { + "type": "string", + "nullable": true }, - "flags": { - "type": "integer" + "accent_color": { + "type": "integer", + "nullable": true }, - "application_id": { - "type": "string" + "public_flags": { + "type": "integer" } }, "required": [ - "author", - "channel_id", - "content", + "avatar", + "discriminator", "id", - "type" + "username" ] }, "HubGuild": { @@ -13196,7 +13112,7 @@ "components": { "type": "array", "items": { - "$ref": "#/components/schemas/ActionRowComponent" + "$ref": "#/components/schemas/BaseMessageComponents" } }, "poll": { @@ -13226,6 +13142,83 @@ "type" ] }, + "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": "#/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" + ] + }, "GuildVanityUrl": { "type": "object", "properties": { @@ -13252,6 +13245,10 @@ "code" ] }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object" + }, "HubDirectoryEntry": { "type": "object", "properties": { @@ -13501,6 +13498,434 @@ "user" ] }, + "InteractionCallbackType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12 + ] + }, + "PongCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.PONG" + }, + "data": {} + }, + "required": [ + "data", + "type" + ] + }, + "InteractionCallbackType.PONG": { + "type": "number", + "const": 1 + }, + "AckCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.ACKNOWLEDGE" + }, + "data": {} + }, + "required": [ + "data", + "type" + ] + }, + "InteractionCallbackType.ACKNOWLEDGE": { + "type": "number", + "const": 2 + }, + "MessageCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.CHANNEL_MESSAGE" + }, + "data": {} + }, + "required": [ + "data", + "type" + ] + }, + "InteractionCallbackType.CHANNEL_MESSAGE": { + "type": "number", + "const": 3 + }, + "MessageWSourceCallback": { + "type": "object", + "properties": { + "type": { + "$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" + }, + "tts": { + "type": "boolean" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "allowed_mentions": { + "$ref": "#/components/schemas/AllowedMentions" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BaseMessageComponents" + } + }, + "flags": { + "type": "integer" + }, + "attachments": { + "type": "array", + "items": { + "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/PollCreationSchema" + } + } + }, + "MessageDWSourceCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE" + }, + "data": { + "$ref": "#/components/schemas/InteractionMessage" + } + }, + "required": [ + "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" + ] + }, + "InteractionCallbackType.UPDATE_MESSAGE": { + "type": "number", + "const": 7 + }, + "MessageDUpdateCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/InteractionCallbackType.DEFERRED_UPDATE_MESSAGE" + }, + "data": { + "$ref": "#/components/schemas/InteractionMessage" + } + }, + "required": [ + "data", + "type" + ] + }, + "InteractionCallbackType.DEFERRED_UPDATE_MESSAGE": { + "type": "number", + "const": 6 + }, + "InteractionGuild": { + "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" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "locale": { + "type": "string" + } + }, + "required": [ + "features", + "id", + "locale" + ] + }, + "PublicMember": { + "type": "object", + "properties": { + "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" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, + "avatar": { + "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": "#/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" + ] + }, + "InstanceUserDeleteSchemaContent": { + "type": "object", + "properties": { + "reason": { + "type": "string" + }, + "persistInstanceBan": { + "type": "boolean" + } + } + }, + "GameActivity": { + "type": "object", + "properties": { + "activity_level": { + "type": "integer" + }, + "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" + }, + "label": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "required": [ + "emoji_animated", + "emoji_id", + "emoji_name", + "label", + "position" + ] + }, + "GuildVisibilityLevel": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ] + }, "DmChannelDTO": { "type": "object", "properties": { @@ -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,269 +224,426 @@ ], "$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": { + "permissions": { "type": "string" }, - "channel": { - "$ref": "#/definitions/Channel" + "captcha_key": { + "type": "string" }, - "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```", + "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" }, - "member": { - "$ref": "#/definitions/PublicMember" + "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 }, - "user": { - "$ref": "#/definitions/PublicUser" + "presets": { + "type": "array", + "items": [ + { + "type": "integer" + } + ], + "minItems": 1, + "maxItems": 1 + } + }, + "additionalProperties": false, + "required": [ + "allow_list", + "presets" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AutomodCustomWordsRuleSchema": { + "type": "object", + "properties": { + "allow_list": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "locale": { + "keyword_filter": { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 + }, + "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": { "type": "string" }, - "message": { - "$ref": "#/definitions/Message" + "enabled": { + "type": "boolean" }, - "app_permissions": { - "type": "string" + "event_type": { + "type": "integer" }, - "entitlements": { + "exempt_channels": { "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 }, - "entitlement_sku_ids": { + "exempt_roles": { "type": "array", - "items": { - "type": "string" - } - }, - "authorizing_integration_owners": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { + "items": [ + { "type": "string" } - } + ], + "minItems": 1, + "maxItems": 1 }, - "context": { + "guild_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { "type": "integer" }, - "attachment_size_limit": { + "trigger_type": { "type": "integer" + }, + "trigger_metadata": { + "anyOf": [ + { + "$ref": "#/definitions/AutomodMentionSpamRuleSchema" + }, + { + "$ref": "#/definitions/AutomodSuspectedSpamRuleSchema" + }, + { + "$ref": "#/definitions/AutomodCommonlyFlaggedWordsRuleSchema" + }, + { + "$ref": "#/definitions/AutomodCustomWordsRuleSchema" + } + ] } }, "additionalProperties": false, "required": [ - "app_permissions", - "application_id", - "attachment_size_limit", - "id", - "token", - "type", - "version" + "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#" }, - "ApplicationCreateSchema": { + "BackupCodesChallengeSchema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "team_id": { + "password": { + "minLength": 1, + "maxLength": 72, "type": "string" } }, "additionalProperties": false, "required": [ - "name" + "password" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationModifySchema": { + "BanCreateSchema": { "type": "object", "properties": { - "description": { - "type": "string" + "delete_message_seconds": { + "type": "integer" }, - "icon": { - "type": "string" + "delete_message_days": { + "type": "integer" }, - "cover_image": { + "reason": { "type": "string" - }, - "interactions_endpoint_url": { + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BanModeratorSchema": { + "type": "object", + "properties": { + "id": { "type": "string" }, - "max_participants": { - "type": [ - "null", - "integer" - ] - }, - "name": { + "user_id": { "type": "string" }, - "privacy_policy_url": { + "guild_id": { "type": "string" }, - "role_connections_verification_url": { + "executor_id": { "type": "string" }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "terms_of_service_url": { + "reason": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BanRegistrySchema": { + "type": "object", + "properties": { + "id": { "type": "string" }, - "bot_public": { - "type": "boolean" + "user_id": { + "type": "string" }, - "bot_require_code_grant": { - "type": "boolean" + "guild_id": { + "type": "string" }, - "flags": { - "type": "integer" + "executor_id": { + "type": "string" }, - "custom_install_url": { + "ip": { "type": "string" }, - "guild_id": { + "reason": { "type": "string" } }, "additionalProperties": false, + "required": [ + "executor_id", + "guild_id", + "id", + "user_id" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "SendableApplicationCommandDataSchema": { + "BotModifySchema": { "type": "object", "properties": { - "id": { - "$ref": "#/definitions/Snowflake" - }, - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "name": { + "avatar": { "type": "string" }, - "version": { - "$ref": "#/definitions/Snowflake" - }, - "application_command": { - "type": "object", - "properties": {}, - "additionalProperties": true + "username": { + "type": "string" }, - "options": { + "banner": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BulkBanSchema": { + "type": "object", + "properties": { + "user_ids": { "type": "array", "items": { - "$ref": "#/definitions/ApplicationCommandOption" + "type": "string" } }, - "target_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/definitions/Snowflake" - }, - "attachments": { + "delete_message_seconds": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "user_ids" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BulkDeleteSchema": { + "type": "object", + "properties": { + "messages": { "type": "array", "items": { - "type": "object", - "properties": {}, - "additionalProperties": true + "type": "string" } } }, "additionalProperties": false, "required": [ - "id", - "name", - "version" + "messages" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "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, @@ -497,791 +654,806 @@ ], "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#" - }, - "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#" - }, - "GuildProfileResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { + "topic": { "type": "string" }, - "icon_hash": { + "icon": { "type": [ "null", "string" ] }, - "member_count": { + "bitrate": { "type": "integer" }, - "online_count": { + "user_limit": { "type": "integer" }, - "description": { - "type": "string" + "rate_limit_per_user": { + "type": "integer" }, - "brand_color_primary": { - "type": "string" + "position": { + "type": "integer" }, - "banner_hash": { - "type": [ - "null", - "string" - ] + "invitable": { + "type": "boolean" }, - "game_application_ids": { + "permission_overwrites": { "type": "array", "items": { - "type": "string" + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + }, + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" + ] } }, - "game_activity": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/GameActivity" + "applied_tags": { + "type": "array", + "items": { + "type": "string" } }, - "tag": { - "type": [ - "null", - "string" - ] - }, - "badge": { - "$ref": "#/definitions/GuildBadgeType" - }, - "badge_color_primary": { - "type": "string" - }, - "badge_color_secondary": { + "parent_id": { "type": "string" }, - "badge_hash": { + "id": { "type": "string" }, - "traits": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildTrait" - } + "nsfw": { + "type": "boolean" }, - "features": { - "type": "array", - "items": { - "type": "string" - } + "rtc_region": { + "type": "string" }, - "visibility": { - "$ref": "#/definitions/GuildVisibilityLevel" + "default_auto_archive_duration": { + "type": "integer" }, - "custom_banner_hash": { + "default_reaction_emoji": { "type": [ "null", "string" ] }, - "premium_subscription_count": { + "flags": { "type": "integer" }, - "premium_tier": { + "default_thread_rate_limit_per_user": { + "type": "integer" + }, + "video_quality_mode": { + "type": "integer" + }, + "auto_archive_duration": { "type": "integer" + }, + "archived": { + "type": "boolean" + }, + "locked": { + "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" + ] + } } }, "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" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildAvailableSchema": { + "ChannelPermissionOverwriteSchema": { "type": "object", "properties": { + "allow": { + "type": "string" + }, + "deny": { + "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" }, - "available": { - "type": "boolean" + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" } }, "additionalProperties": false, "required": [ - "available", - "id" + "allow", + "deny", + "id", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceUserDeleteSchema": { - "$ref": "#/definitions/InstanceUserDeleteSchemaContent", + "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#" }, - "UserSettingsUpdateSchema": { + "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": [ + "access_token", + "scope", + "token_type" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "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": "#/definitions/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": {} + }, + "additionalProperties": false, + "required": [ + "friend_sync", + "insecure", + "state" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ConnectionUpdateSchema": { + "type": "object", + "properties": { + "visibility": { "type": "boolean" }, - "explicit_content_filter": { - "type": "integer" - }, - "friend_discovery_flags": { - "type": "integer" - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { + "show_activity": { "type": "boolean" }, - "gif_auto_play": { + "metadata_visibility": { "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "DmChannelCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/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": { + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" } }, "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" + "allow_multiple_guilds", + "email", + "use_verification_code" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StickersResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/StickerResponse" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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" + } + }, + "additionalProperties": false, + "required": [ + "code", + "email", + "guild_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmojiCreateSchema": { + "type": "object", + "properties": { "name": { "type": "string" }, - "description": { + "image": { + "type": "string" + }, + "require_colons": { "type": [ "null", - "string" + "boolean" ] }, - "tags": { + "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" }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/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```", + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ForgotPasswordSchema": { + "type": "object", + "properties": { + "login": { "type": "string" }, - "user": { - "$ref": "#/definitions/PartialUser" - }, - "sort_value": { - "type": "integer" + "captcha_key": { + "type": "string" } }, "additionalProperties": false, "required": [ - "description", - "format_type", - "id", - "name", - "tags", - "type" + "login" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "IdentifySchema": { + "GreetRequestSchema": { "type": "object", "properties": { - "token": { - "type": "string" + "sticker_ids": { + "type": "array", + "items": { + "type": "string" + } }, - "properties": { + "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": { - "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 + "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" }, - "intents": { - "type": "bigint" + "region": { + "type": "string" }, - "presence": { - "$ref": "#/definitions/ActivitySchema" + "icon": { + "type": [ + "null", + "string" + ] }, - "compress": { + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelCreateSchema" + } + }, + "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#" + }, + "GuildSubscriptionsBulkSchema": { + "type": "object", + "properties": { + "subscriptions": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/GuildSubscriptionSchema" + } + } + }, + "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" + } + } + } + }, + "activities": { "type": "boolean" }, - "large_threshold": { - "type": "integer" + "threads": { + "type": "boolean" }, - "largeThreshold": { - "type": "integer" + "typing": { + "const": true, + "type": "boolean" }, - "shard": { - "minItems": 2, - "maxItems": 2, + "members": { "type": "array", "items": { - "type": "bigint" + "type": "string" } }, - "guild_subscriptions": { + "member_updates": { "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 + "thread_member_lists": { + "type": "array", + "items": {} + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildTemplateCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "v": { - "type": "integer" + "icon": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "properties", - "token" + "name" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StreamCreateSchema": { + "GuildUpdateSchema": { "type": "object", "properties": { - "type": { - "enum": [ - "call", - "guild" - ], + "banner": { + "type": [ + "null", + "string" + ] + }, + "splash": { + "type": [ + "null", + "string" + ] + }, + "description": { "type": "string" }, - "channel_id": { + "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" }, - "guild_id": { + "afk_timeout": { + "type": "integer" + }, + "afk_channel_id": { "type": "string" }, - "preferred_region": { + "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, - "required": [ - "channel_id", - "type" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StreamDeleteSchema": { + "GuildUpdateWelcomeScreenSchema": { "type": "object", "properties": { - "stream_key": { + "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, - "required": [ - "stream_key" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StreamWatchSchema": { + "HubWaitlistSignupSchema": { "type": "object", "properties": { - "stream_key": { + "email": { + "type": "string" + }, + "school": { "type": "string" } }, "additionalProperties": false, "required": [ - "stream_key" + "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": { @@ -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,70 +2831,1331 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuild": { + "ApplicationCommandCreateSchema": { "type": "object", "properties": { + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, "name": { "type": "string" }, - "region": { + "name_localizations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "description": { "type": "string" }, - "insert": { + "description_localizations": { "type": "object", - "additionalProperties": false + "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#" + }, + "InteractionCallbackSchema": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType" + }, + "data": {} + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbacksSchema": { + "anyOf": [ + { + "$ref": "#/definitions/PongCallback" + }, + { + "$ref": "#/definitions/AckCallback" + }, + { + "$ref": "#/definitions/MessageCallback" + }, + { + "$ref": "#/definitions/MessageWSourceCallback" + }, + { + "$ref": "#/definitions/MessageDWSourceCallback" + }, + { + "$ref": "#/definitions/MessageUpdateCallback" + }, + { + "$ref": "#/definitions/MessageDUpdateCallback" + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCreateSchema": { + "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" + }, + "token": { + "type": "string" + }, + "data": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "guild": { + "$ref": "#/definitions/InteractionGuild" + }, + "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```", + "type": "string" + }, + "member": { + "$ref": "#/definitions/PublicMember" + }, + "user": { + "$ref": "#/definitions/PublicUser" + }, + "locale": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "app_permissions": { + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "team_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationModifySchema": { + "type": "object", + "properties": { + "description": { "type": "string" }, "icon": { "type": "string" }, - "parent": { + "cover_image": { "type": "string" }, - "owner_id": { + "interactions_endpoint_url": { "type": "string" }, - "nsfw": { + "max_participants": { + "type": [ + "null", + "integer" + ] + }, + "name": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "role_connections_verification_url": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "terms_of_service_url": { + "type": "string" + }, + "bot_public": { "type": "boolean" }, - "invites": { + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "custom_install_url": { + "type": "string" + }, + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SendableApplicationCommandDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/Snowflake" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "name": { + "type": "string" + }, + "version": { + "$ref": "#/definitions/Snowflake" + }, + "application_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "options": { "type": "array", "items": { - "$ref": "#/definitions/Invite" + "$ref": "#/definitions/ApplicationCommandOption" } }, - "voice_states": { + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "attachments": { "type": "array", "items": { - "$ref": "#/definitions/VoiceState" + "type": "object", + "properties": {}, + "additionalProperties": true } + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "version" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" }, - "webhooks": { + "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#" + }, + "SendableModalSubmitDataSchema": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/Snowflake" + }, + "custom_id": { + "type": "string" + }, + "attachments": { "type": "array", "items": { - "$ref": "#/definitions/Webhook" + "$ref": "#/definitions/UploadAttachmentRequestSchema" + } + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InstanceUserDeleteSchema": { + "$ref": "#/definitions/InstanceUserDeleteSchemaContent", + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserSettingsUpdateSchema": { + "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": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ] + }, + "default_guilds_restricted": { + "type": "boolean" + }, + "detect_platform_accounts": { + "type": "boolean" + }, + "developer_mode": { + "type": "boolean" + }, + "disable_games_tab": { + "type": "boolean" + }, + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { + "type": "integer" + }, + "friend_discovery_flags": { + "type": "integer" + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + } + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { + "type": "boolean" + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string" + }, + "timezone_offset": { + "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserSettingsSchema": { + "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": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ] + }, + "default_guilds_restricted": { + "type": "boolean" + }, + "detect_platform_accounts": { + "type": "boolean" + }, + "developer_mode": { + "type": "boolean" + }, + "disable_games_tab": { + "type": "boolean" + }, + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { + "type": "integer" + }, + "friend_discovery_flags": { + "type": "integer" + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + } + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" } }, + "show_current_game": { + "type": "boolean" + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string" + }, + "timezone_offset": { + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildProfileResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "icon_hash": { + "type": [ + "null", + "string" + ] + }, "member_count": { "type": "integer" }, - "get_annotations": { + "online_count": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "brand_color_primary": { + "type": "string" + }, + "banner_hash": { + "type": [ + "null", + "string" + ] + }, + "game_application_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": { + "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" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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#" + }, + "StickersResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/StickerResponse" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StickerResponse": { + "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" + }, + "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" + }, + "name": { + "type": "string" + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "tags": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/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": "#/definitions/PartialUser" + }, + "sort_value": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "description", + "format_type", + "id", + "name", + "tags", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "IdentifySchema": { + "type": "object", + "properties": { + "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 }, - "clean_data": { + "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 }, - "roles": { + "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": false, + "required": [ + "properties", + "token" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StreamCreateSchema": { + "type": "object", + "properties": { + "type": { + "enum": [ + "call", + "guild" + ], + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "preferred_region": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StreamDeleteSchema": { + "type": "object", + "properties": { + "stream_key": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "stream_key" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StreamWatchSchema": { + "type": "object", + "properties": { + "stream_key": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "stream_key" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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": { - "$ref": "#/definitions/Role" + "type": "object", + "properties": { + "type": { + "enum": [ + "audio", + "screen", + "video" + ], + "type": "string" + }, + "rid": { + "type": "string" + }, + "quality": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "quality", + "rid", + "type" + ] } }, - "banner": { + "max_secure_frames_version": { + "type": "integer" + }, + "max_dave_protocol_version": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "server_id", + "session_id", + "token", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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": [ + "rid", + "type" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "audio_ssrc", + "video_ssrc" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIGuild": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "region": { + "type": "string" + }, + "insert": { + "type": "object", + "additionalProperties": false + }, + "id": { "type": "string" }, "channels": { @@ -2737,6 +4164,15 @@ "$ref": "#/definitions/Channel" } }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "icon": { + "type": "string" + }, "system_channel_id": { "type": [ "null", @@ -2749,6 +4185,9 @@ "string" ] }, + "banner": { + "type": "string" + }, "splash": { "type": "string" }, @@ -2797,6 +4236,50 @@ "discovery_splash": { "type": "string" }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "parent": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "nsfw": { + "type": "boolean" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "member_count": { + "type": "integer" + }, + "get_annotations": { + "type": "object", + "additionalProperties": false + }, + "clean_data": { + "type": "object", + "additionalProperties": false + }, "bans": { "type": "array", "items": { @@ -2821,12 +4304,6 @@ "presence_count": { "type": "integer" }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, "template_id": { "type": "string" }, @@ -2919,6 +4396,9 @@ "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" @@ -2926,9 +4406,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -3004,6 +4481,9 @@ "flags": { "type": "integer" }, + "banner": { + "type": "string" + }, "verified": { "type": "boolean" }, @@ -3014,9 +4494,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -3148,6 +4625,9 @@ "flags": { "type": "integer" }, + "banner": { + "type": "string" + }, "verified": { "type": "boolean" }, @@ -3158,9 +4638,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -3309,64 +4786,55 @@ "type": "object", "properties": { "instanceName": { - "type": "string", - "default": "Spacebar Instance" + "type": "string" }, "serverName": { "type": [ "null", "string" - ], - "default": null + ] }, "instanceDescription": { "type": [ "null", "string" - ], - "default": "This is a Spacebar instance made in the pre-release days" + ] }, "frontPage": { "type": [ "null", "string" - ], - "default": null + ] }, "tosPage": { "type": [ "null", "string" - ], - "default": null + ] }, "correspondenceEmail": { "type": [ "null", "string" - ], - "default": null + ] }, "correspondenceUserID": { "type": [ "null", "string" - ], - "default": null + ] }, "image": { "type": [ "null", "string" - ], - "default": null + ] }, "instanceId": { "type": "string" }, "autoCreateBotUsers": { - "type": "boolean", - "default": false + "type": "boolean" } }, "additionalProperties": false, @@ -3411,6 +4879,9 @@ "flags": { "type": "integer" }, + "banner": { + "type": "string" + }, "nick": { "type": "string" }, @@ -3433,9 +4904,6 @@ "avatar": { "type": "string" }, - "banner": { - "type": "string" - }, "bio": { "type": "string" }, @@ -3497,9 +4965,6 @@ "name": { "type": "string" }, - "primary_category_id": { - "type": "string" - }, "large": { "type": "boolean" }, @@ -3518,9 +4983,6 @@ "presence_count": { "type": "integer" }, - "template_id": { - "type": "string" - }, "mfa_level": { "type": "integer" }, @@ -3560,12 +5022,6 @@ "string" ] }, - "banner": { - "type": [ - "null", - "string" - ] - }, "system_channel_id": { "type": "string" }, @@ -3578,6 +5034,12 @@ "staff_only": { "type": "boolean" }, + "banner": { + "type": [ + "null", + "string" + ] + }, "splash": { "type": [ "null", @@ -3634,24 +5096,9 @@ "required": [ "id", "joined_at", - "large", - "max_members", - "max_presences", - "max_video_channel_users", - "member_count", - "mfa_level", "name", "nsfw", - "nsfw_level", - "owner_id", - "parent", - "premium_subscription_count", - "premium_tier", - "presence_count", - "primary_category_id", - "template_id", "welcome_screen", - "widget_channel_id", "widget_enabled" ], "$schema": "http://json-schema.org/draft-07/schema#" @@ -3962,1236 +5409,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "AckBulkSchema": { - "type": "object", - "properties": { - "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": [ - "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" - } - }, - "since": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "status" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "captcha_key": { - "type": "string" - }, - "code": { - "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": { - "type": "array", - "items": [ - { - "type": "integer" - } - ], - "minItems": 1, - "maxItems": 1 - } - }, - "additionalProperties": false, - "required": [ - "allow_list", - "presets" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AutomodCustomWordsRuleSchema": { - "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 - }, - "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": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "event_type": { - "type": "integer" - }, - "exempt_channels": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - }, - "exempt_roles": { - "type": "array", - "items": [ - { - "type": "string" - } - ], - "minItems": 1, - "maxItems": 1 - }, - "guild_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "trigger_type": { - "type": "integer" - }, - "trigger_metadata": { - "anyOf": [ - { - "$ref": "#/definitions/AutomodMentionSpamRuleSchema" - }, - { - "$ref": "#/definitions/AutomodSuspectedSpamRuleSchema" - }, - { - "$ref": "#/definitions/AutomodCommonlyFlaggedWordsRuleSchema" - }, - { - "$ref": "#/definitions/AutomodCustomWordsRuleSchema" - } - ] - } - }, - "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": { - "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" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BanRegistrySchema": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "executor_id": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor_id", - "guild_id", - "id", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BotModifySchema": { - "type": "object", - "properties": { - "avatar": { - "type": "string" - }, - "username": { - "type": "string" - }, - "banner": { - "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BulkBanSchema": { - "type": "object", - "properties": { - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "delete_message_seconds": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "user_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BulkDeleteSchema": { - "type": "object", - "properties": { - "messages": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "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": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "invitable": { - "type": "boolean" - }, - "permission_overwrites": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - }, - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ] - } - }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "parent_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "rtc_region": { - "type": "string" - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "default_reaction_emoji": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "default_thread_rate_limit_per_user": { - "type": "integer" - }, - "video_quality_mode": { - "type": "integer" - }, - "auto_archive_duration": { - "type": "integer" - }, - "archived": { - "type": "boolean" - }, - "locked": { - "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" - ] - } - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelPermissionOverwriteSchema": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" - } - }, - "additionalProperties": false, - "required": [ - "allow", - "deny", - "id", - "type" - ], - "$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": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "regenerate": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "key", - "nonce" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ConnectedAccountSchema": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "token_data": { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - "friend_sync": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean" - }, - "show_activity": { - "type": "integer" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "visibility": { - "type": "integer" - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer" - }, - "two_way_link": { - "type": "boolean" - } - }, - "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" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "scope", - "token_type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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#" - }, - "ConnectionUpdateSchema": { - "type": "object", - "properties": { - "visibility": { - "type": "boolean" - }, - "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" - }, - "recipients": { - "type": "array", - "items": { - "type": "string" - } - }, - "recipient_id": { - "type": "string" - }, - "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" - }, - "email": { - "type": "string" - }, - "use_verification_code": { - "type": "boolean" - }, - "guild_id": { - "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" - }, - "guild_id": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "email", - "guild_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmojiCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "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": { - "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" - }, - "region": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelCreateSchema" - } - }, - "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#" - }, - "GuildSubscriptionsBulkSchema": { - "type": "object", - "properties": { - "subscriptions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/GuildSubscriptionSchema" - } - } - }, - "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": {} - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildTemplateCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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#" - }, "MFAResponse": { "type": "object", "properties": { @@ -5473,52 +5690,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": "#/definitions/AllowedMentions" }, { "type": "null" @@ -5528,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" @@ -5631,7 +5785,7 @@ { "type": "array", "items": { - "$ref": "#/definitions/ActionRowComponent" + "$ref": "#/definitions/BaseMessageComponents" } }, { @@ -5823,52 +5977,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": "#/definitions/AllowedMentions" }, { "type": "null" @@ -5878,25 +5987,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" @@ -5969,7 +6060,7 @@ { "type": "array", "items": { - "$ref": "#/definitions/ActionRowComponent" + "$ref": "#/definitions/BaseMessageComponents" } }, { @@ -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,163 +7580,6 @@ "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, - "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" - } - }, - "additionalProperties": false, - "required": [ - "server_id", - "session_id", - "token", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "audio_ssrc", - "video_ssrc" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "EmojisResponse": { "type": "array", "items": { @@ -8139,9 +7994,385 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionCallbackType": { + "Status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Activity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ActivityType" + }, + "url": { + "type": "string" + }, + "created_at": { + "type": "integer" + }, + "timestamps": { + "type": "object", + "properties": { + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "end", + "start" + ] + }, + "application_id": { + "type": "string" + }, + "details": { + "type": "string" + }, + "state": { + "type": "string" + }, + "emoji": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "name" + ] + }, + "party": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "size": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false + }, + "assets": { + "type": "object", + "properties": { + "large_image": { + "type": "string" + }, + "large_text": { + "type": "string" + }, + "small_image": { + "type": "string" + }, + "small_text": { + "type": "string" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "object", + "properties": { + "join": { + "type": "string" + }, + "spectate": { + "type": "string" + }, + "match": { + "type": "string" + } + }, + "additionalProperties": false + }, + "instance": { + "type": "boolean" + }, + "flags": { + "type": "string" + }, + "id": { + "type": "string" + }, + "sync_id": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "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 + }, + "session_id": { + "type": "string" + } + }, + "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 + ], + "$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": { + "access_token": { + "type": "string" + }, + "token_type": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "refresh_token": { + "type": "string" + }, + "expires_in": { + "type": "integer" + }, + "expires_at": { + "type": "integer" + }, + "fetched_at": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "access_token", + "fetched_at" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Classification": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "classification_type": { + "$ref": "#/definitions/ClassificationType" + }, + "description": { + "type": "string" + }, + "explainer_link": { + "type": "string" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/ClassificationAction" + } + }, + "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" + } + }, + "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" + }, + "action_type": { + "$ref": "#/definitions/ClassificationActionType" + }, + "descriptions": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "action_type", + "descriptions", + "id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ClassificationActionType": { + "type": "number", + "enum": [ + 0, 1, 2, 3, @@ -8153,274 +8384,1062 @@ 9, 10, 11, - 12 + 12, + 13, + 14, + 15, + 16, + 20, + 22 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Message": { + "AppealStatus": { "type": "object", "properties": { - "channel_id": { + "status": { + "$ref": "#/definitions/AppealStatusValue" + } + }, + "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 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildClassification": { + "type": "object", + "properties": { + "guild_metadata": { + "$ref": "#/definitions/GuildMetadata" + }, + "id": { "type": "string" }, - "channel": { - "$ref": "#/definitions/Channel" + "classification_type": { + "$ref": "#/definitions/ClassificationType" }, - "thread_id": { + "description": { "type": "string" }, - "thread": { - "$ref": "#/definitions/Channel" + "explainer_link": { + "type": "string" }, - "guild_id": { + "actions": { + "type": "array", + "items": { + "$ref": "#/definitions/ClassificationAction" + } + }, + "max_expiration_time": { "type": "string" }, - "guild": { - "$ref": "#/definitions/Guild" + "flagged_content": { + "type": "array", + "items": {} }, - "author_id": { + "appeal_status": { + "$ref": "#/definitions/AppealStatus" + }, + "is_coppa": { + "type": "boolean" + }, + "is_spam": { + "type": "boolean" + }, + "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" }, - "author": { - "$ref": "#/definitions/User" + "icon": { + "type": "string" }, - "member_id": { + "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" }, - "member": { - "$ref": "#/definitions/Member" + "name": { + "type": "string" }, - "webhook_id": { + "summary": { "type": "string" }, - "webhook": { - "$ref": "#/definitions/Webhook" + "store_listing_id": { + "type": "string" }, - "application_id": { + "banner": { "type": "string" }, - "application": { - "$ref": "#/definitions/Application" + "unpublished_at": { + "type": [ + "null", + "string" + ] }, - "content": { + "styles": { + "$ref": "#/definitions/CollectiblesCategoryStyle" + }, + "logo": { "type": "string" }, - "timestamp": { - "type": "string", - "format": "date-time" + "hero_ranking": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, - "edited_timestamp": { - "type": "string", - "format": "date-time" + "mobile_bg": { + "type": [ + "null", + "string" + ] }, - "tts": { - "type": "boolean" + "pdp_bg": { + "type": [ + "null", + "string" + ] }, - "mention_everyone": { - "type": "boolean" + "success_modal_bg": { + "type": [ + "null", + "string" + ] }, - "mentions": { + "mobile_banner": { + "type": [ + "null", + "string" + ] + }, + "featured_block": { + "type": [ + "null", + "string" + ] + }, + "hero_banner": { + "type": [ + "null", + "string" + ] + }, + "wide_banner": { + "type": [ + "null", + "string" + ] + }, + "hero_logo": { + "type": [ + "null", + "string" + ] + }, + "products": { "type": "array", "items": { - "$ref": "#/definitions/User" + "$ref": "#/definitions/CollectiblesCategoryProductItem" } }, - "mention_roles": { + "banner_asset": { + "$ref": "#/definitions/StaticAnimatedAsset" + }, + "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/Role" + "type": "integer" } }, - "mention_channels": { + "button_colors": { "type": "array", "items": { - "$ref": "#/definitions/Channel" + "type": "integer" } }, - "sticker_items": { + "confetti_colors": { "type": "array", "items": { - "$ref": "#/definitions/Sticker" + "type": "integer" } + } + }, + "additionalProperties": false, + "required": [ + "background_colors", + "button_colors", + "confetti_colors" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesCategoryProductItem": { + "type": "object", + "properties": { + "sku_id": { + "type": "string" }, - "attachments": { + "name": { + "type": "string" + }, + "summary": { + "type": "string" + }, + "store_listing_id": { + "type": "string" + }, + "banner": { + "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/Attachment" + "$ref": "#/definitions/ProductItem" } }, - "embeds": { + "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/Embed" + "$ref": "#/definitions/ProductItemVariant" } + } + }, + "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": { + "type": "object", + "properties": { + "country_code": { + "type": "string" }, - "reactions": { + "prices": { "type": "array", "items": { - "$ref": "#/definitions/Reaction" + "$ref": "#/definitions/PriceEntry" } + } + }, + "additionalProperties": false, + "required": [ + "country_code", + "prices" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PriceEntry": { + "type": "object", + "properties": { + "amount": { + "type": "integer" }, - "nonce": { + "currency": { "type": "string" }, - "pinned_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } + "exponent": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "amount", + "currency", + "exponent" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ProductItem": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "asset": { + "type": "string" + }, + "label": { + "type": "string" + }, + "palette": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "sku_id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ProductItemVariant": { + "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" ] }, - "pinned": { - "type": "boolean" + "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": { - "$ref": "#/definitions/MessageType" + "type": "integer" }, - "activity": { + "premium_type": { + "type": "integer" + }, + "category_sku_id": { + "type": "string" + }, + "google_sku_ids": { "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" + "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" ] }, - "flags": { + "static": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "static" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesMarketingItem": { + "type": "object", + "properties": { + "type": { "type": "integer" }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false + "version": { + "type": "integer" }, - "referenced_message": { - "anyOf": [ - { - "$ref": "#/definitions/Message" - }, - { - "type": "null" - } + "title": { + "type": "string" + }, + "body": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "body", + "title", + "type", + "version" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AnyShopBlock": { + "anyOf": [ + { + "$ref": "#/definitions/ItemRowShopBlock" + }, + { + "$ref": "#/definitions/BundleTileRowShopBlock" + }, + { + "$ref": "#/definitions/ItemCollectionShopBlock" + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ItemRowShopBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "const": 0 + }, + "category_sku_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "category_store_listing_id": { + "type": "string" + }, + "banner_asset": { + "$ref": "#/definitions/StaticAnimatedAsset" + }, + "logo_url": { + "type": "string" + }, + "unpublished_at": { + "type": [ + "null", + "string" ] }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "type" + "summary": { + "type": "string" + }, + "ranked_sku_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "banner_asset", + "category_sku_id", + "category_store_listing_id", + "logo_url", + "name", + "ranked_sku_ids", + "summary", + "type", + "unpublished_at" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BundleTileRowShopBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "const": 1 + }, + "subblocks": { + "type": "array", + "items": { + "$ref": "#/definitions/ShopBlockSubBlock" + } + } + }, + "additionalProperties": false, + "required": [ + "subblocks", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ShopBlockSubBlock": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "category_store_listing_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "unpublished_at": { + "type": [ + "null", + "string" ] }, - "interaction_metadata": { + "banner_url": { + "type": "string" + }, + "body_text": { + "type": [ + "null", + "string" + ] + }, + "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 + }, + "ranked_sku_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "sorted_sku_ids": { "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" + "recommended": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] }, - "command_type": { - "$ref": "#/definitions/ApplicationCommandType" + "popular": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "authorizing_integration_owners", - "command_type", - "id", - "name", - "type", - "user_id" + "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" ] }, - "components": { + "afk_channel": { + "$ref": "#/definitions/Channel" + }, + "afk_timeout": { + "type": "integer" + }, + "bans": { "type": "array", "items": { - "$ref": "#/definitions/ActionRowComponent" + "$ref": "#/definitions/Ban" } }, - "poll": { - "$ref": "#/definitions/Poll" + "banner": { + "type": "string" }, - "username": { + "default_message_notifications": { + "type": "integer" + }, + "description": { "type": "string" }, - "avatar": { + "discovery_splash": { "type": "string" }, - "message_snapshots": { + "explicit_content_filter": { + "type": "integer" + }, + "features": { "type": "array", "items": { - "$ref": "#/definitions/MessageSnapshot" + "type": "string" + }, + "default": [] + }, + "primary_category_id": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "large": { + "type": "boolean", + "default": false + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "template_id": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/Template" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "mfa_level": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": [ + "null", + "string" + ] + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": [ + "null", + "string" + ] + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": [ + "null", + "string" + ] + }, + "system_channel": { + "$ref": "#/definitions/Channel" + }, + "system_channel_flags": { + "type": "integer" + }, + "unavailable": { + "type": "boolean", + "default": false + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen", + "description": "DEPRECATED: Look at the new Guild onboarding screens." + }, + "widget_channel_id": { + "type": "string" + }, + "widget_channel": { + "$ref": "#/definitions/Channel" + }, + "widget_enabled": { + "type": "boolean", + "default": true + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "parent": { + "type": "string" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean", + "default": false + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" } }, + "discovery_weight": { + "type": "integer", + "default": 0 + }, + "discovery_excluded": { + "type": "boolean", + "default": false + }, "id": { "type": "string" } }, "additionalProperties": false, "required": [ - "channel", - "embeds", - "flags", + "bans", + "channel_ordering", + "channels", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", "id", - "mention_channels", - "mention_roles", - "mentions", - "message_snapshots", - "pinned", - "reactions", - "timestamp", - "type" + "invites", + "members", + "name", + "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#" }, @@ -8583,6 +9602,12 @@ "type": "string" } }, + "status": { + "type": [ + "null", + "string" + ] + }, "position": { "description": "Must be calculated Channel.calculatePosition", "type": "integer" @@ -8970,171 +9995,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Activity": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ActivityType" - }, - "url": { - "type": "string" - }, - "created_at": { - "type": "integer" - }, - "timestamps": { - "type": "object", - "properties": { - "start": { - "type": "integer" - }, - "end": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end", - "start" - ] - }, - "application_id": { - "type": "string" - }, - "details": { - "type": "string" - }, - "state": { - "type": "string" - }, - "emoji": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "name" - ] - }, - "party": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "size": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false - }, - "assets": { - "type": "object", - "properties": { - "large_image": { - "type": "string" - }, - "large_text": { - "type": "string" - }, - "small_image": { - "type": "string" - }, - "small_text": { - "type": "string" - } - }, - "additionalProperties": false - }, - "secrets": { - "type": "object", - "properties": { - "join": { - "type": "string" - }, - "spectate": { - "type": "string" - }, - "match": { - "type": "string" - } - }, - "additionalProperties": false - }, - "instance": { - "type": "boolean" - }, - "flags": { - "type": "string" - }, - "id": { - "type": "string" - }, - "sync_id": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "context_uri": { - "type": "string" - }, - "album_id": { - "type": "string" - }, - "artist_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] - }, - "session_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "flags", - "name", - "session_id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ActivityType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "ClientStatus": { "type": "object", "properties": { @@ -9154,17 +10014,6 @@ "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "$schema": "http://json-schema.org/draft-07/schema#" - }, "ExtendedLocationInfo": { "type": "object", "properties": { @@ -9359,38 +10208,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ConnectedAccountTokenData": { - "type": "object", - "properties": { - "access_token": { - "type": "string" - }, - "token_type": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "refresh_token": { - "type": "string" - }, - "expires_in": { - "type": "integer" - }, - "expires_at": { - "type": "integer" - }, - "fetched_at": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "access_token", - "fetched_at" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "UserSettings": { "type": "object", "properties": { @@ -9998,311 +10815,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": [ - "null", - "string" - ] - }, - "afk_channel": { - "$ref": "#/definitions/Channel" - }, - "afk_timeout": { - "type": "integer" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "banner": { - "type": "string" - }, - "default_message_notifications": { - "type": "integer" - }, - "description": { - "type": "string" - }, - "discovery_splash": { - "type": "string" - }, - "explicit_content_filter": { - "type": "integer" - }, - "features": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "primary_category_id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "large": { - "type": "boolean", - "default": false - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "template_id": { - "type": "string" - }, - "template": { - "$ref": "#/definitions/Template" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "mfa_level": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": [ - "null", - "string" - ] - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": [ - "null", - "string" - ] - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": [ - "null", - "string" - ] - }, - "system_channel": { - "$ref": "#/definitions/Channel" - }, - "system_channel_flags": { - "type": "integer" - }, - "unavailable": { - "type": "boolean", - "default": false - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen", - "description": "DEPRECATED: Look at the new Guild onboarding screens." - }, - "widget_channel_id": { - "type": "string" - }, - "widget_channel": { - "$ref": "#/definitions/Channel" - }, - "widget_enabled": { - "type": "boolean", - "default": true - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { - "type": "string" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "discovery_weight": { - "type": "integer", - "default": 0 - }, - "discovery_excluded": { - "type": "boolean", - "default": false - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", - "id", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Ban": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "executor_id": { - "type": "string" - }, - "executor": { - "$ref": "#/definitions/User" - }, - "ip": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "executor", - "executor_id", - "guild", - "guild_id", - "id", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "Role": { "type": "object", "properties": { @@ -10400,230 +10912,180 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Template": { + "UserGuildSettings": { "type": "object", "properties": { - "code": { - "type": "string" + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/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": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] }, - "creator_id": { - "type": "string" + "muted": { + "type": "boolean" }, - "creator": { - "$ref": "#/definitions/User" + "suppress_everyone": { + "type": "boolean" }, - "created_at": { - "type": "string", - "format": "date-time" + "suppress_roles": { + "type": "boolean" }, - "updated_at": { - "type": "string", - "format": "date-time" + "version": { + "type": "integer" }, - "source_guild_id": { - "type": "string" + "guild_id": { + "type": [ + "null", + "string" + ] }, - "source_guild": { - "$ref": "#/definitions/Guild" + "flags": { + "type": "integer" }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" + "mute_scheduled_events": { + "type": "boolean" }, - "id": { - "type": "string" + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "integer", + "const": 0 } }, "additionalProperties": false, "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" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Emoji": { + "ChannelOverride": { "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" + "message_notifications": { + "type": "integer" }, - "name": { - "type": "string" + "mute_config": { + "$ref": "#/definitions/MuteConfig" }, - "require_colons": { + "muted": { "type": "boolean" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" + "channel_id": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" + "channel_id", + "message_notifications", + "mute_config", + "muted" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Sticker": { + "MuteConfig": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" + "end_time": { + "type": "integer" }, - "id": { - "type": "string" + "selected_time_window": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "format_type", - "id", - "name", - "pack", - "type" + "end_time", + "selected_time_window" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StickerPack": { + "ThreadMemberMuteConfig": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" + "end_time": { + "type": "string", + "format": "date-time" }, - "id": { - "type": "string" + "selected_time_window": { + "type": "integer" } }, "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StickerType": { + "ThreadMemberFlags": { "type": "number", "enum": [ + 0, 1, - 2 + 2, + 4, + 8 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "StickerFormatType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ChannelPermissionOverwriteType" + } + }, + "additionalProperties": false, + "required": [ + "allow", + "deny", + "id", + "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -10705,60 +11167,251 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceState": { + "Message": { "type": "object", "properties": { - "guild_id": { + "channel_id": { "type": "string" }, - "guild": { - "$ref": "#/definitions/Guild" + "channel": { + "$ref": "#/definitions/Channel" }, - "channel_id": { + "thread_id": { "type": "string" }, - "channel": { + "thread": { "$ref": "#/definitions/Channel" }, - "user_id": { + "guild_id": { "type": "string" }, - "user": { + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { "$ref": "#/definitions/User" }, + "member_id": { + "type": "string" + }, "member": { "$ref": "#/definitions/Member" }, - "session_id": { + "webhook_id": { "type": "string" }, - "token": { + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { "type": "string" }, - "deaf": { - "type": "boolean" + "application": { + "$ref": "#/definitions/Application" }, - "mute": { - "type": "boolean" + "content": { + "type": "string" }, - "self_deaf": { - "type": "boolean" + "timestamp": { + "type": "string", + "format": "date-time" }, - "self_mute": { - "type": "boolean" + "edited_timestamp": { + "type": "string", + "format": "date-time" }, - "self_stream": { + "tts": { "type": "boolean" }, - "self_video": { + "mention_everyone": { "type": "boolean" }, - "suppress": { + "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" }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false + }, + "referenced_message": { + "anyOf": [ + { + "$ref": "#/definitions/Message" + }, + { + "type": "null" + } + ] + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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" + }, + "command_type": { + "$ref": "#/definitions/ApplicationCommandType" + } + }, + "additionalProperties": false, + "required": [ + "authorizing_integration_owners", + "command_type", + "id", + "name", + "type", + "user_id" + ] + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseMessageComponents" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "username": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "message_snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageSnapshot" + } }, "id": { "type": "string" @@ -10767,20 +11420,17 @@ "additionalProperties": false, "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" ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -11120,274 +11770,82 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWelcomeScreen": { + "Sticker": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "name": { + "type": "string" }, "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#" - }, - "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": { + "available": { "type": "boolean" }, - "suppress_everyone": { - "type": "boolean" + "tags": { + "type": "string" }, - "suppress_roles": { - "type": "boolean" + "pack_id": { + "type": "string" }, - "version": { - "type": "integer" + "pack": { + "$ref": "#/definitions/StickerPack" }, "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#" - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" + "type": "string" }, - "muted": { - "type": "boolean" + "guild": { + "$ref": "#/definitions/Guild" }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" + "user_id": { + "type": "string" }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "end_time", - "selected_time_window" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ThreadMemberMuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "string", - "format": "date-time" + "user": { + "$ref": "#/definitions/User" }, - "selected_time_window": { - "type": "integer" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ThreadMemberFlags": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 4, - 8 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" + "type": { + "$ref": "#/definitions/StickerType" }, - "deny": { - "type": "string" + "format_type": { + "$ref": "#/definitions/StickerFormatType" }, "id": { "type": "string" - }, - "type": { - "$ref": "#/definitions/ChannelPermissionOverwriteType" } }, "additionalProperties": false, "required": [ - "allow", - "deny", + "format_type", "id", + "name", + "pack", "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ChannelPermissionOverwriteType": { - "type": "number", - "enum": [ - 0, - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReadState": { + "StickerPack": { "type": "object", "properties": { - "channel_id": { + "name": { "type": "string" }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { + "description": { "type": "string" }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { + "banner_asset_id": { "type": "string" }, - "last_acked_id": { - "type": "string" + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } }, - "notifications_cursor": { + "cover_sticker_id": { "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" + "cover_sticker": { + "$ref": "#/definitions/Sticker" }, "id": { "type": "string" @@ -11395,108 +11853,30 @@ }, "additionalProperties": false, "required": [ - "badge_count", - "channel", - "channel_id", - "flags", "id", - "mention_count", - "notifications_cursor", - "read_state_type", - "user", - "user_id" + "name", + "stickers" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ReadStateType": { + "StickerType": { "type": "number", "enum": [ - 0, 1, - 2, - 3, - 4, - 5 + 2 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ReadStateFlags": { + "StickerFormatType": { "type": "number", "enum": [ 1, 2, + 3, 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" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Tag": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "name": { - "type": "string" - }, - "moderated": { - "type": "boolean", - "default": false - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "id", - "moderated", - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "Attachment": { "type": "object", "properties": { @@ -11821,42 +12201,169 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ActionRowComponent": { + "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": { "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" + "$ref": "#/definitions/MessageComponentType.Section" }, "components": { "type": "array", "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] + "$ref": "#/definitions/TextDisplayComponent" } + }, + "accessory": { + "anyOf": [ + { + "$ref": "#/definitions/ThumbnailComponent" + }, + { + "$ref": "#/definitions/ButtonComponent" + } + ] + }, + "id": { + "type": "integer" } }, "additionalProperties": false, "required": [ + "accessory", "components", "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageComponentType.ActionRow": { + "MessageComponentType.Section": { "type": "number", - "const": 1, + "const": 9, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TextDisplayComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextDisplay" + }, + "content": { + "type": "string" + }, + "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" + }, + "description": { + "type": "string" + }, + "media": { + "$ref": "#/definitions/UnfurledMediaItem" + }, + "spoiler": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "media", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.Thumbnail": { + "type": "number", + "const": 11, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UnfurledMediaItem": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "flags": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "content_scan_metadata": {}, + "placeholder_version": { + "type": "integer" + }, + "placeholder": { + "type": "string" + }, + "loading_state": { + "type": "integer" + }, + "attachment_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "url" + ], "$schema": "http://json-schema.org/draft-07/schema#" }, "ButtonComponent": { @@ -11922,6 +12429,9 @@ }, "disabled": { "type": "boolean" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, @@ -11948,6 +12458,158 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "MediaGalleryComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.MediaGallery" + }, + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "media": { + "$ref": "#/definitions/UnfurledMediaItem" + }, + "description": { + "type": "string" + }, + "spoiler": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "media" + ] + } + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "items", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.MediaGallery": { + "type": "number", + "const": 12, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "FileComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.File" + }, + "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#" + }, + "MessageComponentType.File": { + "type": "number", + "const": 13, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SeperatorComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Separator" + }, + "divider": { + "type": "boolean" + }, + "spacing": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.Separator": { + "type": "number", + "const": 14, + "$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" + } + ] + } + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.ActionRow": { + "type": "number", + "const": 1, + "$schema": "http://json-schema.org/draft-07/schema#" + }, "SelectMenuComponent": { "type": "object", "properties": { @@ -11987,6 +12649,9 @@ }, "disabled": { "type": "boolean" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, @@ -12056,6 +12721,9 @@ }, "disabled": { "type": "boolean" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, @@ -12163,6 +12831,9 @@ }, "placeholder": { "type": "string" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, @@ -12187,6 +12858,59 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "ContainerComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Container" + }, + "components": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/definitions/SectionComponent" + }, + { + "$ref": "#/definitions/TextDisplayComponent" + }, + { + "$ref": "#/definitions/MediaGalleryComponent" + }, + { + "$ref": "#/definitions/FileComponent" + }, + { + "$ref": "#/definitions/SeperatorComponent" + }, + { + "$ref": "#/definitions/ActionRowComponent" + } + ] + } + }, + "accent_color": { + "type": "integer" + }, + "spoiler": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.Container": { + "type": "number", + "const": 17, + "$schema": "http://json-schema.org/draft-07/schema#" + }, "Poll": { "type": "object", "properties": { @@ -12424,6 +13148,9 @@ "properties": { "type": { "$ref": "#/definitions/MessageComponentType" + }, + "id": { + "type": "integer" } }, "additionalProperties": false, @@ -12460,53 +13187,35 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionGuild": { + "VoiceState": { "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```", + "guild_id": { "type": "string" }, - "features": { - "type": "array", - "items": { - "type": "string" - } + "guild": { + "$ref": "#/definitions/Guild" }, - "locale": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "features", - "id", - "locale" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PublicMember": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { + "channel_id": { "type": "string" }, - "guild_id": { + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { "type": "string" }, - "flags": { - "type": "integer" + "user": { + "$ref": "#/definitions/User" }, - "nick": { - "type": "string" + "member": { + "$ref": "#/definitions/Member" }, - "joined_at": { - "type": "string", - "format": "date-time" + "session_id": { + "type": "string" }, - "pending": { - "type": "boolean" + "token": { + "type": "string" }, "deaf": { "type": "boolean" @@ -12514,167 +13223,109 @@ "mute": { "type": "boolean" }, - "premium_since": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" + "self_deaf": { + "type": "boolean" }, - "bio": { - "type": "string" + "self_mute": { + "type": "boolean" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "self_stream": { + "type": "boolean" }, - "pronouns": { - "type": "string" + "self_video": { + "type": "boolean" }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] + "suppress": { + "type": "boolean" }, - "user": { - "$ref": "#/definitions/PublicUser" + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" }, - "roles": { - "type": "array", - "items": { - "type": "string" - } + "id": { + "type": "string" } }, + "additionalProperties": false, "required": [ - "banner", - "bio", - "communication_disabled_until", + "channel", + "channel_id", "deaf", - "flags", "guild_id", "id", - "joined_at", + "member", "mute", - "pending", - "roles", - "user" + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PublicUser": { + "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```", - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { + "channel_id": { "type": "string" }, - "banner": { - "type": "string" + "channel": { + "$ref": "#/definitions/Channel" }, - "bio": { + "user_id": { "type": "string" }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } + "user": { + "$ref": "#/definitions/User" }, - "pronouns": { + "last_message_id": { "type": "string" }, - "username": { + "last_acked_id": { "type": "string" }, - "discriminator": { + "notifications_cursor": { "type": "string" }, - "public_flags": { - "type": "integer" - }, - "accent_color": { + "mention_count": { "type": "integer" }, - "bot": { - "type": "boolean" - }, - "premium_type": { + "badge_count": { "type": "integer" }, - "badge_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" + "last_pin_timestamp": { + "type": "string", + "format": "date-time" }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" + "read_state_type": { + "$ref": "#/definitions/ReadStateType" }, - "collectibles": { - "$ref": "#/definitions/Collectibles" + "flags": { + "$ref": "#/definitions/ReadStateFlags" }, - "primary_guild": { - "$ref": "#/definitions/PrimaryGuild" + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "bio", - "bot", - "discriminator", + "badge_count", + "channel", + "channel_id", + "flags", "id", - "premium_since", - "premium_type", - "public_flags", - "username" - ], - "$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": { - "type": "object", - "properties": { - "activity_level": { - "type": "integer" - }, - "activity_score": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "activity_level", - "activity_score" + "mention_count", + "notifications_cursor", + "read_state_type", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildBadgeType": { + "ReadStateType": { "type": "number", "enum": [ 0, @@ -12682,1150 +13333,423 @@ 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" - }, - "label": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "emoji_animated", - "emoji_id", - "emoji_name", - "label", - "position" + 5 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVisibilityLevel": { + "ReadStateFlags": { "type": "number", "enum": [ 1, 2, - 3 + 4 ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceUserDeleteSchemaContent": { + "ThreadMetadata": { "type": "object", "properties": { - "reason": { - "type": "string" - }, - "persistInstanceBan": { + "archived": { "type": "boolean" - } - }, - "additionalProperties": false, - "$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" + "auto_archive_duration": { + "type": "integer" }, - "discriminator": { + "archive_timestamp": { "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": { + "locked": { "type": "boolean" }, - "system": { + "invitable": { "type": "boolean" }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "accent_color": { - "type": [ - "null", - "integer" - ] - }, - "public_flags": { - "type": "integer" + "create_timestamp": { + "type": "string" } }, "additionalProperties": false, "required": [ - "avatar", - "discriminator", - "id", - "username" + "archive_timestamp", + "archived", + "auto_archive_duration", + "create_timestamp", + "locked" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "Classification": { + "Tag": { "type": "object", "properties": { - "id": { + "channel_id": { "type": "string" }, - "classification_type": { - "$ref": "#/definitions/ClassificationType" - }, - "description": { - "type": "string" + "channel": { + "$ref": "#/definitions/Channel" }, - "explainer_link": { + "name": { "type": "string" }, - "actions": { - "type": "array", - "items": { - "$ref": "#/definitions/ClassificationAction" - } + "moderated": { + "type": "boolean", + "default": false }, - "max_expiration_time": { + "emoji_id": { "type": "string" }, - "flagged_content": { - "type": "array", - "items": {} - }, - "appeal_status": { - "$ref": "#/definitions/AppealStatus" - }, - "is_coppa": { - "type": "boolean" - }, - "is_spam": { - "type": "boolean" + "emoji_name": { + "type": "string" }, - "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" - }, - "action_type": { - "$ref": "#/definitions/ClassificationActionType" - }, - "descriptions": { - "type": "array", - "items": { - "type": "string" - } } }, "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 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AppealStatus": { - "type": "object", - "properties": { - "status": { - "$ref": "#/definitions/AppealStatusValue" - } - }, - "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 + "channel", + "channel_id", + "id", + "moderated", + "name" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildClassification": { + "Ban": { "type": "object", "properties": { - "guild_metadata": { - "$ref": "#/definitions/GuildMetadata" - }, - "id": { + "user_id": { "type": "string" }, - "classification_type": { - "$ref": "#/definitions/ClassificationType" - }, - "description": { - "type": "string" + "user": { + "$ref": "#/definitions/User" }, - "explainer_link": { + "guild_id": { "type": "string" }, - "actions": { - "type": "array", - "items": { - "$ref": "#/definitions/ClassificationAction" - } + "guild": { + "$ref": "#/definitions/Guild" }, - "max_expiration_time": { + "executor_id": { "type": "string" }, - "flagged_content": { - "type": "array", - "items": {} - }, - "appeal_status": { - "$ref": "#/definitions/AppealStatus" - }, - "is_coppa": { - "type": "boolean" - }, - "is_spam": { - "type": "boolean" + "executor": { + "$ref": "#/definitions/User" }, - "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": { + "ip": { "type": "string" }, - "icon": { + "reason": { "type": "string" }, - "member_type": { - "$ref": "#/definitions/GuildMemberType" + "id": { + "type": "string" } }, "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 + "executor", + "executor_id", + "guild", + "guild_id", + "id", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CollectiblesCategoryItem": { + "Template": { "type": "object", "properties": { - "sku_id": { + "code": { "type": "string" }, "name": { "type": "string" }, - "summary": { - "type": "string" - }, - "store_listing_id": { - "type": "string" - }, - "banner": { + "description": { "type": "string" }, - "unpublished_at": { - "type": [ - "null", - "string" - ] - }, - "styles": { - "$ref": "#/definitions/CollectiblesCategoryStyle" + "usage_count": { + "type": "integer" }, - "logo": { + "creator_id": { "type": "string" }, - "hero_ranking": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "mobile_bg": { - "type": [ - "null", - "string" - ] - }, - "pdp_bg": { - "type": [ - "null", - "string" - ] - }, - "success_modal_bg": { - "type": [ - "null", - "string" - ] - }, - "mobile_banner": { - "type": [ - "null", - "string" - ] - }, - "featured_block": { - "type": [ - "null", - "string" - ] + "creator": { + "$ref": "#/definitions/User" }, - "hero_banner": { - "type": [ - "null", - "string" - ] + "created_at": { + "type": "string", + "format": "date-time" }, - "wide_banner": { - "type": [ - "null", - "string" - ] + "updated_at": { + "type": "string", + "format": "date-time" }, - "hero_logo": { - "type": [ - "null", - "string" - ] + "source_guild_id": { + "type": "string" }, - "products": { - "type": "array", - "items": { - "$ref": "#/definitions/CollectiblesCategoryProductItem" - } + "source_guild": { + "$ref": "#/definitions/Guild" }, - "banner_asset": { - "$ref": "#/definitions/StaticAnimatedAsset" + "serialized_source_guild": { + "$ref": "#/definitions/Guild" }, - "hero_banner_asset": { - "$ref": "#/definitions/StaticAnimatedAsset" + "id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "banner", - "featured_block", - "hero_banner", - "hero_logo", - "hero_ranking", - "logo", - "mobile_banner", - "mobile_bg", + "code", + "created_at", + "creator", + "creator_id", + "id", "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": { - "type": "integer" - } - }, - "button_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "confetti_colors": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false, - "required": [ - "background_colors", - "button_colors", - "confetti_colors" + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CollectiblesCategoryProductItem": { + "Emoji": { "type": "object", "properties": { - "sku_id": { - "type": "string" + "animated": { + "type": "boolean" }, - "name": { - "type": "string" + "available": { + "type": "boolean" }, - "summary": { + "guild_id": { "type": "string" }, - "store_listing_id": { - "type": "string" + "guild": { + "$ref": "#/definitions/Guild" }, - "banner": { + "user_id": { "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" + "user": { + "$ref": "#/definitions/User" }, - "premium_type": { - "type": "integer" + "managed": { + "type": "boolean" }, - "category_sku_id": { + "name": { "type": "string" }, - "google_sku_ids": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "require_colons": { + "type": "boolean" }, - "variants": { + "roles": { "type": "array", "items": { - "$ref": "#/definitions/ProductItemVariant" + "type": "string" } - } - }, - "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": { - "type": "object", - "properties": { - "country_code": { - "type": "string" }, - "prices": { + "groups": { "type": "array", "items": { - "$ref": "#/definitions/PriceEntry" + "type": "string" } - } - }, - "additionalProperties": false, - "required": [ - "country_code", - "prices" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PriceEntry": { - "type": "object", - "properties": { - "amount": { - "type": "integer" - }, - "currency": { - "type": "string" - }, - "exponent": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "amount", - "currency", - "exponent" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ProductItem": { - "type": "object", - "properties": { - "type": { - "type": "integer" }, "id": { "type": "string" - }, - "sku_id": { - "type": "string" - }, - "asset": { - "type": "string" - }, - "label": { - "type": "string" - }, - "palette": { - "type": "string" } }, "additionalProperties": false, "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", "id", - "sku_id", - "type" + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ProductItemVariant": { + "GuildWelcomeScreen": { "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" + "enabled": { + "type": "boolean" }, - "banner": { + "description": { "type": "string" }, - "unpublished_at": { - "type": [ - "null", - "string" - ] - }, - "styles": { - "$ref": "#/definitions/CollectiblesCategoryStyle" - }, - "prices": { - "type": "object", - "additionalProperties": { + "welcome_channels": { + "type": "array", + "items": { "type": "object", "properties": { - "country_prices": { - "$ref": "#/definitions/CountryPrice" + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" } }, "additionalProperties": false, "required": [ - "country_prices" + "channel_id", + "description" ] } - }, - "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" - ] - }, - "static": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "static" + "description", + "enabled", + "welcome_channels" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "CollectiblesMarketingItem": { + "PartialMessage": { + "description": "https://docs.discord.food/resources/message#partial-message-structure", "type": "object", "properties": { - "type": { - "type": "integer" - }, - "version": { - "type": "integer" - }, - "title": { + "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" }, - "body": { + "channel_id": { "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "body", - "title", - "type", - "version" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AnyShopBlock": { - "anyOf": [ - { - "$ref": "#/definitions/ItemRowShopBlock" }, - { - "$ref": "#/definitions/BundleTileRowShopBlock" - }, - { - "$ref": "#/definitions/ItemCollectionShopBlock" - } - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ItemRowShopBlock": { - "type": "object", - "properties": { "type": { - "type": "integer", - "const": 0 - }, - "category_sku_id": { - "type": "string" - }, - "name": { - "type": "string" + "$ref": "#/definitions/MessageType" }, - "category_store_listing_id": { + "content": { "type": "string" }, - "banner_asset": { - "$ref": "#/definitions/StaticAnimatedAsset" - }, - "logo_url": { - "type": "string" + "author": { + "$ref": "#/definitions/PartialUser" }, - "unpublished_at": { - "type": [ - "null", - "string" - ] + "flags": { + "type": "integer" }, - "summary": { + "application_id": { "type": "string" - }, - "ranked_sku_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "banner_asset", - "category_sku_id", - "category_store_listing_id", - "logo_url", - "name", - "ranked_sku_ids", - "summary", - "type", - "unpublished_at" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BundleTileRowShopBlock": { - "type": "object", - "properties": { - "type": { - "type": "integer", - "const": 1 - }, - "subblocks": { - "type": "array", - "items": { - "$ref": "#/definitions/ShopBlockSubBlock" - } } }, "additionalProperties": false, "required": [ - "subblocks", + "author", + "channel_id", + "content", + "id", "type" ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ShopBlockSubBlock": { + "PartialUser": { "type": "object", "properties": { - "type": { - "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" }, - "category_store_listing_id": { + "username": { "type": "string" }, - "name": { + "discriminator": { "type": "string" }, - "unpublished_at": { + "global_name": { "type": [ "null", "string" ] }, - "banner_url": { - "type": "string" - }, - "body_text": { + "avatar": { "type": [ "null", "string" ] }, - "banner_text_color": { - "type": [ - "null", - "integer" + "avatar_decoration_data": { + "anyOf": [ + { + "$ref": "#/definitions/AvatarDecorationData" + }, + { + "type": "null" + } ] - } - }, - "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 }, - "ranked_sku_ids": { - "type": "array", - "items": { - "type": "string" - } + "collectibles": { + "anyOf": [ + { + "$ref": "#/definitions/Collectibles" + }, + { + "type": "null" + } + ] }, - "sorted_sku_ids": { - "type": "object", - "properties": { - "recommended": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] + "display_name_styles": { + "anyOf": [ + { + "$ref": "#/definitions/DisplayNameStyle" }, - "popular": { - "type": "array", - "items": { - "type": "string" - } + { + "type": "null" } - }, - "additionalProperties": false, - "required": [ - "popular", - "recommended" ] - } - }, - "additionalProperties": false, - "required": [ - "ranked_sku_ids", - "sorted_sku_ids", - "type" - ], - "$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" + "primary_guild": { + "anyOf": [ + { + "$ref": "#/definitions/PrimaryGuild" + }, + { + "type": "null" + } + ] }, - "type": { - "$ref": "#/definitions/MessageType" + "bot": { + "type": "boolean" }, - "content": { - "type": "string" + "system": { + "type": "boolean" }, - "author": { - "$ref": "#/definitions/PartialUser" + "banner": { + "type": [ + "null", + "string" + ] }, - "flags": { - "type": "integer" + "accent_color": { + "type": [ + "null", + "integer" + ] }, - "application_id": { - "type": "string" + "public_flags": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "author", - "channel_id", - "content", + "avatar", + "discriminator", "id", - "type" + "username" ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -13989,7 +13913,7 @@ "components": { "type": "array", "items": { - "$ref": "#/definitions/ActionRowComponent" + "$ref": "#/definitions/BaseMessageComponents" } }, "poll": { @@ -14021,6 +13945,85 @@ ], "$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": { @@ -14051,6 +14054,12 @@ ], "$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": { @@ -14307,6 +14316,474 @@ ], "$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#" + }, + "PongCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.PONG" + }, + "data": {} + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackType.PONG": { + "type": "number", + "const": 1, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AckCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.ACKNOWLEDGE" + }, + "data": {} + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackType.ACKNOWLEDGE": { + "type": "number", + "const": 2, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.CHANNEL_MESSAGE" + }, + "data": {} + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackType.CHANNEL_MESSAGE": { + "type": "number", + "const": 3, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageWSourceCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE" + }, + "data": { + "$ref": "#/definitions/InteractionMessage" + } + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE": { + "type": "number", + "const": 4, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionMessage": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "tts": { + "type": "boolean" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "allowed_mentions": { + "$ref": "#/definitions/AllowedMentions" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/BaseMessageComponents" + } + }, + "flags": { + "type": "integer" + }, + "attachments": { + "type": "array", + "items": { + "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/PollCreationSchema" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageDWSourceCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE" + }, + "data": { + "$ref": "#/definitions/InteractionMessage" + } + }, + "additionalProperties": false, + "required": [ + "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#" + }, + "InteractionCallbackType.UPDATE_MESSAGE": { + "type": "number", + "const": 7, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageDUpdateCallback": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/InteractionCallbackType.DEFERRED_UPDATE_MESSAGE" + }, + "data": { + "$ref": "#/definitions/InteractionMessage" + } + }, + "additionalProperties": false, + "required": [ + "data", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionCallbackType.DEFERRED_UPDATE_MESSAGE": { + "type": "number", + "const": 6, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InteractionGuild": { + "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" + }, + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "locale": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "features", + "id", + "locale" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PublicMember": { + "additionalProperties": false, + "type": "object", + "properties": { + "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" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "premium_since": { + "type": "integer" + }, + "avatar": { + "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" + } + } + }, + "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#" + }, + "InstanceUserDeleteSchemaContent": { + "type": "object", + "properties": { + "reason": { + "type": "string" + }, + "persistInstanceBan": { + "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GameActivity": { + "type": "object", + "properties": { + "activity_level": { + "type": "integer" + }, + "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" + }, + "label": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "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#" + }, "DmChannelDTO": { "type": "object", "properties": { @@ -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