diff --git a/assets/openapi.json b/assets/openapi.json index 3b1d802..3f396f6 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -239,3516 +239,6 @@ "type" ] }, - "InteractionCallbackSchema": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/InteractionCallbackType" - }, - "data": { - "$ref": "#/components/schemas/Message" - } - }, - "required": [ - "data", - "type" - ] - }, - "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" - }, - "cover_image": { - "type": "string" - }, - "interactions_endpoint_url": { - "type": "string" - }, - "max_participants": { - "type": "integer", - "nullable": true - }, - "name": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "role_connections_verification_url": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "terms_of_service_url": { - "type": "string" - }, - "bot_public": { - "type": "boolean" - }, - "bot_require_code_grant": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "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/ApplicationCommandOption" - } - }, - "target_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/components/schemas/Snowflake" - }, - "attachments": { - "type": "array", - "items": { - "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" - }, - "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/UploadAttachmentRequestSchema" - } - } - }, - "required": [ - "custom_id", - "id" - ] - }, - "GuildProfileResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "icon_hash": { - "type": "string", - "nullable": true - }, - "member_count": { - "type": "integer" - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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 - }, - "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" - ] - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "required": [ - "code", - "errors", - "message" - ] - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ] - }, - "APIErrorOrCaptchaResponse": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIErrorResponse" - }, - { - "$ref": "#/components/schemas/CaptchaRequiredResponse" - } - ] - }, - "AccountStandingResponse": { - "type": "object", - "properties": { - "classifications": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Classification" - } - }, - "guild_classifications": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildClassification" - } - }, - "account_standing": { - "type": "object", - "properties": { - "state": { - "$ref": "#/components/schemas/AccountStandingState" - } - }, - "additionalProperties": false, - "required": [ - "state" - ] - }, - "is_dsa_eligible": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "is_appeal_eligible": { - "type": "boolean" - }, - "appeal_eligibility": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppealEligibility" - } - } - }, - "required": [ - "account_standing", - "appeal_eligibility", - "classifications", - "discriminator", - "guild_classifications", - "is_appeal_eligible", - "is_dsa_eligible", - "username" - ] - }, - "BackupCodesChallengeResponse": { - "type": "object", - "properties": { - "nonce": { - "type": "string" - }, - "regenerate_nonce": { - "type": "string" - } - }, - "required": [ - "nonce", - "regenerate_nonce" - ] - }, - "CollectiblesCategoriesResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CollectiblesCategoryItem" - } - }, - "CollectiblesMarketingResponse": { - "type": "object", - "properties": { - "marketings": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CollectiblesMarketingItem" - } - } - }, - "required": [ - "marketings" - ] - }, - "CollectiblesShopResponse": { - "type": "object", - "properties": { - "shop_blocks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnyShopBlock" - } - }, - "categories": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CollectiblesCategoryItem" - } - } - }, - "required": [ - "categories", - "shop_blocks" - ] - }, - "DiscoverableGuildsResponse": { - "type": "object", - "properties": { - "total": { - "type": "integer" - }, - "guilds": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Guild" - } - }, - "offset": { - "type": "integer" - }, - "limit": { - "type": "integer" - } - }, - "required": [ - "guilds", - "limit", - "offset", - "total" - ] - }, - "DmMessagesResponseSchema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PartialMessage" - } - }, - "EmailDomainLookupResponse": { - "type": "object", - "properties": { - "guilds_info": { - "type": "array", - "items": { - "$ref": "#/components/schemas/HubGuild" - } - }, - "has_matching_guild": { - "type": "boolean" - } - }, - "required": [ - "guilds_info", - "has_matching_guild" - ] - }, - "EmailDomainLookupVerifyCodeResponse": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "joined": { - "type": "boolean" - } - }, - "required": [ - "guild", - "joined" - ] - }, - "EmojiSourceResponse": { - "type": "object", - "properties": { - "type": { - "enum": [ - "APPLICATION", - "GUILD" - ], - "type": "string" - }, - "guild": { - "anyOf": [ - { - "$ref": "#/components/schemas/EmojiGuild" - }, - { - "type": "null" - } - ] - }, - "application": { - "anyOf": [ - { - "$ref": "#/components/schemas/EmojiApplication" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "type" - ] - }, - "GatewayBotResponse": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "shards": { - "type": "integer" - }, - "session_start_limit": { - "type": "object", - "properties": { - "total": { - "type": "integer" - }, - "remaining": { - "type": "integer" - }, - "reset_after": { - "type": "integer" - }, - "max_concurrency": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "max_concurrency", - "remaining", - "reset_after", - "total" - ] - } - }, - "required": [ - "session_start_limit", - "shards", - "url" - ] - }, - "GatewayResponse": { - "type": "object", - "properties": { - "url": { - "type": "string" - } - }, - "required": [ - "url" - ] - }, - "GenerateRegistrationTokensResponse": { - "type": "object", - "properties": { - "tokens": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "tokens" - ] - }, - "GuildBansResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildBanResponse" - } - }, - "GuildBanResponse": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "nullable": true - }, - "user": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "public_flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "discriminator", - "id", - "public_flags", - "username" - ] - } - }, - "required": [ - "reason", - "user" - ] - }, - "GuildCreateResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "template_id": { - "type": "string" - }, - "mfa_level": { - "type": "integer" - }, - "owner_id": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/components/schemas/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean" - }, - "parent": { - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - }, - "banner": { - "type": "string", - "nullable": true - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "guild_template_code": { - "type": "string" - }, - "staff_only": { - "type": "boolean" - }, - "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 - } - }, - "required": [ - "id", - "name", - "nsfw", - "welcome_screen", - "widget_enabled" - ] - }, - "GuildDiscoveryRequirementsResponse": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "safe_environment": { - "type": "boolean" - }, - "healthy": { - "type": "boolean" - }, - "health_score_pending": { - "type": "boolean" - }, - "size": { - "type": "boolean" - }, - "nsfw_properties": {}, - "protected": { - "type": "boolean" - }, - "sufficient": { - "type": "boolean" - }, - "sufficient_without_grace_period": { - "type": "boolean" - }, - "valid_rules_channel": { - "type": "boolean" - }, - "retention_healthy": { - "type": "boolean" - }, - "engagement_healthy": { - "type": "boolean" - }, - "age": { - "type": "boolean" - }, - "minimum_age": { - "type": "integer" - }, - "health_score": { - "type": "object", - "properties": { - "avg_nonnew_participators": { - "type": "integer" - }, - "avg_nonnew_communicators": { - "type": "integer" - }, - "num_intentful_joiners": { - "type": "integer" - }, - "perc_ret_w1_intentful": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avg_nonnew_communicators", - "avg_nonnew_participators", - "num_intentful_joiners", - "perc_ret_w1_intentful" - ] - }, - "minimum_size": { - "type": "integer" - } - }, - "required": [ - "age", - "engagement_healthy", - "guild_id", - "health_score", - "health_score_pending", - "healthy", - "minimum_age", - "minimum_size", - "nsfw_properties", - "protected", - "retention_healthy", - "safe_environment", - "size", - "sufficient", - "sufficient_without_grace_period", - "valid_rules_channel" - ] - }, - "GuildMessagesSearchResponse": { - "type": "object", - "properties": { - "messages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildMessagesSearchMessage" - } - }, - "total_results": { - "type": "integer" - } - }, - "required": [ - "messages", - "total_results" - ] - }, - "GuildPruneResponse": { - "type": "object", - "properties": { - "pruned": { - "type": "integer" - } - }, - "required": [ - "pruned" - ] - }, - "GuildPurgeResponse": { - "type": "object", - "properties": { - "purged": { - "type": "integer" - } - }, - "required": [ - "purged" - ] - }, - "GuildRecommendationsResponse": { - "type": "object", - "properties": { - "recommended_guilds": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Guild" - } - }, - "load_id": { - "type": "string" - } - }, - "required": [ - "load_id", - "recommended_guilds" - ] - }, - "GuildVanityUrlResponse": { - "anyOf": [ - { - "$ref": "#/components/schemas/GuildVanityUrl" - }, - { - "$ref": "#/components/schemas/GuildVanityUrlNoInvite" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildVanityUrl" - } - } - ] - }, - "GuildVanityUrlCreateResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" - } - }, - "required": [ - "code" - ] - }, - "GuildWidgetJsonResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "instant_invite": { - "type": "string" - }, - "channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "position" - ] - } - }, - "members": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "status": { - "$ref": "#/components/schemas/ClientStatus" - }, - "avatar_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "avatar_url", - "discriminator", - "id", - "status", - "username" - ] - } - }, - "presence_count": { - "type": "integer" - } - }, - "required": [ - "channels", - "id", - "instant_invite", - "members", - "name", - "presence_count" - ] - }, - "GuildWidgetSettingsResponse": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "channel_id": { - "anyOf": [ - { - "$ref": "#/components/schemas/Snowflake" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "channel_id", - "enabled" - ] - }, - "HubDirectoryEntriesResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/HubDirectoryEntry" - } - }, - "HubWaitlistSignupResponse": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "email_domain": { - "type": "string" - }, - "school": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "required": [ - "email", - "email_domain", - "school", - "user_id" - ] - }, - "InstanceDomainsResponse": { - "type": "object", - "properties": { - "admin": { - "type": "string" - }, - "api": { - "type": "string" - }, - "apiEndpoint": { - "type": "string" - }, - "cdn": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "defaultApiVersion": { - "type": "string" - } - }, - "required": [ - "api", - "apiEndpoint", - "cdn", - "defaultApiVersion", - "gateway" - ] - }, - "InstancePingResponse": { - "type": "object", - "properties": { - "ping": { - "type": "string", - "const": "pong!" - }, - "instance": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ] - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ] - }, - "frontPage": { - "type": [ - "null", - "string" - ] - }, - "tosPage": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "correspondenceEmail", - "correspondenceUserID", - "description", - "frontPage", - "id", - "image", - "name", - "tosPage" - ] - } - }, - "required": [ - "instance", - "ping" - ] - }, - "InstanceStatsResponse": { - "type": "object", - "properties": { - "counts": { - "type": "object", - "properties": { - "user": { - "type": "integer" - }, - "guild": { - "type": "integer" - }, - "message": { - "type": "integer" - }, - "members": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "guild", - "members", - "message", - "user" - ] - } - }, - "required": [ - "counts" - ] - }, - "LocationMetadataResponse": { - "type": "object", - "properties": { - "consent_required": { - "type": "boolean" - }, - "country_code": { - "type": "string" - }, - "promotional_email_opt_in": { - "type": "object", - "properties": { - "required": { - "type": "boolean", - "const": true - }, - "pre_checked": { - "type": "boolean", - "const": false - } - }, - "additionalProperties": false, - "required": [ - "pre_checked", - "required" - ] - } - }, - "required": [ - "consent_required", - "country_code", - "promotional_email_opt_in" - ] - }, - "MemberJoinGuildResponse": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/components/schemas/GuildCreateResponse" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Emoji" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - } - }, - "required": [ - "emojis", - "guild", - "roles", - "stickers" - ] - }, - "OAuthAuthorizeResponse": { - "type": "object", - "properties": { - "location": { - "type": "string" - } - }, - "required": [ - "location" - ] - }, - "PreloadMessagesResponseSchema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Message" - } - }, - "RefreshUrlsResponse": { - "type": "object", - "properties": { - "refreshed_urls": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RefreshedUrl" - } - } - }, - "required": [ - "refreshed_urls" - ] - }, - "SettingsProtoResponse": { - "type": "object", - "properties": { - "settings": { - "type": "string" - } - }, - "required": [ - "settings" - ] - }, - "SettingsProtoUpdateResponse": { - "type": "object", - "properties": { - "out_of_date": { - "type": "boolean" - }, - "settings": { - "type": "string" - } - }, - "required": [ - "settings" - ] - }, - "SettingsProtoJsonResponse": { - "type": "object", - "properties": { - "settings": { - "$ref": "#/components/schemas/JsonValue" - } - }, - "required": [ - "settings" - ] - }, - "SettingsProtoUpdateJsonResponse": { - "type": "object", - "properties": { - "out_of_date": { - "type": "boolean" - }, - "settings": { - "$ref": "#/components/schemas/JsonValue" - } - }, - "required": [ - "settings" - ] - }, - "TeamListResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Team" - } - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ] - }, - "TenorTrendingResponse": { - "type": "object", - "properties": { - "categories": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "searchterm": { - "type": "string" - }, - "path": { - "type": "string" - }, - "image": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "image", - "name", - "path", - "searchterm" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "tags" - ] - }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TenorGifResponse" - } - } - }, - "required": [ - "categories", - "gifs" - ] - }, - "TenorGifsResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TenorGifResponse" - } - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/components/schemas/UserSettings" - } - }, - "required": [ - "settings", - "token" - ] - }, - "TokenOnlyResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - } - }, - "required": [ - "token" - ] - }, - "TokenWithBackupCodesResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "backup_codes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BackupCode" - } - } - }, - "required": [ - "backup_codes", - "token" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "region": { - "type": "string" - }, - "insert": { - "type": "object", - "additionalProperties": false - }, - "id": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/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 - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, - "banner": { - "type": "string" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Channel" - } - }, - "system_channel_id": { - "type": "string", - "nullable": true - }, - "rules_channel_id": { - "type": "string", - "nullable": true - }, - "splash": { - "type": "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", - "nullable": true - }, - "afk_timeout": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string", - "nullable": true - }, - "preferred_locale": { - "type": "string" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "discovery_splash": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Ban" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "unavailable": { - "type": "boolean" - }, - "welcome_screen": { - "$ref": "#/components/schemas/GuildWelcomeScreen", - "description": "DEPRECATED: Look at the new Guild onboarding screens." - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "discovery_weight": { - "type": "integer" - }, - "discovery_excluded": { - "type": "boolean" - } - }, - "required": [ - "bans", - "channel_ordering", - "channels", - "clean_data", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", - "get_annotations", - "id", - "insert", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ] - }, - "APIPublicUser": { - "type": "object", - "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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" - ] - }, - "APIPrivateUser": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "flags": { - "type": "integer" - }, - "verified": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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" - }, - "mfa_enabled": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - }, - "settings": { - "$ref": "#/components/schemas/UserSettingsSchema" - } - }, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ] - }, - "APIGuildArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/APIGuild" - } - }, - "APIDMChannelArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DmChannelDTO" - } - }, - "APIBackupCodeArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BackupCode" - } - }, - "UserUpdateResponse": { - "type": "object", - "properties": { - "newToken": { - "type": "string" - }, - "email": { - "type": "string" - }, - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "flags": { - "type": "integer" - }, - "verified": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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" - }, - "mfa_enabled": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - }, - "settings": { - "$ref": "#/components/schemas/UserSettingsSchema" - } - }, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ] - }, - "ApplicationDetectableResponse": { - "type": "array", - "items": {} - }, - "ApplicationEntitlementsResponse": { - "type": "array", - "items": {} - }, - "ApplicationSkusResponse": { - "type": "array", - "items": {} - }, - "APIApplicationArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Application" - } - }, - "APIInviteArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Invite" - } - }, - "APIMessageArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Message" - } - }, - "APIWebhookArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Webhook" - } - }, - "APIDiscoveryCategoryArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Categories" - } - }, - "APIGeneralConfiguration": { - "type": "object", - "properties": { - "instanceName": { - "type": "string", - "default": "Spacebar Instance" - }, - "serverName": { - "type": "string", - "default": null, - "nullable": true - }, - "instanceDescription": { - "type": "string", - "default": "This is a Spacebar instance made in the pre-release days", - "nullable": true - }, - "frontPage": { - "type": "string", - "default": null, - "nullable": true - }, - "tosPage": { - "type": "string", - "default": null, - "nullable": true - }, - "correspondenceEmail": { - "type": "string", - "default": null, - "nullable": true - }, - "correspondenceUserID": { - "type": "string", - "default": null, - "nullable": true - }, - "image": { - "type": "string", - "default": null, - "nullable": true - }, - "instanceId": { - "type": "string" - }, - "autoCreateBotUsers": { - "type": "boolean", - "default": false - } - }, - "required": [ - "autoCreateBotUsers", - "correspondenceEmail", - "correspondenceUserID", - "frontPage", - "image", - "instanceDescription", - "instanceId", - "instanceName", - "serverName", - "tosPage" - ] - }, - "APIChannelArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Channel" - } - }, - "APIMemberArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Member" - } - }, - "APIPublicMember": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "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" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "user": { - "$ref": "#/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" - ] - }, - "APIGuildWithJoinedAt": { - "type": "object", - "properties": { - "joined_at": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "template_id": { - "type": "string" - }, - "mfa_level": { - "type": "integer" - }, - "owner_id": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/components/schemas/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean" - }, - "parent": { - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - }, - "banner": { - "type": "string", - "nullable": true - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "guild_template_code": { - "type": "string" - }, - "staff_only": { - "type": "boolean" - }, - "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 - } - }, - "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" - ] - }, - "APIRoleArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, - "APITemplateArray": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Template" - } - }, - "APIGuildVoiceRegion": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GuildVoiceRegion" - } - }, - "APILimitsConfiguration": { - "type": "object", - "properties": { - "user": { - "$ref": "#/components/schemas/UserLimits" - }, - "guild": { - "$ref": "#/components/schemas/GuildLimits" - }, - "message": { - "$ref": "#/components/schemas/MessageLimits" - }, - "channel": { - "$ref": "#/components/schemas/ChannelLimits" - }, - "rate": { - "$ref": "#/components/schemas/RateLimits" - }, - "absoluteRate": { - "$ref": "#/components/schemas/GlobalRateLimits" - } - }, - "required": [ - "absoluteRate", - "channel", - "guild", - "message", - "rate", - "user" - ] - }, - "APIConnectionsConfiguration": { - "type": "object" - }, - "UpdatesResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "pub_date": { - "type": "string" - }, - "url": { - "type": "string" - }, - "notes": { - "type": "string", - "nullable": true - } - }, - "required": [ - "name", - "notes", - "pub_date", - "url" - ] - }, - "UploadAttachmentResponseSchema": { - "type": "object", - "properties": { - "attachments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadAttachmentResponse" - } - } - }, - "required": [ - "attachments" - ] - }, - "UploadAttachmentResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "upload_url": { - "type": "string" - }, - "upload_filename": { - "type": "string" - }, - "original_content_type": { - "type": "string" - } - }, - "required": [ - "upload_filename", - "upload_url" - ] - }, - "UserNoteResponse": { - "type": "object", - "properties": { - "note": { - "type": "string" - }, - "note_user_id": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "required": [ - "note", - "note_user_id", - "user_id" - ] - }, - "UserProfileResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/components/schemas/PublicUser" - }, - "connected_accounts": { - "$ref": "#/components/schemas/PublicConnectedAccount" - }, - "premium_guild_since": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "mutual_guilds": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - }, - "premium_type": { - "type": "integer" - }, - "profile_themes_experiment_bucket": { - "type": "integer" - }, - "user_profile": { - "$ref": "#/components/schemas/UserProfile" - }, - "guild_member": { - "$ref": "#/components/schemas/PublicMember" - }, - "guild_member_profile": { - "$ref": "#/components/schemas/PublicMemberProfile" - }, - "badges": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Badge" - } - } - }, - "required": [ - "badges", - "connected_accounts", - "mutual_guilds", - "premium_type", - "profile_themes_experiment_bucket", - "user", - "user_profile" - ] - }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } - }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - } - }, - "UserRelationshipsResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/RelationshipType" - }, - "nickname": { - "type": "null" - }, - "user": { - "$ref": "#/components/schemas/PublicUser" - } - }, - "required": [ - "id", - "nickname", - "type", - "user" - ] - }, - "WebAuthnCreateResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ] - }, - "WebhookCreateResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/components/schemas/User" - }, - "hook": { - "$ref": "#/components/schemas/Webhook" - } - }, - "required": [ - "hook", - "user" - ] - }, "AckBulkSchema": { "type": "object", "properties": { @@ -4681,12 +1171,6 @@ } } }, - "members": { - "type": "array", - "items": { - "type": "string" - } - }, "activities": { "type": "boolean" }, @@ -4697,6 +1181,12 @@ "const": true, "type": "boolean" }, + "members": { + "type": "array", + "items": { + "type": "string" + } + }, "member_updates": { "type": "boolean" }, @@ -4886,6 +1376,3725 @@ } } }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "required": [ + "code", + "errors", + "message" + ] + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ] + }, + "APIErrorOrCaptchaResponse": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIErrorResponse" + }, + { + "$ref": "#/components/schemas/CaptchaRequiredResponse" + } + ] + }, + "AccountStandingResponse": { + "type": "object", + "properties": { + "classifications": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Classification" + } + }, + "guild_classifications": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildClassification" + } + }, + "account_standing": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/AccountStandingState" + } + }, + "additionalProperties": false, + "required": [ + "state" + ] + }, + "is_dsa_eligible": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "is_appeal_eligible": { + "type": "boolean" + }, + "appeal_eligibility": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppealEligibility" + } + } + }, + "required": [ + "account_standing", + "appeal_eligibility", + "classifications", + "discriminator", + "guild_classifications", + "is_appeal_eligible", + "is_dsa_eligible", + "username" + ] + }, + "BackupCodesChallengeResponse": { + "type": "object", + "properties": { + "nonce": { + "type": "string" + }, + "regenerate_nonce": { + "type": "string" + } + }, + "required": [ + "nonce", + "regenerate_nonce" + ] + }, + "CollectiblesCategoriesResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CollectiblesCategoryItem" + } + }, + "CollectiblesMarketingResponse": { + "type": "object", + "properties": { + "marketings": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/CollectiblesMarketingItem" + } + } + }, + "required": [ + "marketings" + ] + }, + "CollectiblesShopResponse": { + "type": "object", + "properties": { + "shop_blocks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnyShopBlock" + } + }, + "categories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CollectiblesCategoryItem" + } + } + }, + "required": [ + "categories", + "shop_blocks" + ] + }, + "DiscoverableGuildsResponse": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "guilds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Guild" + } + }, + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer" + } + }, + "required": [ + "guilds", + "limit", + "offset", + "total" + ] + }, + "DmMessagesResponseSchema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PartialMessage" + } + }, + "EmailDomainLookupResponse": { + "type": "object", + "properties": { + "guilds_info": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HubGuild" + } + }, + "has_matching_guild": { + "type": "boolean" + } + }, + "required": [ + "guilds_info", + "has_matching_guild" + ] + }, + "EmailDomainLookupVerifyCodeResponse": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "joined": { + "type": "boolean" + } + }, + "required": [ + "guild", + "joined" + ] + }, + "EmojiSourceResponse": { + "type": "object", + "properties": { + "type": { + "enum": [ + "APPLICATION", + "GUILD" + ], + "type": "string" + }, + "guild": { + "anyOf": [ + { + "$ref": "#/components/schemas/EmojiGuild" + }, + { + "type": "null" + } + ] + }, + "application": { + "anyOf": [ + { + "$ref": "#/components/schemas/EmojiApplication" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "type" + ] + }, + "GatewayBotResponse": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "shards": { + "type": "integer" + }, + "session_start_limit": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "remaining": { + "type": "integer" + }, + "reset_after": { + "type": "integer" + }, + "max_concurrency": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "max_concurrency", + "remaining", + "reset_after", + "total" + ] + } + }, + "required": [ + "session_start_limit", + "shards", + "url" + ] + }, + "GatewayResponse": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + }, + "required": [ + "url" + ] + }, + "GenerateRegistrationTokensResponse": { + "type": "object", + "properties": { + "tokens": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "tokens" + ] + }, + "GuildBansResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildBanResponse" + } + }, + "GuildBanResponse": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "nullable": true + }, + "user": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "public_flags", + "username" + ] + } + }, + "required": [ + "reason", + "user" + ] + }, + "GuildCreateResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "mfa_level": { + "type": "integer" + }, + "owner_id": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/components/schemas/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean" + }, + "parent": { + "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" + }, + "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 + } + }, + "required": [ + "id", + "name", + "nsfw", + "welcome_screen", + "widget_enabled" + ] + }, + "GuildDiscoveryRequirementsResponse": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "safe_environment": { + "type": "boolean" + }, + "healthy": { + "type": "boolean" + }, + "health_score_pending": { + "type": "boolean" + }, + "size": { + "type": "boolean" + }, + "nsfw_properties": {}, + "protected": { + "type": "boolean" + }, + "sufficient": { + "type": "boolean" + }, + "sufficient_without_grace_period": { + "type": "boolean" + }, + "valid_rules_channel": { + "type": "boolean" + }, + "retention_healthy": { + "type": "boolean" + }, + "engagement_healthy": { + "type": "boolean" + }, + "age": { + "type": "boolean" + }, + "minimum_age": { + "type": "integer" + }, + "health_score": { + "type": "object", + "properties": { + "avg_nonnew_participators": { + "type": "integer" + }, + "avg_nonnew_communicators": { + "type": "integer" + }, + "num_intentful_joiners": { + "type": "integer" + }, + "perc_ret_w1_intentful": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avg_nonnew_communicators", + "avg_nonnew_participators", + "num_intentful_joiners", + "perc_ret_w1_intentful" + ] + }, + "minimum_size": { + "type": "integer" + } + }, + "required": [ + "age", + "engagement_healthy", + "guild_id", + "health_score", + "health_score_pending", + "healthy", + "minimum_age", + "minimum_size", + "nsfw_properties", + "protected", + "retention_healthy", + "safe_environment", + "size", + "sufficient", + "sufficient_without_grace_period", + "valid_rules_channel" + ] + }, + "GuildMessagesSearchResponse": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildMessagesSearchMessage" + } + }, + "total_results": { + "type": "integer" + } + }, + "required": [ + "messages", + "total_results" + ] + }, + "GuildPruneResponse": { + "type": "object", + "properties": { + "pruned": { + "type": "integer" + } + }, + "required": [ + "pruned" + ] + }, + "GuildPurgeResponse": { + "type": "object", + "properties": { + "purged": { + "type": "integer" + } + }, + "required": [ + "purged" + ] + }, + "GuildRecommendationsResponse": { + "type": "object", + "properties": { + "recommended_guilds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Guild" + } + }, + "load_id": { + "type": "string" + } + }, + "required": [ + "load_id", + "recommended_guilds" + ] + }, + "GuildVanityUrlResponse": { + "anyOf": [ + { + "$ref": "#/components/schemas/GuildVanityUrl" + }, + { + "$ref": "#/components/schemas/GuildVanityUrlNoInvite" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildVanityUrl" + } + } + ] + }, + "GuildVanityUrlCreateResponse": { + "type": "object", + "properties": { + "code": { + "type": "string" + } + }, + "required": [ + "code" + ] + }, + "GuildWidgetJsonResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "instant_invite": { + "type": "string" + }, + "channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "position" + ] + } + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "status": { + "$ref": "#/components/schemas/ClientStatus" + }, + "avatar_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "avatar_url", + "discriminator", + "id", + "status", + "username" + ] + } + }, + "presence_count": { + "type": "integer" + } + }, + "required": [ + "channels", + "id", + "instant_invite", + "members", + "name", + "presence_count" + ] + }, + "GuildWidgetSettingsResponse": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "channel_id": { + "anyOf": [ + { + "$ref": "#/components/schemas/Snowflake" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "channel_id", + "enabled" + ] + }, + "HubDirectoryEntriesResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HubDirectoryEntry" + } + }, + "HubWaitlistSignupResponse": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "email_domain": { + "type": "string" + }, + "school": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "required": [ + "email", + "email_domain", + "school", + "user_id" + ] + }, + "InstanceDomainsResponse": { + "type": "object", + "properties": { + "admin": { + "type": "string" + }, + "api": { + "type": "string" + }, + "apiEndpoint": { + "type": "string" + }, + "cdn": { + "type": "string" + }, + "gateway": { + "type": "string" + }, + "defaultApiVersion": { + "type": "string" + } + }, + "required": [ + "api", + "apiEndpoint", + "cdn", + "defaultApiVersion", + "gateway" + ] + }, + "InstancePingResponse": { + "type": "object", + "properties": { + "ping": { + "type": "string", + "const": "pong!" + }, + "instance": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "image": { + "type": [ + "null", + "string" + ] + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ] + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ] + }, + "frontPage": { + "type": [ + "null", + "string" + ] + }, + "tosPage": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "correspondenceEmail", + "correspondenceUserID", + "description", + "frontPage", + "id", + "image", + "name", + "tosPage" + ] + } + }, + "required": [ + "instance", + "ping" + ] + }, + "InstanceStatsResponse": { + "type": "object", + "properties": { + "counts": { + "type": "object", + "properties": { + "user": { + "type": "integer" + }, + "guild": { + "type": "integer" + }, + "message": { + "type": "integer" + }, + "members": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "guild", + "members", + "message", + "user" + ] + } + }, + "required": [ + "counts" + ] + }, + "LocationMetadataResponse": { + "type": "object", + "properties": { + "consent_required": { + "type": "boolean" + }, + "country_code": { + "type": "string" + }, + "promotional_email_opt_in": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "const": true + }, + "pre_checked": { + "type": "boolean", + "const": false + } + }, + "additionalProperties": false, + "required": [ + "pre_checked", + "required" + ] + } + }, + "required": [ + "consent_required", + "country_code", + "promotional_email_opt_in" + ] + }, + "MemberJoinGuildResponse": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/components/schemas/GuildCreateResponse" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Emoji" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + } + }, + "required": [ + "emojis", + "guild", + "roles", + "stickers" + ] + }, + "OAuthAuthorizeResponse": { + "type": "object", + "properties": { + "location": { + "type": "string" + } + }, + "required": [ + "location" + ] + }, + "PreloadMessagesResponseSchema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message" + } + }, + "RefreshUrlsResponse": { + "type": "object", + "properties": { + "refreshed_urls": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RefreshedUrl" + } + } + }, + "required": [ + "refreshed_urls" + ] + }, + "SettingsProtoResponse": { + "type": "object", + "properties": { + "settings": { + "type": "string" + } + }, + "required": [ + "settings" + ] + }, + "SettingsProtoUpdateResponse": { + "type": "object", + "properties": { + "out_of_date": { + "type": "boolean" + }, + "settings": { + "type": "string" + } + }, + "required": [ + "settings" + ] + }, + "SettingsProtoJsonResponse": { + "type": "object", + "properties": { + "settings": { + "$ref": "#/components/schemas/JsonValue" + } + }, + "required": [ + "settings" + ] + }, + "SettingsProtoUpdateJsonResponse": { + "type": "object", + "properties": { + "out_of_date": { + "type": "boolean" + }, + "settings": { + "$ref": "#/components/schemas/JsonValue" + } + }, + "required": [ + "settings" + ] + }, + "TeamListResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Team" + } + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ] + }, + "TenorTrendingResponse": { + "type": "object", + "properties": { + "categories": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { + "searchterm": { + "type": "string" + }, + "path": { + "type": "string" + }, + "image": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "image", + "name", + "path", + "searchterm" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "tags" + ] + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TenorGifResponse" + } + } + }, + "required": [ + "categories", + "gifs" + ] + }, + "TenorGifsResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TenorGifResponse" + } + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/components/schemas/UserSettings" + } + }, + "required": [ + "settings", + "token" + ] + }, + "TokenOnlyResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + } + }, + "required": [ + "token" + ] + }, + "TokenWithBackupCodesResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "backup_codes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackupCode" + } + } + }, + "required": [ + "backup_codes", + "token" + ] + }, + "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" + } + }, + "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" + }, + "cover_image": { + "type": "string" + }, + "interactions_endpoint_url": { + "type": "string" + }, + "max_participants": { + "type": "integer", + "nullable": true + }, + "name": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "role_connections_verification_url": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "terms_of_service_url": { + "type": "string" + }, + "bot_public": { + "type": "boolean" + }, + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "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/ApplicationCommandOption" + } + }, + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/components/schemas/Snowflake" + }, + "attachments": { + "type": "array", + "items": { + "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" + }, + "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/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" + }, + "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 + }, + "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 + }, + "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": { + "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": [ + "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": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Channel" + } + }, + "members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Member" + } + }, + "icon": { + "type": "string" + }, + "system_channel_id": { + "type": "string", + "nullable": true + }, + "rules_channel_id": { + "type": "string", + "nullable": true + }, + "banner": { + "type": "string" + }, + "splash": { + "type": "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", + "nullable": true + }, + "afk_timeout": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string", + "nullable": true + }, + "preferred_locale": { + "type": "string" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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": { + "$ref": "#/components/schemas/Ban" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "unavailable": { + "type": "boolean" + }, + "welcome_screen": { + "$ref": "#/components/schemas/GuildWelcomeScreen", + "description": "DEPRECATED: Look at the new Guild onboarding screens." + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "discovery_weight": { + "type": "integer" + }, + "discovery_excluded": { + "type": "boolean" + } + }, + "required": [ + "bans", + "channel_ordering", + "channels", + "clean_data", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", + "get_annotations", + "id", + "insert", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ] + }, + "APIPublicUser": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "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" + ] + }, + "APIPrivateUser": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "flags": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "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" + }, + "mfa_enabled": { + "type": "boolean" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "settings": { + "$ref": "#/components/schemas/UserSettingsSchema" + } + }, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ] + }, + "APIGuildArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/APIGuild" + } + }, + "APIDMChannelArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DmChannelDTO" + } + }, + "APIBackupCodeArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackupCode" + } + }, + "UserUpdateResponse": { + "type": "object", + "properties": { + "newToken": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "flags": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "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" + }, + "mfa_enabled": { + "type": "boolean" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "settings": { + "$ref": "#/components/schemas/UserSettingsSchema" + } + }, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ] + }, + "ApplicationDetectableResponse": { + "type": "array", + "items": {} + }, + "ApplicationEntitlementsResponse": { + "type": "array", + "items": {} + }, + "ApplicationSkusResponse": { + "type": "array", + "items": {} + }, + "APIApplicationArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Application" + } + }, + "APIInviteArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Invite" + } + }, + "APIMessageArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message" + } + }, + "APIWebhookArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "APIDiscoveryCategoryArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Categories" + } + }, + "APIGeneralConfiguration": { + "type": "object", + "properties": { + "instanceName": { + "type": "string" + }, + "serverName": { + "type": "string", + "nullable": true + }, + "instanceDescription": { + "type": "string", + "nullable": true + }, + "frontPage": { + "type": "string", + "nullable": true + }, + "tosPage": { + "type": "string", + "nullable": true + }, + "correspondenceEmail": { + "type": "string", + "nullable": true + }, + "correspondenceUserID": { + "type": "string", + "nullable": true + }, + "image": { + "type": "string", + "nullable": true + }, + "instanceId": { + "type": "string" + }, + "autoCreateBotUsers": { + "type": "boolean" + } + }, + "required": [ + "autoCreateBotUsers", + "correspondenceEmail", + "correspondenceUserID", + "frontPage", + "image", + "instanceDescription", + "instanceId", + "instanceName", + "serverName", + "tosPage" + ] + }, + "APIChannelArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Channel" + } + }, + "APIMemberArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Member" + } + }, + "APIPublicMember": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "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" + ] + }, + "APIGuildWithJoinedAt": { + "type": "object", + "properties": { + "joined_at": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "mfa_level": { + "type": "integer" + }, + "owner_id": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/components/schemas/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean" + }, + "parent": { + "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" + }, + "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 + } + }, + "required": [ + "id", + "joined_at", + "name", + "nsfw", + "welcome_screen", + "widget_enabled" + ] + }, + "APIRoleArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "APITemplateArray": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Template" + } + }, + "APIGuildVoiceRegion": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildVoiceRegion" + } + }, + "APILimitsConfiguration": { + "type": "object", + "properties": { + "user": { + "$ref": "#/components/schemas/UserLimits" + }, + "guild": { + "$ref": "#/components/schemas/GuildLimits" + }, + "message": { + "$ref": "#/components/schemas/MessageLimits" + }, + "channel": { + "$ref": "#/components/schemas/ChannelLimits" + }, + "rate": { + "$ref": "#/components/schemas/RateLimits" + }, + "absoluteRate": { + "$ref": "#/components/schemas/GlobalRateLimits" + } + }, + "required": [ + "absoluteRate", + "channel", + "guild", + "message", + "rate", + "user" + ] + }, + "APIConnectionsConfiguration": { + "type": "object" + }, + "UpdatesResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pub_date": { + "type": "string" + }, + "url": { + "type": "string" + }, + "notes": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "notes", + "pub_date", + "url" + ] + }, + "UploadAttachmentResponseSchema": { + "type": "object", + "properties": { + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadAttachmentResponse" + } + } + }, + "required": [ + "attachments" + ] + }, + "UploadAttachmentResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "upload_url": { + "type": "string" + }, + "upload_filename": { + "type": "string" + }, + "original_content_type": { + "type": "string" + } + }, + "required": [ + "upload_filename", + "upload_url" + ] + }, + "UserNoteResponse": { + "type": "object", + "properties": { + "note": { + "type": "string" + }, + "note_user_id": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "required": [ + "note", + "note_user_id", + "user_id" + ] + }, + "UserProfileResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/components/schemas/PublicUser" + }, + "connected_accounts": { + "$ref": "#/components/schemas/PublicConnectedAccount" + }, + "premium_guild_since": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "mutual_guilds": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + "premium_type": { + "type": "integer" + }, + "profile_themes_experiment_bucket": { + "type": "integer" + }, + "user_profile": { + "$ref": "#/components/schemas/UserProfile" + }, + "guild_member": { + "$ref": "#/components/schemas/PublicMember" + }, + "guild_member_profile": { + "$ref": "#/components/schemas/PublicMemberProfile" + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Badge" + } + } + }, + "required": [ + "badges", + "connected_accounts", + "mutual_guilds", + "premium_type", + "profile_themes_experiment_bucket", + "user", + "user_profile" + ] + }, + "UserRelationsResponse": { + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + } + }, + "UserRelationshipsResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/RelationshipType" + }, + "nickname": { + "type": "null" + }, + "user": { + "$ref": "#/components/schemas/PublicUser" + } + }, + "required": [ + "id", + "nickname", + "type", + "user" + ] + }, + "WebAuthnCreateResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + "WebhookCreateResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/components/schemas/User" + }, + "hook": { + "$ref": "#/components/schemas/Webhook" + } + }, + "required": [ + "hook", + "user" + ] + }, "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,820 +7506,15 @@ "filename" ] }, - "InteractionCallbackType": { - "type": "number", + "Status": { "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12 - ] - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "thread_id": { - "type": "string" - }, - "thread": { - "$ref": "#/components/schemas/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/components/schemas/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/components/schemas/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/components/schemas/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/components/schemas/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/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" - }, - "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/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/components/schemas/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "message_snapshots": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessageSnapshot" - } - }, - "id": { - "type": "string" - } - }, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "message_snapshots", - "pinned", - "reactions", - "timestamp", - "type" - ] - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": "string", - "nullable": true - }, - "type": { - "$ref": "#/components/schemas/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Recipient" - } - }, - "thread_members": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ThreadMember" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "parent_id": { - "type": "string", - "nullable": true - }, - "parent": { - "$ref": "#/components/schemas/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/components/schemas/User" - }, - "last_pin_timestamp": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/components/schemas/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "thread_metadata": { - "$ref": "#/components/schemas/ThreadMetadata" - }, - "member_count": { - "type": "integer" - }, - "message_count": { - "type": "integer" - }, - "total_message_sent": { - "type": "integer" - }, - "available_tags": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Tag" - } - }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "required": [ - "created_at", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 255 - ] - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ] - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/components/schemas/UserSettings" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SecurityKey" - } - }, - "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" - }, - "tag": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "system", - "tag", - "username", - "verified", - "webauthn_enabled" - ] - }, - "Session": { - "type": "object", - "properties": { - "session_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "platform": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - }, - "location": { - "type": "string" - } - }, - "additionalProperties": false - }, - "client_status": { - "$ref": "#/components/schemas/ClientStatus" - }, - "status": { - "$ref": "#/components/schemas/Status" - }, - "is_admin_session": { - "type": "boolean" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "last_seen": { - "type": "string", - "format": "date-time" - }, - "last_seen_ip": { - "type": "string" - }, - "last_seen_location": { - "type": "string" - }, - "last_seen_location_info": { - "$ref": "#/components/schemas/ExtendedLocationInfo" - }, - "session_nickname": { - "type": "string" - } - }, - "required": [ - "activities", - "client_info", - "client_status", - "created_at", - "is_admin_session", - "session_id", - "status", - "user", - "user_id" - ] + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" }, "Activity": { "type": "object", @@ -8589,6 +7638,12 @@ "metadata": { "type": "object", "properties": { + "button_urls": { + "type": "array", + "items": { + "type": "string" + } + }, "context_uri": { "type": "string" }, @@ -8600,13 +7655,16 @@ "items": { "type": "string" } + }, + "type": { + "enum": [ + "episode", + "track" + ], + "type": "string" } }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] + "additionalProperties": false }, "session_id": { "type": "string" @@ -8629,218 +7687,12 @@ 5 ] }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - } - }, - "Status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string" - }, - "ExtendedLocationInfo": { - "type": "object", - "properties": { - "is_eu": { - "type": "boolean" - }, - "city": { - "type": "string" - }, - "region": { - "type": "string" - }, - "region_code": { - "type": "string" - }, - "country_name": { - "type": "string" - }, - "country_code": { - "type": "string" - }, - "continent_name": { - "type": "string" - }, - "continent_code": { - "type": "string" - }, - "latitude": { - "type": "integer" - }, - "longitude": { - "type": "integer" - }, - "postal": { - "type": "string" - }, - "calling_code": { - "type": "string" - }, - "flag": { - "type": "string" - }, - "emoji_flag": { - "type": "string" - }, - "emoji_unicode": { - "type": "string" - } - }, - "required": [ - "calling_code", - "city", - "continent_code", - "continent_name", - "country_code", - "country_name", - "emoji_flag", - "emoji_unicode", - "flag", - "is_eu", - "latitude", - "longitude", - "postal", - "region", - "region_code" - ] - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/components/schemas/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/components/schemas/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ] - }, - "RelationshipType": { + "ChannelPermissionOverwriteType": { "type": "number", "enum": [ - 4, - 3, - 2, - 1 - ] - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/components/schemas/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" + 0, + 1, + 2 ] }, "ConnectedAccountTokenData": { @@ -8873,3294 +7725,37 @@ "fetched_at" ] }, - "UserSettings": { + "AllowedMentions": { "type": "object", "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/components/schemas/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/components/schemas/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { + "parse": { "type": "array", "items": { - "$ref": "#/components/schemas/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ] - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - } - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "required": [ - "all" - ] - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": "integer", - "nullable": true - }, - "guild_ids": { - "type": "array", - "items": { + "enum": [ + "everyone", + "roles", + "users" + ], "type": "string" } }, - "id": { - "type": "integer", - "nullable": true - }, - "name": { - "type": "string", - "nullable": true - } - }, - "required": [ - "guild_ids" - ] - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ] - }, - "AvatarDecorationData": { - "type": "object", - "properties": { - "asset": { - "type": "string" - }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "expires_at": { - "type": "string", - "nullable": true - } - }, - "required": [ - "asset", - "expires_at", - "sku_id" - ] - }, - "DisplayNameStyle": { - "type": "object", - "properties": { - "font_id": { - "type": "integer" - }, - "effect_id": { - "type": "integer" - }, - "colors": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "required": [ - "colors", - "effect_id", - "font_id" - ] - }, - "Collectibles": { - "type": "object", - "properties": { - "nameplate": { - "anyOf": [ - { - "$ref": "#/components/schemas/NameplateData" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "nameplate" - ] - }, - "NameplateData": { - "type": "object", - "properties": { - "asset": { - "type": "string" - }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "label": { - "type": "string" - }, - "palette": { - "type": "string" - }, - "expires_at": { - "type": "integer", - "nullable": true - } - }, - "required": [ - "asset", - "expires_at", - "label", - "palette", - "sku_id" - ] - }, - "PrimaryGuild": { - "type": "object", - "properties": { - "identity_enabled": { - "type": "boolean", - "nullable": true - }, - "identity_guild_id": { - "type": "string", - "nullable": true - }, - "tag": { - "type": "string", - "nullable": true - }, - "badge": { - "type": "string", - "nullable": true - } - }, - "required": [ - "badge", - "identity_enabled", - "identity_guild_id", - "tag" - ] - }, - "ThreadMember": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "member_idx": { - "type": "string" - }, - "member": { - "$ref": "#/components/schemas/Member" - }, - "join_timestamp": { - "type": "string", - "format": "date-time" - }, - "muted": { - "type": "boolean" - }, - "mute_config": { - "$ref": "#/components/schemas/ThreadMemberMuteConfig" - }, - "flags": { - "$ref": "#/components/schemas/ThreadMemberFlags" - } - }, - "required": [ - "channel", - "flags", - "id", - "index", - "join_timestamp", - "member", - "member_idx", - "muted" - ] - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/components/schemas/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "avatar_decoration_data": { - "$ref": "#/components/schemas/AvatarDecorationData" - }, - "display_name_styles": { - "$ref": "#/components/schemas/DisplayNameStyle" - }, - "collectibles": { - "$ref": "#/components/schemas/Collectibles" - }, - "flags": { - "type": "integer", - "default": 0 - } - }, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "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": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "colors": { - "$ref": "#/components/schemas/RoleColors" - }, - "id": { - "type": "string" - } - }, - "required": [ - "color", - "colors", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "RoleColors": { - "type": "object", - "properties": { - "primary_color": { - "type": "integer" - }, - "secondary_color": { - "type": "integer" - }, - "tertiary_color": { - "type": "integer" - } - }, - "required": [ - "primary_color" - ] - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/components/schemas/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/components/schemas/Guild" - }, - "serialized_source_guild": { - "$ref": "#/components/schemas/Guild" - }, - "id": { - "type": "string" - } - }, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ] - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, "roles": { "type": "array", "items": { "type": "string" } }, - "groups": { + "users": { "type": "array", "items": { "type": "string" } }, - "id": { - "type": "string" - } - }, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ] - }, - "Sticker": { - "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" - }, - "id": { - "type": "string" - } - }, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ] - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/components/schemas/Sticker" - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "name", - "stickers" - ] - }, - "StickerType": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, - "StickerFormatType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 - ] - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/components/schemas/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ] - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "member": { - "$ref": "#/components/schemas/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ] - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/components/schemas/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/components/schemas/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/components/schemas/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ] - }, - "WebhookType": { - "type": "number", - "enum": [ - 1, - 2, - 3 - ] - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/components/schemas/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/components/schemas/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/components/schemas/Guild" - }, - "custom_install_url": { - "type": "string" - }, - "team": { - "$ref": "#/components/schemas/Team" - }, - "id": { - "type": "string" - } - }, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ] - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/components/schemas/User" - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ] - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/components/schemas/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "role": { - "$ref": "#/components/schemas/TeamMemberRole" - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/components/schemas/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "membership_state", - "permissions", - "role", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, - "TeamMemberRole": { - "type": "string", - "enum": [ - "admin", - "developer", - "read_only" - ] - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "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": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "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" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": "string", - "nullable": true - } - }, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ] - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "selected_time_window": { - "type": "integer" - } - }, - "required": [ - "end_time", - "selected_time_window" - ] - }, - "ThreadMemberMuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "string", - "format": "date-time" - }, - "selected_time_window": { - "type": "integer" - } - } - }, - "ThreadMemberFlags": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 4, - 8 - ] - }, - "ChannelPermissionOverwrite": { - "type": "object", - "properties": { - "allow": { - "type": "string" - }, - "deny": { - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/ChannelPermissionOverwriteType" - } - }, - "required": [ - "allow", - "deny", - "id", - "type" - ] - }, - "ChannelPermissionOverwriteType": { - "type": "number", - "enum": [ - 0, - 1, - 2 - ] - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/components/schemas/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/User" - }, - "last_message_id": { - "type": "string" - }, - "last_acked_id": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "mention_count": { - "type": "integer" - }, - "badge_count": { - "type": "integer" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "read_state_type": { - "$ref": "#/components/schemas/ReadStateType" - }, - "flags": { - "$ref": "#/components/schemas/ReadStateFlags" - }, - "id": { - "type": "string" - } - }, - "required": [ - "badge_count", - "channel", - "channel_id", - "flags", - "id", - "mention_count", - "notifications_cursor", - "read_state_type", - "user", - "user_id" - ] - }, - "ReadStateType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5 - ] - }, - "ReadStateFlags": { - "type": "number", - "enum": [ - 1, - 2, - 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": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/components/schemas/Message" - }, - "id": { - "type": "string" - } - }, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ] - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/components/schemas/EmbedImage" - }, - "thumbnail": { - "$ref": "#/components/schemas/EmbedImage" - }, - "video": { - "$ref": "#/components/schemas/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - } - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - } - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/components/schemas/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "count", - "emoji", - "user_ids" - ] - }, - "PartialEmoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - }, - "MessageType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55, - 56, - 57, - 58, - 59, - 60, - 61, - 62, - 63, - 255 - ] - }, - "ApplicationCommandType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 - ] - }, - "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" - } - ] - } - } - }, - "required": [ - "components", - "type" - ] - }, - "MessageComponentType.ActionRow": { - "type": "number", - "const": 1 - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.Button" - }, - "style": { - "$ref": "#/components/schemas/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "style", - "type" - ] - }, - "MessageComponentType.Button": { - "type": "number", - "const": 2 - }, - "ButtonStyle": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ] - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "custom_id", - "type" - ] - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "required": [ - "custom_id", - "options", - "type" - ] - }, - "MessageComponentType.StringSelect": { - "type": "number", - "const": 3 - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - }, - "default": { - "type": "boolean" - } - }, - "required": [ - "label", - "value" - ] - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/components/schemas/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "required": [ - "custom_id", - "label", - "style", - "type" - ] - }, - "MessageComponentType.TextInput": { - "type": "number", - "const": 4 - }, - "TextInputStyle": { - "type": "number", - "enum": [ - 1, - 2 - ] - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/components/schemas/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/components/schemas/PollResult" - } - }, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ] - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - } - } - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/components/schemas/PollMedia" - } - }, - "required": [ - "poll_media" - ] - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PollAnswerCount" - } - } - }, - "required": [ - "answer_counts", - "is_finalized" - ] - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "required": [ - "count", - "id", - "me_voted" - ] - }, - "MessageSnapshot": { - "type": "object", - "properties": { - "message": { - "type": "object", - "properties": { - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "mentions": { - "type": "array", - "items": { - "type": "string" - } - }, - "mention_roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Embed" - } - }, - "type": { - "$ref": "#/components/schemas/MessageType" - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessageComponent" - } - }, - "resolved": { - "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sticker" - } - } - }, - "additionalProperties": false, - "required": [ - "content", - "embeds", - "flags", - "mention_roles", - "mentions", - "timestamp", - "type" - ] - } - }, - "required": [ - "message" - ] - }, - "MessageComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessageComponentType" - } - }, - "required": [ - "type" - ] - }, - "MessageComponentType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23 - ] - }, - "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" - }, - "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" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "user": { - "$ref": "#/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" - ] - }, - "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" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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" - ] - }, - "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" - ] - }, - "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 - ] - }, - "InstanceUserDeleteSchemaContent": { - "type": "object", - "properties": { - "reason": { - "type": "string" - }, - "persistInstanceBan": { + "replied_user": { "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" - }, - "discriminator": { - "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": { - "type": "boolean" - }, - "system": { - "type": "boolean" - }, - "banner": { - "type": "string", - "nullable": true - }, - "accent_color": { - "type": "integer", - "nullable": true - }, - "public_flags": { - "type": "integer" - } - }, - "required": [ - "avatar", - "discriminator", - "id", - "username" - ] - }, "Classification": { "type": "object", "properties": { @@ -13013,6 +8608,4241 @@ "type" ] }, + "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" + ] + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": "string", + "nullable": true + }, + "type": { + "$ref": "#/components/schemas/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Recipient" + } + }, + "thread_members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ThreadMember" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "parent_id": { + "type": "string", + "nullable": true + }, + "parent": { + "$ref": "#/components/schemas/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/components/schemas/User" + }, + "last_pin_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "thread_metadata": { + "$ref": "#/components/schemas/ThreadMetadata" + }, + "member_count": { + "type": "integer" + }, + "message_count": { + "type": "integer" + }, + "total_message_sent": { + "type": "integer" + }, + "available_tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tag" + } + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "status": { + "type": "string", + "nullable": true + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "required": [ + "created_at", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 255 + ] + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ] + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/components/schemas/UserSettings" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SecurityKey" + } + }, + "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" + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ] + }, + "Session": { + "type": "object", + "properties": { + "session_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "platform": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "location": { + "type": "string" + } + }, + "additionalProperties": false + }, + "client_status": { + "$ref": "#/components/schemas/ClientStatus" + }, + "status": { + "$ref": "#/components/schemas/Status" + }, + "is_admin_session": { + "type": "boolean" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "last_seen": { + "type": "string", + "format": "date-time" + }, + "last_seen_ip": { + "type": "string" + }, + "last_seen_location": { + "type": "string" + }, + "last_seen_location_info": { + "$ref": "#/components/schemas/ExtendedLocationInfo" + }, + "session_nickname": { + "type": "string" + } + }, + "required": [ + "activities", + "client_info", + "client_status", + "created_at", + "is_admin_session", + "session_id", + "status", + "user", + "user_id" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + } + }, + "ExtendedLocationInfo": { + "type": "object", + "properties": { + "is_eu": { + "type": "boolean" + }, + "city": { + "type": "string" + }, + "region": { + "type": "string" + }, + "region_code": { + "type": "string" + }, + "country_name": { + "type": "string" + }, + "country_code": { + "type": "string" + }, + "continent_name": { + "type": "string" + }, + "continent_code": { + "type": "string" + }, + "latitude": { + "type": "integer" + }, + "longitude": { + "type": "integer" + }, + "postal": { + "type": "string" + }, + "calling_code": { + "type": "string" + }, + "flag": { + "type": "string" + }, + "emoji_flag": { + "type": "string" + }, + "emoji_unicode": { + "type": "string" + } + }, + "required": [ + "calling_code", + "city", + "continent_code", + "continent_name", + "country_code", + "country_name", + "emoji_flag", + "emoji_unicode", + "flag", + "is_eu", + "latitude", + "longitude", + "postal", + "region", + "region_code" + ] + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/components/schemas/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ] + }, + "RelationshipType": { + "type": "number", + "enum": [ + 4, + 3, + 2, + 1 + ] + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/components/schemas/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ] + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/components/schemas/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/components/schemas/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_discovery_flags", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset", + "view_nsfw_guilds" + ] + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + } + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "required": [ + "all" + ] + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": "integer", + "nullable": true + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "integer", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + } + }, + "required": [ + "guild_ids" + ] + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ] + }, + "AvatarDecorationData": { + "type": "object", + "properties": { + "asset": { + "type": "string" + }, + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "expires_at": { + "type": "string", + "nullable": true + } + }, + "required": [ + "asset", + "expires_at", + "sku_id" + ] + }, + "DisplayNameStyle": { + "type": "object", + "properties": { + "font_id": { + "type": "integer" + }, + "effect_id": { + "type": "integer" + }, + "colors": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "required": [ + "colors", + "effect_id", + "font_id" + ] + }, + "Collectibles": { + "type": "object", + "properties": { + "nameplate": { + "anyOf": [ + { + "$ref": "#/components/schemas/NameplateData" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "nameplate" + ] + }, + "NameplateData": { + "type": "object", + "properties": { + "asset": { + "type": "string" + }, + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "label": { + "type": "string" + }, + "palette": { + "type": "string" + }, + "expires_at": { + "type": "integer", + "nullable": true + } + }, + "required": [ + "asset", + "expires_at", + "label", + "palette", + "sku_id" + ] + }, + "PrimaryGuild": { + "type": "object", + "properties": { + "identity_enabled": { + "type": "boolean", + "nullable": true + }, + "identity_guild_id": { + "type": "string", + "nullable": true + }, + "tag": { + "type": "string", + "nullable": true + }, + "badge": { + "type": "string", + "nullable": true + } + }, + "required": [ + "badge", + "identity_enabled", + "identity_guild_id", + "tag" + ] + }, + "ThreadMember": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "member_idx": { + "type": "string" + }, + "member": { + "$ref": "#/components/schemas/Member" + }, + "join_timestamp": { + "type": "string", + "format": "date-time" + }, + "muted": { + "type": "boolean" + }, + "mute_config": { + "$ref": "#/components/schemas/ThreadMemberMuteConfig" + }, + "flags": { + "$ref": "#/components/schemas/ThreadMemberFlags" + } + }, + "required": [ + "channel", + "flags", + "id", + "index", + "join_timestamp", + "member", + "member_idx", + "muted" + ] + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/components/schemas/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "avatar_decoration_data": { + "$ref": "#/components/schemas/AvatarDecorationData" + }, + "display_name_styles": { + "$ref": "#/components/schemas/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/components/schemas/Collectibles" + }, + "flags": { + "type": "integer", + "default": 0 + } + }, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "flags", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ] + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "colors": { + "$ref": "#/components/schemas/RoleColors" + }, + "id": { + "type": "string" + } + }, + "required": [ + "color", + "colors", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "RoleColors": { + "type": "object", + "properties": { + "primary_color": { + "type": "integer" + }, + "secondary_color": { + "type": "integer" + }, + "tertiary_color": { + "type": "integer" + } + }, + "required": [ + "primary_color" + ] + }, + "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": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "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" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": "string", + "nullable": true + } + }, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ] + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "selected_time_window": { + "type": "integer" + } + }, + "required": [ + "end_time", + "selected_time_window" + ] + }, + "ThreadMemberMuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "string", + "format": "date-time" + }, + "selected_time_window": { + "type": "integer" + } + } + }, + "ThreadMemberFlags": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 4, + 8 + ] + }, + "ChannelPermissionOverwrite": { + "type": "object", + "properties": { + "allow": { + "type": "string" + }, + "deny": { + "type": "string" + }, + "id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ChannelPermissionOverwriteType" + } + }, + "required": [ + "allow", + "deny", + "id", + "type" + ] + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/components/schemas/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ] + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "thread_id": { + "type": "string" + }, + "thread": { + "$ref": "#/components/schemas/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/components/schemas/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/components/schemas/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/components/schemas/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/components/schemas/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/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" + }, + "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" + } + }, + "required": [ + "channel", + "embeds", + "flags", + "id", + "mention_channels", + "mention_roles", + "mentions", + "message_snapshots", + "pinned", + "reactions", + "timestamp", + "type" + ] + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/components/schemas/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/components/schemas/Guild" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/components/schemas/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "user", + "user_id" + ] + }, + "WebhookType": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ] + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/components/schemas/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/components/schemas/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "custom_install_url": { + "type": "string" + }, + "team": { + "$ref": "#/components/schemas/Team" + }, + "id": { + "type": "string" + } + }, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ] + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/components/schemas/User" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ] + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/components/schemas/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "role": { + "$ref": "#/components/schemas/TeamMemberRole" + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/components/schemas/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "membership_state", + "permissions", + "role", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "TeamMemberRole": { + "type": "string", + "enum": [ + "admin", + "developer", + "read_only" + ] + }, + "Sticker": { + "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" + }, + "id": { + "type": "string" + } + }, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ] + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/components/schemas/Sticker" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "stickers" + ] + }, + "StickerType": { + "type": "number", + "enum": [ + 1, + 2 + ] + }, + "StickerFormatType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, + "Attachment": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/components/schemas/Message" + }, + "id": { + "type": "string" + } + }, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ] + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/components/schemas/EmbedImage" + }, + "thumbnail": { + "$ref": "#/components/schemas/EmbedImage" + }, + "video": { + "$ref": "#/components/schemas/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + } + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + } + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "count", + "emoji", + "user_ids" + ] + }, + "PartialEmoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + }, + "MessageType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 255 + ] + }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ] + }, + "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.Section" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TextDisplayComponent" + } + }, + "accessory": { + "anyOf": [ + { + "$ref": "#/components/schemas/ThumbnailComponent" + }, + { + "$ref": "#/components/schemas/ButtonComponent" + } + ] + }, + "id": { + "type": "integer" + } + }, + "required": [ + "accessory", + "components", + "type" + ] + }, + "MessageComponentType.Section": { + "type": "number", + "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", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.Button" + }, + "style": { + "$ref": "#/components/schemas/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "style", + "type" + ] + }, + "MessageComponentType.Button": { + "type": "number", + "const": 2 + }, + "ButtonStyle": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ] + }, + "MediaGalleryComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.MediaGallery" + }, + "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": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "custom_id", + "type" + ] + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "custom_id", + "options", + "type" + ] + }, + "MessageComponentType.StringSelect": { + "type": "number", + "const": 3 + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + }, + "default": { + "type": "boolean" + } + }, + "required": [ + "label", + "value" + ] + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/components/schemas/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "custom_id", + "label", + "style", + "type" + ] + }, + "MessageComponentType.TextInput": { + "type": "number", + "const": 4 + }, + "TextInputStyle": { + "type": "number", + "enum": [ + 1, + 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": { + "question": { + "$ref": "#/components/schemas/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/components/schemas/PollResult" + } + }, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + } + } + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/components/schemas/PollMedia" + } + }, + "required": [ + "poll_media" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswerCount" + } + } + }, + "required": [ + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "required": [ + "count", + "id", + "me_voted" + ] + }, + "MessageSnapshot": { + "type": "object", + "properties": { + "message": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "mentions": { + "type": "array", + "items": { + "type": "string" + } + }, + "mention_roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embed" + } + }, + "type": { + "$ref": "#/components/schemas/MessageType" + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "resolved": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + } + }, + "additionalProperties": false, + "required": [ + "content", + "embeds", + "flags", + "mention_roles", + "mentions", + "timestamp", + "type" + ] + } + }, + "required": [ + "message" + ] + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessageComponentType" + }, + "id": { + "type": "integer" + } + }, + "required": [ + "type" + ] + }, + "MessageComponentType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ] + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "member": { + "$ref": "#/components/schemas/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ] + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/components/schemas/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "last_message_id": { + "type": "string" + }, + "last_acked_id": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "mention_count": { + "type": "integer" + }, + "badge_count": { + "type": "integer" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "read_state_type": { + "$ref": "#/components/schemas/ReadStateType" + }, + "flags": { + "$ref": "#/components/schemas/ReadStateFlags" + }, + "id": { + "type": "string" + } + }, + "required": [ + "badge_count", + "channel", + "channel_id", + "flags", + "id", + "mention_count", + "notifications_cursor", + "read_state_type", + "user", + "user_id" + ] + }, + "ReadStateType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ] + }, + "ReadStateFlags": { + "type": "number", + "enum": [ + 1, + 2, + 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" + ] + }, + "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" + ] + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/components/schemas/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/components/schemas/Guild" + }, + "serialized_source_guild": { + "$ref": "#/components/schemas/Guild" + }, + "id": { + "type": "string" + } + }, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ] + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/components/schemas/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ] + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "required": [ + "description", + "enabled", + "welcome_channels" + ] + }, "PartialMessage": { "description": "https://docs.discord.food/resources/message#partial-message-structure", "type": "object", @@ -13048,6 +12878,92 @@ "type" ] }, + "PartialUser": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "global_name": { + "type": "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": { + "type": "boolean" + }, + "system": { + "type": "boolean" + }, + "banner": { + "type": "string", + "nullable": true + }, + "accent_color": { + "type": "integer", + "nullable": true + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "avatar", + "discriminator", + "id", + "username" + ] + }, "HubGuild": { "type": "object", "properties": { @@ -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 0369e04..256191e 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -224,3744 +224,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionCallbackSchema": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/InteractionCallbackType" - }, - "data": { - "$ref": "#/definitions/Message" - } - }, - "additionalProperties": false, - "required": [ - "data", - "type" - ], - "$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" - }, - "cover_image": { - "type": "string" - }, - "interactions_endpoint_url": { - "type": "string" - }, - "max_participants": { - "type": [ - "null", - "integer" - ] - }, - "name": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "role_connections_verification_url": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "terms_of_service_url": { - "type": "string" - }, - "bot_public": { - "type": "boolean" - }, - "bot_require_code_grant": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "custom_install_url": { - "type": "string" - }, - "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/ApplicationCommandOption" - } - }, - "target_id": { - "description": "A container for useful snowflake-related methods.", - "$ref": "#/definitions/Snowflake" - }, - "attachments": { - "type": "array", - "items": { - "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" - }, - "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": { - "type": "string" - }, - "icon_hash": { - "type": [ - "null", - "string" - ] - }, - "member_count": { - "type": "integer" - }, - "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#" - }, - "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#" - }, - "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 - }, - "intents": { - "type": "bigint" - }, - "presence": { - "$ref": "#/definitions/ActivitySchema" - }, - "compress": { - "type": "boolean" - }, - "large_threshold": { - "type": "integer" - }, - "largeThreshold": { - "type": "integer" - }, - "shard": { - "minItems": 2, - "maxItems": 2, - "type": "array", - "items": { - "type": "bigint" - } - }, - "guild_subscriptions": { - "type": "boolean" - }, - "capabilities": { - "type": "integer" - }, - "client_state": { - "type": "object", - "properties": { - "guild_hashes": {}, - "highest_last_message_id": { - "type": "integer" - }, - "read_state_version": { - "type": "integer" - }, - "user_guild_settings_version": { - "type": "integer" - }, - "user_settings_version": { - "type": "integer" - }, - "useruser_guild_settings_version": { - "type": "integer" - }, - "private_channels_version": { - "type": "integer" - }, - "guild_versions": {}, - "api_code_version": { - "type": "integer" - }, - "initial_guild_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "clientState": { - "type": "object", - "properties": { - "guildHashes": {}, - "highestLastMessageId": { - "type": "integer" - }, - "readStateVersion": { - "type": "integer" - }, - "userGuildSettingsVersion": { - "type": "integer" - }, - "useruserGuildSettingsVersion": { - "type": "integer" - }, - "guildVersions": {}, - "apiCodeVersion": { - "type": "integer" - }, - "initialGuildId": { - "type": "string" - } - }, - "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#" - }, - "APIErrorResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "_errors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "message" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "_errors" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "code", - "errors", - "message" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CaptchaRequiredResponse": { - "type": "object", - "properties": { - "captcha_key": { - "type": "string" - }, - "captcha_sitekey": { - "type": "string" - }, - "captcha_service": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIErrorOrCaptchaResponse": { - "anyOf": [ - { - "$ref": "#/definitions/APIErrorResponse" - }, - { - "$ref": "#/definitions/CaptchaRequiredResponse" - } - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AccountStandingResponse": { - "type": "object", - "properties": { - "classifications": { - "type": "array", - "items": { - "$ref": "#/definitions/Classification" - } - }, - "guild_classifications": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildClassification" - } - }, - "account_standing": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/AccountStandingState" - } - }, - "additionalProperties": false, - "required": [ - "state" - ] - }, - "is_dsa_eligible": { - "type": "boolean" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "is_appeal_eligible": { - "type": "boolean" - }, - "appeal_eligibility": { - "type": "array", - "items": { - "$ref": "#/definitions/AppealEligibility" - } - } - }, - "additionalProperties": false, - "required": [ - "account_standing", - "appeal_eligibility", - "classifications", - "discriminator", - "guild_classifications", - "is_appeal_eligible", - "is_dsa_eligible", - "username" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BackupCodesChallengeResponse": { - "type": "object", - "properties": { - "nonce": { - "type": "string" - }, - "regenerate_nonce": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "nonce", - "regenerate_nonce" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CollectiblesCategoriesResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/CollectiblesCategoryItem" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CollectiblesMarketingResponse": { - "type": "object", - "properties": { - "marketings": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/CollectiblesMarketingItem" - } - } - }, - "additionalProperties": false, - "required": [ - "marketings" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CollectiblesShopResponse": { - "type": "object", - "properties": { - "shop_blocks": { - "type": "array", - "items": { - "$ref": "#/definitions/AnyShopBlock" - } - }, - "categories": { - "type": "array", - "items": { - "$ref": "#/definitions/CollectiblesCategoryItem" - } - } - }, - "additionalProperties": false, - "required": [ - "categories", - "shop_blocks" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "DiscoverableGuildsResponse": { - "type": "object", - "properties": { - "total": { - "type": "integer" - }, - "guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "offset": { - "type": "integer" - }, - "limit": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "guilds", - "limit", - "offset", - "total" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "DmMessagesResponseSchema": { - "type": "array", - "items": { - "$ref": "#/definitions/PartialMessage" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmailDomainLookupResponse": { - "type": "object", - "properties": { - "guilds_info": { - "type": "array", - "items": { - "$ref": "#/definitions/HubGuild" - } - }, - "has_matching_guild": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "guilds_info", - "has_matching_guild" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmailDomainLookupVerifyCodeResponse": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/Guild" - }, - "joined": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "guild", - "joined" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmojiSourceResponse": { - "type": "object", - "properties": { - "type": { - "enum": [ - "APPLICATION", - "GUILD" - ], - "type": "string" - }, - "guild": { - "anyOf": [ - { - "$ref": "#/definitions/EmojiGuild" - }, - { - "type": "null" - } - ] - }, - "application": { - "anyOf": [ - { - "$ref": "#/definitions/EmojiApplication" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GatewayBotResponse": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "shards": { - "type": "integer" - }, - "session_start_limit": { - "type": "object", - "properties": { - "total": { - "type": "integer" - }, - "remaining": { - "type": "integer" - }, - "reset_after": { - "type": "integer" - }, - "max_concurrency": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "max_concurrency", - "remaining", - "reset_after", - "total" - ] - } - }, - "additionalProperties": false, - "required": [ - "session_start_limit", - "shards", - "url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GatewayResponse": { - "type": "object", - "properties": { - "url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GenerateRegistrationTokensResponse": { - "type": "object", - "properties": { - "tokens": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "tokens" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildBansResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildBanResponse" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildBanResponse": { - "type": "object", - "properties": { - "reason": { - "type": [ - "null", - "string" - ] - }, - "user": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "public_flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "discriminator", - "id", - "public_flags", - "username" - ] - } - }, - "additionalProperties": false, - "required": [ - "reason", - "user" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildCreateResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "template_id": { - "type": "string" - }, - "mfa_level": { - "type": "integer" - }, - "owner_id": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean" - }, - "parent": { - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "guild_template_code": { - "type": "string" - }, - "staff_only": { - "type": "boolean" - }, - "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" - ] - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "nsfw", - "welcome_screen", - "widget_enabled" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildDiscoveryRequirementsResponse": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "safe_environment": { - "type": "boolean" - }, - "healthy": { - "type": "boolean" - }, - "health_score_pending": { - "type": "boolean" - }, - "size": { - "type": "boolean" - }, - "nsfw_properties": {}, - "protected": { - "type": "boolean" - }, - "sufficient": { - "type": "boolean" - }, - "sufficient_without_grace_period": { - "type": "boolean" - }, - "valid_rules_channel": { - "type": "boolean" - }, - "retention_healthy": { - "type": "boolean" - }, - "engagement_healthy": { - "type": "boolean" - }, - "age": { - "type": "boolean" - }, - "minimum_age": { - "type": "integer" - }, - "health_score": { - "type": "object", - "properties": { - "avg_nonnew_participators": { - "type": "integer" - }, - "avg_nonnew_communicators": { - "type": "integer" - }, - "num_intentful_joiners": { - "type": "integer" - }, - "perc_ret_w1_intentful": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avg_nonnew_communicators", - "avg_nonnew_participators", - "num_intentful_joiners", - "perc_ret_w1_intentful" - ] - }, - "minimum_size": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "age", - "engagement_healthy", - "guild_id", - "health_score", - "health_score_pending", - "healthy", - "minimum_age", - "minimum_size", - "nsfw_properties", - "protected", - "retention_healthy", - "safe_environment", - "size", - "sufficient", - "sufficient_without_grace_period", - "valid_rules_channel" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildMessagesSearchResponse": { - "type": "object", - "properties": { - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildMessagesSearchMessage" - } - }, - "total_results": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "messages", - "total_results" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildPruneResponse": { - "type": "object", - "properties": { - "pruned": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "pruned" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildPurgeResponse": { - "type": "object", - "properties": { - "purged": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "purged" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildRecommendationsResponse": { - "type": "object", - "properties": { - "recommended_guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "load_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "load_id", - "recommended_guilds" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildVanityUrlResponse": { - "anyOf": [ - { - "$ref": "#/definitions/GuildVanityUrl" - }, - { - "$ref": "#/definitions/GuildVanityUrlNoInvite" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/GuildVanityUrl" - } - } - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildVanityUrlCreateResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildWidgetJsonResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "instant_invite": { - "type": "string" - }, - "channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "position" - ] - } - }, - "members": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "status": { - "$ref": "#/definitions/ClientStatus" - }, - "avatar_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "avatar_url", - "discriminator", - "id", - "status", - "username" - ] - } - }, - "presence_count": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channels", - "id", - "instant_invite", - "members", - "name", - "presence_count" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildWidgetSettingsResponse": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "channel_id": { - "anyOf": [ - { - "$ref": "#/definitions/Snowflake" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "enabled" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "HubDirectoryEntriesResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/HubDirectoryEntry" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "HubWaitlistSignupResponse": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "email_domain": { - "type": "string" - }, - "school": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "email", - "email_domain", - "school", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "InstanceDomainsResponse": { - "type": "object", - "properties": { - "admin": { - "type": "string" - }, - "api": { - "type": "string" - }, - "apiEndpoint": { - "type": "string" - }, - "cdn": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "defaultApiVersion": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "api", - "apiEndpoint", - "cdn", - "defaultApiVersion", - "gateway" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "InstancePingResponse": { - "type": "object", - "properties": { - "ping": { - "type": "string", - "const": "pong!" - }, - "instance": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ] - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ] - }, - "frontPage": { - "type": [ - "null", - "string" - ] - }, - "tosPage": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "correspondenceEmail", - "correspondenceUserID", - "description", - "frontPage", - "id", - "image", - "name", - "tosPage" - ] - } - }, - "additionalProperties": false, - "required": [ - "instance", - "ping" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "InstanceStatsResponse": { - "type": "object", - "properties": { - "counts": { - "type": "object", - "properties": { - "user": { - "type": "integer" - }, - "guild": { - "type": "integer" - }, - "message": { - "type": "integer" - }, - "members": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "guild", - "members", - "message", - "user" - ] - } - }, - "additionalProperties": false, - "required": [ - "counts" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "LocationMetadataResponse": { - "type": "object", - "properties": { - "consent_required": { - "type": "boolean" - }, - "country_code": { - "type": "string" - }, - "promotional_email_opt_in": { - "type": "object", - "properties": { - "required": { - "type": "boolean", - "const": true - }, - "pre_checked": { - "type": "boolean", - "const": false - } - }, - "additionalProperties": false, - "required": [ - "pre_checked", - "required" - ] - } - }, - "additionalProperties": false, - "required": [ - "consent_required", - "country_code", - "promotional_email_opt_in" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MemberJoinGuildResponse": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/GuildCreateResponse" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - } - }, - "additionalProperties": false, - "required": [ - "emojis", - "guild", - "roles", - "stickers" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "OAuthAuthorizeResponse": { - "type": "object", - "properties": { - "location": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "location" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PreloadMessagesResponseSchema": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RefreshUrlsResponse": { - "type": "object", - "properties": { - "refreshed_urls": { - "type": "array", - "items": { - "$ref": "#/definitions/RefreshedUrl" - } - } - }, - "additionalProperties": false, - "required": [ - "refreshed_urls" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SettingsProtoResponse": { - "type": "object", - "properties": { - "settings": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "settings" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SettingsProtoUpdateResponse": { - "type": "object", - "properties": { - "out_of_date": { - "type": "boolean" - }, - "settings": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "settings" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SettingsProtoJsonResponse": { - "type": "object", - "properties": { - "settings": { - "$ref": "#/definitions/JsonValue" - } - }, - "additionalProperties": false, - "required": [ - "settings" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SettingsProtoUpdateJsonResponse": { - "type": "object", - "properties": { - "out_of_date": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/JsonValue" - } - }, - "additionalProperties": false, - "required": [ - "settings" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TeamListResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/Team" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TenorGifResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "src": { - "type": "string" - }, - "gif_src": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "preview": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TenorTrendingResponse": { - "type": "object", - "properties": { - "categories": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "searchterm": { - "type": "string" - }, - "path": { - "type": "string" - }, - "image": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "image", - "name", - "path", - "searchterm" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "tags" - ] - }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" - } - } - }, - "additionalProperties": false, - "required": [ - "categories", - "gifs" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TenorGifsResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TokenOnlyResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "token" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TokenWithBackupCodesResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "backup_codes": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" - } - } - }, - "additionalProperties": false, - "required": [ - "backup_codes", - "token" - ], - "$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" - }, - "icon": { - "type": "string" - }, - "parent": { - "type": "string" - }, - "owner_id": { - "type": "string" - }, - "nsfw": { - "type": "boolean" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "member_count": { - "type": "integer" - }, - "get_annotations": { - "type": "object", - "additionalProperties": false - }, - "clean_data": { - "type": "object", - "additionalProperties": false - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "banner": { - "type": "string" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "system_channel_id": { - "type": [ - "null", - "string" - ] - }, - "rules_channel_id": { - "type": [ - "null", - "string" - ] - }, - "splash": { - "type": "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": [ - "null", - "string" - ] - }, - "afk_timeout": { - "type": "integer" - }, - "afk_channel_id": { - "type": [ - "null", - "string" - ] - }, - "preferred_locale": { - "type": "string" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "discovery_splash": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - } - }, - "template_id": { - "type": "string" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "mfa_level": { - "type": "integer" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "unavailable": { - "type": "boolean" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen", - "description": "DEPRECATED: Look at the new Guild onboarding screens." - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "channel_ordering": { - "type": "array", - "items": { - "type": "string" - } - }, - "discovery_weight": { - "type": "integer" - }, - "discovery_excluded": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "bans", - "channel_ordering", - "channels", - "clean_data", - "discovery_excluded", - "discovery_weight", - "emojis", - "features", - "get_annotations", - "id", - "insert", - "invites", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", - "roles", - "stickers", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIPublicUser": { - "type": "object", - "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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#" - }, - "APIPrivateUser": { - "type": "object", - "properties": { - "email": { - "type": "string" - }, - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "flags": { - "type": "integer" - }, - "verified": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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" - }, - "mfa_enabled": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserSettingsSchema" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIGuildArray": { - "type": "array", - "items": { - "$ref": "#/definitions/APIGuild" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIDMChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/DmChannelDTO" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIBackupCodeArray": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserUpdateResponse": { - "type": "object", - "properties": { - "newToken": { - "type": "string" - }, - "email": { - "type": "string" - }, - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "flags": { - "type": "integer" - }, - "verified": { - "type": "boolean" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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" - }, - "mfa_enabled": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserSettingsSchema" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationDetectableResponse": { - "type": "array", - "items": {}, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationEntitlementsResponse": { - "type": "array", - "items": {}, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationSkusResponse": { - "type": "array", - "items": {}, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIApplicationArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Application" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIInviteArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIMessageArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIWebhookArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIDiscoveryCategoryArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Categories" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIGeneralConfiguration": { - "type": "object", - "properties": { - "instanceName": { - "type": "string", - "default": "Spacebar Instance" - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "autoCreateBotUsers", - "correspondenceEmail", - "correspondenceUserID", - "frontPage", - "image", - "instanceDescription", - "instanceId", - "instanceName", - "serverName", - "tosPage" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIMemberArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Member" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIPublicMember": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "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" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIGuildWithJoinedAt": { - "type": "object", - "properties": { - "joined_at": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "primary_category_id": { - "type": "string" - }, - "large": { - "type": "boolean" - }, - "max_members": { - "type": "integer" - }, - "max_presences": { - "type": "integer" - }, - "max_video_channel_users": { - "type": "integer" - }, - "member_count": { - "type": "integer" - }, - "presence_count": { - "type": "integer" - }, - "template_id": { - "type": "string" - }, - "mfa_level": { - "type": "integer" - }, - "owner_id": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "nsfw": { - "type": "boolean" - }, - "parent": { - "type": "string" - }, - "region": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "guild_template_code": { - "type": "string" - }, - "staff_only": { - "type": "boolean" - }, - "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" - ] - } - }, - "additionalProperties": false, - "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#" - }, - "APIRoleArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APITemplateArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Template" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIGuildVoiceRegion": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildVoiceRegion" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APILimitsConfiguration": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/UserLimits" - }, - "guild": { - "$ref": "#/definitions/GuildLimits" - }, - "message": { - "$ref": "#/definitions/MessageLimits" - }, - "channel": { - "$ref": "#/definitions/ChannelLimits" - }, - "rate": { - "$ref": "#/definitions/RateLimits" - }, - "absoluteRate": { - "$ref": "#/definitions/GlobalRateLimits" - } - }, - "additionalProperties": false, - "required": [ - "absoluteRate", - "channel", - "guild", - "message", - "rate", - "user" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "APIConnectionsConfiguration": { - "type": "object", - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UpdatesResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "pub_date": { - "type": "string" - }, - "url": { - "type": "string" - }, - "notes": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "name", - "notes", - "pub_date", - "url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UploadAttachmentResponseSchema": { - "type": "object", - "properties": { - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/UploadAttachmentResponse" - } - } - }, - "additionalProperties": false, - "required": [ - "attachments" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UploadAttachmentResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "upload_url": { - "type": "string" - }, - "upload_filename": { - "type": "string" - }, - "original_content_type": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "upload_filename", - "upload_url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserNoteResponse": { - "type": "object", - "properties": { - "note": { - "type": "string" - }, - "note_user_id": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "note", - "note_user_id", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserProfileResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/PublicUser" - }, - "connected_accounts": { - "$ref": "#/definitions/PublicConnectedAccount" - }, - "premium_guild_since": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "mutual_guilds": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - }, - "premium_type": { - "type": "integer" - }, - "profile_themes_experiment_bucket": { - "type": "integer" - }, - "user_profile": { - "$ref": "#/definitions/UserProfile" - }, - "guild_member": { - "$ref": "#/definitions/PublicMember" - }, - "guild_member_profile": { - "$ref": "#/definitions/PublicMemberProfile" - }, - "badges": { - "type": "array", - "items": { - "$ref": "#/definitions/Badge" - } - } - }, - "additionalProperties": false, - "required": [ - "badges", - "connected_accounts", - "mutual_guilds", - "premium_type", - "profile_themes_experiment_bucket", - "user", - "user_profile" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserRelationsResponse": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "public_flags": { - "type": "integer" - } - }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserRelationshipsResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "nickname": { - "type": "null" - }, - "user": { - "$ref": "#/definitions/PublicUser" - } - }, - "additionalProperties": false, - "required": [ - "id", - "nickname", - "type", - "user" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "WebAuthnCreateResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "WebhookCreateResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/User" - }, - "hook": { - "$ref": "#/definitions/Webhook" - } - }, - "additionalProperties": false, - "required": [ - "hook", - "user" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "AckBulkSchema": { "type": "object", "properties": { @@ -4965,12 +1227,6 @@ } } }, - "members": { - "type": "array", - "items": { - "type": "string" - } - }, "activities": { "type": "boolean" }, @@ -4981,6 +1237,12 @@ "const": true, "type": "boolean" }, + "members": { + "type": "array", + "items": { + "type": "string" + } + }, "member_updates": { "type": "boolean" }, @@ -5192,6 +1454,3961 @@ "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, + "APIErrorResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "_errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "message" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "_errors" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "code", + "errors", + "message" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" + }, + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIErrorOrCaptchaResponse": { + "anyOf": [ + { + "$ref": "#/definitions/APIErrorResponse" + }, + { + "$ref": "#/definitions/CaptchaRequiredResponse" + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AccountStandingResponse": { + "type": "object", + "properties": { + "classifications": { + "type": "array", + "items": { + "$ref": "#/definitions/Classification" + } + }, + "guild_classifications": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildClassification" + } + }, + "account_standing": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/AccountStandingState" + } + }, + "additionalProperties": false, + "required": [ + "state" + ] + }, + "is_dsa_eligible": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "is_appeal_eligible": { + "type": "boolean" + }, + "appeal_eligibility": { + "type": "array", + "items": { + "$ref": "#/definitions/AppealEligibility" + } + } + }, + "additionalProperties": false, + "required": [ + "account_standing", + "appeal_eligibility", + "classifications", + "discriminator", + "guild_classifications", + "is_appeal_eligible", + "is_dsa_eligible", + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BackupCodesChallengeResponse": { + "type": "object", + "properties": { + "nonce": { + "type": "string" + }, + "regenerate_nonce": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "nonce", + "regenerate_nonce" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesCategoriesResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectiblesCategoryItem" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesMarketingResponse": { + "type": "object", + "properties": { + "marketings": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/CollectiblesMarketingItem" + } + } + }, + "additionalProperties": false, + "required": [ + "marketings" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CollectiblesShopResponse": { + "type": "object", + "properties": { + "shop_blocks": { + "type": "array", + "items": { + "$ref": "#/definitions/AnyShopBlock" + } + }, + "categories": { + "type": "array", + "items": { + "$ref": "#/definitions/CollectiblesCategoryItem" + } + } + }, + "additionalProperties": false, + "required": [ + "categories", + "shop_blocks" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "DiscoverableGuildsResponse": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "guilds": { + "type": "array", + "items": { + "$ref": "#/definitions/Guild" + } + }, + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "guilds", + "limit", + "offset", + "total" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "DmMessagesResponseSchema": { + "type": "array", + "items": { + "$ref": "#/definitions/PartialMessage" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmailDomainLookupResponse": { + "type": "object", + "properties": { + "guilds_info": { + "type": "array", + "items": { + "$ref": "#/definitions/HubGuild" + } + }, + "has_matching_guild": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "guilds_info", + "has_matching_guild" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmailDomainLookupVerifyCodeResponse": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/Guild" + }, + "joined": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "guild", + "joined" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmojiSourceResponse": { + "type": "object", + "properties": { + "type": { + "enum": [ + "APPLICATION", + "GUILD" + ], + "type": "string" + }, + "guild": { + "anyOf": [ + { + "$ref": "#/definitions/EmojiGuild" + }, + { + "type": "null" + } + ] + }, + "application": { + "anyOf": [ + { + "$ref": "#/definitions/EmojiApplication" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GatewayBotResponse": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "shards": { + "type": "integer" + }, + "session_start_limit": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "remaining": { + "type": "integer" + }, + "reset_after": { + "type": "integer" + }, + "max_concurrency": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "max_concurrency", + "remaining", + "reset_after", + "total" + ] + } + }, + "additionalProperties": false, + "required": [ + "session_start_limit", + "shards", + "url" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GatewayResponse": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "url" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GenerateRegistrationTokensResponse": { + "type": "object", + "properties": { + "tokens": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "tokens" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildBansResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildBanResponse" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildBanResponse": { + "type": "object", + "properties": { + "reason": { + "type": [ + "null", + "string" + ] + }, + "user": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "public_flags", + "username" + ] + } + }, + "additionalProperties": false, + "required": [ + "reason", + "user" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildCreateResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "mfa_level": { + "type": "integer" + }, + "owner_id": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean" + }, + "parent": { + "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" + }, + "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" + ] + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "nsfw", + "welcome_screen", + "widget_enabled" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildDiscoveryRequirementsResponse": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "safe_environment": { + "type": "boolean" + }, + "healthy": { + "type": "boolean" + }, + "health_score_pending": { + "type": "boolean" + }, + "size": { + "type": "boolean" + }, + "nsfw_properties": {}, + "protected": { + "type": "boolean" + }, + "sufficient": { + "type": "boolean" + }, + "sufficient_without_grace_period": { + "type": "boolean" + }, + "valid_rules_channel": { + "type": "boolean" + }, + "retention_healthy": { + "type": "boolean" + }, + "engagement_healthy": { + "type": "boolean" + }, + "age": { + "type": "boolean" + }, + "minimum_age": { + "type": "integer" + }, + "health_score": { + "type": "object", + "properties": { + "avg_nonnew_participators": { + "type": "integer" + }, + "avg_nonnew_communicators": { + "type": "integer" + }, + "num_intentful_joiners": { + "type": "integer" + }, + "perc_ret_w1_intentful": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avg_nonnew_communicators", + "avg_nonnew_participators", + "num_intentful_joiners", + "perc_ret_w1_intentful" + ] + }, + "minimum_size": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "age", + "engagement_healthy", + "guild_id", + "health_score", + "health_score_pending", + "healthy", + "minimum_age", + "minimum_size", + "nsfw_properties", + "protected", + "retention_healthy", + "safe_environment", + "size", + "sufficient", + "sufficient_without_grace_period", + "valid_rules_channel" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildMessagesSearchResponse": { + "type": "object", + "properties": { + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildMessagesSearchMessage" + } + }, + "total_results": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "messages", + "total_results" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildPruneResponse": { + "type": "object", + "properties": { + "pruned": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "pruned" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildPurgeResponse": { + "type": "object", + "properties": { + "purged": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "purged" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildRecommendationsResponse": { + "type": "object", + "properties": { + "recommended_guilds": { + "type": "array", + "items": { + "$ref": "#/definitions/Guild" + } + }, + "load_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "load_id", + "recommended_guilds" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildVanityUrlResponse": { + "anyOf": [ + { + "$ref": "#/definitions/GuildVanityUrl" + }, + { + "$ref": "#/definitions/GuildVanityUrlNoInvite" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/GuildVanityUrl" + } + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildVanityUrlCreateResponse": { + "type": "object", + "properties": { + "code": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildWidgetJsonResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "instant_invite": { + "type": "string" + }, + "channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "position" + ] + } + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "status": { + "$ref": "#/definitions/ClientStatus" + }, + "avatar_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "avatar_url", + "discriminator", + "id", + "status", + "username" + ] + } + }, + "presence_count": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channels", + "id", + "instant_invite", + "members", + "name", + "presence_count" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildWidgetSettingsResponse": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "channel_id": { + "anyOf": [ + { + "$ref": "#/definitions/Snowflake" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "enabled" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "HubDirectoryEntriesResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/HubDirectoryEntry" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "HubWaitlistSignupResponse": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "email_domain": { + "type": "string" + }, + "school": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "email", + "email_domain", + "school", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InstanceDomainsResponse": { + "type": "object", + "properties": { + "admin": { + "type": "string" + }, + "api": { + "type": "string" + }, + "apiEndpoint": { + "type": "string" + }, + "cdn": { + "type": "string" + }, + "gateway": { + "type": "string" + }, + "defaultApiVersion": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "api", + "apiEndpoint", + "cdn", + "defaultApiVersion", + "gateway" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InstancePingResponse": { + "type": "object", + "properties": { + "ping": { + "type": "string", + "const": "pong!" + }, + "instance": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "image": { + "type": [ + "null", + "string" + ] + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ] + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ] + }, + "frontPage": { + "type": [ + "null", + "string" + ] + }, + "tosPage": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "correspondenceEmail", + "correspondenceUserID", + "description", + "frontPage", + "id", + "image", + "name", + "tosPage" + ] + } + }, + "additionalProperties": false, + "required": [ + "instance", + "ping" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "InstanceStatsResponse": { + "type": "object", + "properties": { + "counts": { + "type": "object", + "properties": { + "user": { + "type": "integer" + }, + "guild": { + "type": "integer" + }, + "message": { + "type": "integer" + }, + "members": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "guild", + "members", + "message", + "user" + ] + } + }, + "additionalProperties": false, + "required": [ + "counts" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "LocationMetadataResponse": { + "type": "object", + "properties": { + "consent_required": { + "type": "boolean" + }, + "country_code": { + "type": "string" + }, + "promotional_email_opt_in": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "const": true + }, + "pre_checked": { + "type": "boolean", + "const": false + } + }, + "additionalProperties": false, + "required": [ + "pre_checked", + "required" + ] + } + }, + "additionalProperties": false, + "required": [ + "consent_required", + "country_code", + "promotional_email_opt_in" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MemberJoinGuildResponse": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/GuildCreateResponse" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + } + }, + "additionalProperties": false, + "required": [ + "emojis", + "guild", + "roles", + "stickers" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "OAuthAuthorizeResponse": { + "type": "object", + "properties": { + "location": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "location" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PreloadMessagesResponseSchema": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RefreshUrlsResponse": { + "type": "object", + "properties": { + "refreshed_urls": { + "type": "array", + "items": { + "$ref": "#/definitions/RefreshedUrl" + } + } + }, + "additionalProperties": false, + "required": [ + "refreshed_urls" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SettingsProtoResponse": { + "type": "object", + "properties": { + "settings": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "settings" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SettingsProtoUpdateResponse": { + "type": "object", + "properties": { + "out_of_date": { + "type": "boolean" + }, + "settings": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "settings" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SettingsProtoJsonResponse": { + "type": "object", + "properties": { + "settings": { + "$ref": "#/definitions/JsonValue" + } + }, + "additionalProperties": false, + "required": [ + "settings" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SettingsProtoUpdateJsonResponse": { + "type": "object", + "properties": { + "out_of_date": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/JsonValue" + } + }, + "additionalProperties": false, + "required": [ + "settings" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TeamListResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/Team" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TenorGifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "src": { + "type": "string" + }, + "gif_src": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "preview": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TenorTrendingResponse": { + "type": "object", + "properties": { + "categories": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { + "searchterm": { + "type": "string" + }, + "path": { + "type": "string" + }, + "image": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "image", + "name", + "path", + "searchterm" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "tags" + ] + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" + } + } + }, + "additionalProperties": false, + "required": [ + "categories", + "gifs" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TenorGifsResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TokenOnlyResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "token" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TokenWithBackupCodesResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "backup_codes": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" + } + } + }, + "additionalProperties": false, + "required": [ + "backup_codes", + "token" + ], + "$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#" + }, + "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" + }, + "cover_image": { + "type": "string" + }, + "interactions_endpoint_url": { + "type": "string" + }, + "max_participants": { + "type": [ + "null", + "integer" + ] + }, + "name": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "role_connections_verification_url": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "terms_of_service_url": { + "type": "string" + }, + "bot_public": { + "type": "boolean" + }, + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "custom_install_url": { + "type": "string" + }, + "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/ApplicationCommandOption" + } + }, + "target_id": { + "description": "A container for useful snowflake-related methods.", + "$ref": "#/definitions/Snowflake" + }, + "attachments": { + "type": "array", + "items": { + "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" + }, + "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#" + }, + "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" + }, + "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 + }, + "intents": { + "type": "bigint" + }, + "presence": { + "$ref": "#/definitions/ActivitySchema" + }, + "compress": { + "type": "boolean" + }, + "large_threshold": { + "type": "integer" + }, + "largeThreshold": { + "type": "integer" + }, + "shard": { + "minItems": 2, + "maxItems": 2, + "type": "array", + "items": { + "type": "bigint" + } + }, + "guild_subscriptions": { + "type": "boolean" + }, + "capabilities": { + "type": "integer" + }, + "client_state": { + "type": "object", + "properties": { + "guild_hashes": {}, + "highest_last_message_id": { + "type": "integer" + }, + "read_state_version": { + "type": "integer" + }, + "user_guild_settings_version": { + "type": "integer" + }, + "user_settings_version": { + "type": "integer" + }, + "useruser_guild_settings_version": { + "type": "integer" + }, + "private_channels_version": { + "type": "integer" + }, + "guild_versions": {}, + "api_code_version": { + "type": "integer" + }, + "initial_guild_id": { + "type": "string" + } + }, + "additionalProperties": false + }, + "clientState": { + "type": "object", + "properties": { + "guildHashes": {}, + "highestLastMessageId": { + "type": "integer" + }, + "readStateVersion": { + "type": "integer" + }, + "userGuildSettingsVersion": { + "type": "integer" + }, + "useruserGuildSettingsVersion": { + "type": "integer" + }, + "guildVersions": {}, + "apiCodeVersion": { + "type": "integer" + }, + "initialGuildId": { + "type": "string" + } + }, + "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": { + "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": [ + "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": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + } + }, + "icon": { + "type": "string" + }, + "system_channel_id": { + "type": [ + "null", + "string" + ] + }, + "rules_channel_id": { + "type": [ + "null", + "string" + ] + }, + "banner": { + "type": "string" + }, + "splash": { + "type": "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": [ + "null", + "string" + ] + }, + "afk_timeout": { + "type": "integer" + }, + "afk_channel_id": { + "type": [ + "null", + "string" + ] + }, + "preferred_locale": { + "type": "string" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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": { + "$ref": "#/definitions/Ban" + } + }, + "primary_category_id": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "template_id": { + "type": "string" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "mfa_level": { + "type": "integer" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "unavailable": { + "type": "boolean" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen", + "description": "DEPRECATED: Look at the new Guild onboarding screens." + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "channel_ordering": { + "type": "array", + "items": { + "type": "string" + } + }, + "discovery_weight": { + "type": "integer" + }, + "discovery_excluded": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "bans", + "channel_ordering", + "channels", + "clean_data", + "discovery_excluded", + "discovery_weight", + "emojis", + "features", + "get_annotations", + "id", + "insert", + "invites", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIPublicUser": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "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#" + }, + "APIPrivateUser": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "flags": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "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" + }, + "mfa_enabled": { + "type": "boolean" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserSettingsSchema" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIGuildArray": { + "type": "array", + "items": { + "$ref": "#/definitions/APIGuild" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIDMChannelArray": { + "type": "array", + "items": { + "$ref": "#/definitions/DmChannelDTO" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIBackupCodeArray": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserUpdateResponse": { + "type": "object", + "properties": { + "newToken": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "flags": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "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" + }, + "mfa_enabled": { + "type": "boolean" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserSettingsSchema" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationDetectableResponse": { + "type": "array", + "items": {}, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationEntitlementsResponse": { + "type": "array", + "items": {}, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationSkusResponse": { + "type": "array", + "items": {}, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIApplicationArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Application" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIInviteArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIMessageArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIWebhookArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIDiscoveryCategoryArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Categories" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIGeneralConfiguration": { + "type": "object", + "properties": { + "instanceName": { + "type": "string" + }, + "serverName": { + "type": [ + "null", + "string" + ] + }, + "instanceDescription": { + "type": [ + "null", + "string" + ] + }, + "frontPage": { + "type": [ + "null", + "string" + ] + }, + "tosPage": { + "type": [ + "null", + "string" + ] + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ] + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ] + }, + "image": { + "type": [ + "null", + "string" + ] + }, + "instanceId": { + "type": "string" + }, + "autoCreateBotUsers": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "autoCreateBotUsers", + "correspondenceEmail", + "correspondenceUserID", + "frontPage", + "image", + "instanceDescription", + "instanceId", + "instanceName", + "serverName", + "tosPage" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIChannelArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIMemberArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIPublicMember": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "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#" + }, + "APIGuildWithJoinedAt": { + "type": "object", + "properties": { + "joined_at": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "large": { + "type": "boolean" + }, + "max_members": { + "type": "integer" + }, + "max_presences": { + "type": "integer" + }, + "max_video_channel_users": { + "type": "integer" + }, + "member_count": { + "type": "integer" + }, + "presence_count": { + "type": "integer" + }, + "mfa_level": { + "type": "integer" + }, + "owner_id": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "nsfw": { + "type": "boolean" + }, + "parent": { + "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" + }, + "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" + ] + } + }, + "additionalProperties": false, + "required": [ + "id", + "joined_at", + "name", + "nsfw", + "welcome_screen", + "widget_enabled" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIRoleArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APITemplateArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Template" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIGuildVoiceRegion": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildVoiceRegion" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APILimitsConfiguration": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/UserLimits" + }, + "guild": { + "$ref": "#/definitions/GuildLimits" + }, + "message": { + "$ref": "#/definitions/MessageLimits" + }, + "channel": { + "$ref": "#/definitions/ChannelLimits" + }, + "rate": { + "$ref": "#/definitions/RateLimits" + }, + "absoluteRate": { + "$ref": "#/definitions/GlobalRateLimits" + } + }, + "additionalProperties": false, + "required": [ + "absoluteRate", + "channel", + "guild", + "message", + "rate", + "user" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "APIConnectionsConfiguration": { + "type": "object", + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UpdatesResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "pub_date": { + "type": "string" + }, + "url": { + "type": "string" + }, + "notes": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "notes", + "pub_date", + "url" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UploadAttachmentResponseSchema": { + "type": "object", + "properties": { + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/UploadAttachmentResponse" + } + } + }, + "additionalProperties": false, + "required": [ + "attachments" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UploadAttachmentResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "upload_url": { + "type": "string" + }, + "upload_filename": { + "type": "string" + }, + "original_content_type": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "upload_filename", + "upload_url" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserNoteResponse": { + "type": "object", + "properties": { + "note": { + "type": "string" + }, + "note_user_id": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "note", + "note_user_id", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserProfileResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/PublicUser" + }, + "connected_accounts": { + "$ref": "#/definitions/PublicConnectedAccount" + }, + "premium_guild_since": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "mutual_guilds": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + }, + "premium_type": { + "type": "integer" + }, + "profile_themes_experiment_bucket": { + "type": "integer" + }, + "user_profile": { + "$ref": "#/definitions/UserProfile" + }, + "guild_member": { + "$ref": "#/definitions/PublicMember" + }, + "guild_member_profile": { + "$ref": "#/definitions/PublicMemberProfile" + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/definitions/Badge" + } + } + }, + "additionalProperties": false, + "required": [ + "badges", + "connected_accounts", + "mutual_guilds", + "premium_type", + "profile_themes_experiment_bucket", + "user", + "user_profile" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserRelationsResponse": { + "type": "array", + "items": { + "additionalProperties": false, + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "public_flags": { + "type": "integer" + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserRelationshipsResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "nickname": { + "type": "null" + }, + "user": { + "$ref": "#/definitions/PublicUser" + } + }, + "additionalProperties": false, + "required": [ + "id", + "nickname", + "type", + "user" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "WebAuthnCreateResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "WebhookCreateResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/User" + }, + "hook": { + "$ref": "#/definitions/Webhook" + } + }, + "additionalProperties": false, + "required": [ + "hook", + "user" + ], + "$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,835 +7994,15 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "InteractionCallbackType": { - "type": "number", + "Status": { "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12 + "dnd", + "idle", + "invisible", + "offline", + "online" ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Message": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "thread_id": { - "type": "string" - }, - "thread": { - "$ref": "#/definitions/Channel" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "author_id": { - "type": "string" - }, - "author": { - "$ref": "#/definitions/User" - }, - "member_id": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "webhook_id": { - "type": "string" - }, - "webhook": { - "$ref": "#/definitions/Webhook" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "type": "string", - "format": "date-time" - }, - "tts": { - "type": "boolean" - }, - "mention_everyone": { - "type": "boolean" - }, - "mentions": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - }, - "mention_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "mention_channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "reactions": { - "type": "array", - "items": { - "$ref": "#/definitions/Reaction" - } - }, - "nonce": { - "type": "string" - }, - "pinned_at": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "pinned": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "activity": { - "type": "object", - "properties": { - "type": { - "type": "integer" - }, - "party_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "party_id", - "type" - ] - }, - "flags": { - "type": "integer" - }, - "message_reference": { - "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/ActionRowComponent" - } - }, - "poll": { - "$ref": "#/definitions/Poll" - }, - "username": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "message_snapshots": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageSnapshot" - } - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "embeds", - "flags", - "id", - "mention_channels", - "mention_roles", - "mentions", - "message_snapshots", - "pinned", - "reactions", - "timestamp", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Channel": { - "type": "object", - "properties": { - "created_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "type": { - "$ref": "#/definitions/ChannelType" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/Recipient" - } - }, - "thread_members": { - "type": "array", - "items": { - "$ref": "#/definitions/ThreadMember" - } - }, - "last_message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "parent_id": { - "type": [ - "null", - "string" - ] - }, - "parent": { - "$ref": "#/definitions/Channel" - }, - "owner_id": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "last_pin_timestamp": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "default_auto_archive_duration": { - "type": "integer" - }, - "permission_overwrites": { - "type": "array", - "items": { - "$ref": "#/definitions/ChannelPermissionOverwrite" - } - }, - "video_quality_mode": { - "type": "integer" - }, - "bitrate": { - "type": "integer" - }, - "user_limit": { - "type": "integer" - }, - "nsfw": { - "type": "boolean", - "default": false - }, - "rate_limit_per_user": { - "type": "integer" - }, - "topic": { - "type": "string" - }, - "invites": { - "type": "array", - "items": { - "$ref": "#/definitions/Invite" - } - }, - "retention_policy_id": { - "type": "string" - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/Message" - } - }, - "voice_states": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceState" - } - }, - "read_states": { - "type": "array", - "items": { - "$ref": "#/definitions/ReadState" - } - }, - "webhooks": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - } - }, - "flags": { - "type": "integer", - "default": 0 - }, - "default_thread_rate_limit_per_user": { - "type": "integer", - "default": 0 - }, - "thread_metadata": { - "$ref": "#/definitions/ThreadMetadata" - }, - "member_count": { - "type": "integer" - }, - "message_count": { - "type": "integer" - }, - "total_message_sent": { - "type": "integer" - }, - "available_tags": { - "type": "array", - "items": { - "$ref": "#/definitions/Tag" - } - }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "position": { - "description": "Must be calculated Channel.calculatePosition", - "type": "integer" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "created_at", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 255 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Recipient": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "closed": { - "type": "boolean" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "closed", - "id", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "User": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "accent_color": { - "type": "integer" - }, - "banner": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "desktop": { - "type": "boolean", - "default": false - }, - "mobile": { - "type": "boolean", - "default": false - }, - "premium": { - "type": "boolean" - }, - "premium_type": { - "type": "integer" - }, - "bot": { - "type": "boolean", - "default": false - }, - "bio": { - "type": "string", - "default": "" - }, - "system": { - "type": "boolean", - "default": false - }, - "nsfw_allowed": { - "type": "boolean", - "default": true - }, - "mfa_enabled": { - "type": "boolean", - "default": false - }, - "webauthn_enabled": { - "type": "boolean", - "default": false - }, - "totp_secret": { - "type": "string", - "default": "" - }, - "totp_last_ticket": { - "type": "string", - "default": "" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "verified": { - "type": "boolean" - }, - "disabled": { - "type": "boolean", - "default": false - }, - "deleted": { - "type": "boolean", - "default": false - }, - "email": { - "type": "string" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "public_flags": { - "type": "integer", - "default": 0 - }, - "purchased_flags": { - "type": "integer", - "default": 0 - }, - "premium_usage_flags": { - "type": "integer", - "default": 0 - }, - "rights": { - "type": "string" - }, - "sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/Session" - } - }, - "relationships": { - "type": "array", - "items": { - "$ref": "#/definitions/Relationship" - } - }, - "connected_accounts": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectedAccount" - } - }, - "data": { - "type": "object", - "properties": { - "valid_tokens_since": { - "type": "string", - "format": "date-time" - }, - "hash": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "valid_tokens_since" - ] - }, - "fingerprints": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "settings": { - "$ref": "#/definitions/UserSettings" - }, - "security_keys": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityKey" - } - }, - "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" - }, - "tag": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "connected_accounts", - "created_at", - "data", - "deleted", - "desktop", - "disabled", - "discriminator", - "fingerprints", - "flags", - "id", - "mfa_enabled", - "mobile", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "relationships", - "rights", - "security_keys", - "sessions", - "system", - "tag", - "username", - "verified", - "webauthn_enabled" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Session": { - "type": "object", - "properties": { - "session_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "activities": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - } - }, - "client_info": { - "type": "object", - "properties": { - "platform": { - "type": "string" - }, - "os": { - "type": "string" - }, - "version": { - "type": "integer" - }, - "location": { - "type": "string" - } - }, - "additionalProperties": false - }, - "client_status": { - "$ref": "#/definitions/ClientStatus" - }, - "status": { - "$ref": "#/definitions/Status" - }, - "is_admin_session": { - "type": "boolean" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "last_seen": { - "type": "string", - "format": "date-time" - }, - "last_seen_ip": { - "type": "string" - }, - "last_seen_location": { - "type": "string" - }, - "last_seen_location_info": { - "$ref": "#/definitions/ExtendedLocationInfo" - }, - "session_nickname": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "activities", - "client_info", - "client_status", - "created_at", - "is_admin_session", - "session_id", - "status", - "user", - "user_id" - ], + "type": "string", "$schema": "http://json-schema.org/draft-07/schema#" }, "Activity": { @@ -9092,6 +8127,12 @@ "metadata": { "type": "object", "properties": { + "button_urls": { + "type": "array", + "items": { + "type": "string" + } + }, "context_uri": { "type": "string" }, @@ -9103,13 +8144,16 @@ "items": { "type": "string" } + }, + "type": { + "enum": [ + "episode", + "track" + ], + "type": "string" } }, - "additionalProperties": false, - "required": [ - "album_id", - "artist_ids" - ] + "additionalProperties": false }, "session_id": { "type": "string" @@ -9135,227 +8179,12 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "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": { - "is_eu": { - "type": "boolean" - }, - "city": { - "type": "string" - }, - "region": { - "type": "string" - }, - "region_code": { - "type": "string" - }, - "country_name": { - "type": "string" - }, - "country_code": { - "type": "string" - }, - "continent_name": { - "type": "string" - }, - "continent_code": { - "type": "string" - }, - "latitude": { - "type": "integer" - }, - "longitude": { - "type": "integer" - }, - "postal": { - "type": "string" - }, - "calling_code": { - "type": "string" - }, - "flag": { - "type": "string" - }, - "emoji_flag": { - "type": "string" - }, - "emoji_unicode": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "calling_code", - "city", - "continent_code", - "continent_name", - "country_code", - "country_name", - "emoji_flag", - "emoji_unicode", - "flag", - "is_eu", - "latitude", - "longitude", - "postal", - "region", - "region_code" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Relationship": { - "type": "object", - "properties": { - "from_id": { - "type": "string" - }, - "from": { - "$ref": "#/definitions/User" - }, - "to_id": { - "type": "string" - }, - "to": { - "$ref": "#/definitions/User" - }, - "nickname": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/RelationshipType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "from", - "from_id", - "id", - "to", - "to_id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RelationshipType": { + "ChannelPermissionOverwriteType": { "type": "number", "enum": [ - 4, - 3, - 2, - 1 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ConnectedAccount": { - "type": "object", - "properties": { - "external_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "friend_sync": { - "type": "boolean", - "default": false - }, - "name": { - "type": "string" - }, - "revoked": { - "type": "boolean", - "default": false - }, - "show_activity": { - "type": "integer", - "default": 0 - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean", - "default": true - }, - "visibility": { - "type": "integer", - "default": 0 - }, - "integrations": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "metadata_": {}, - "metadata_visibility": { - "type": "integer", - "default": 0 - }, - "two_way_link": { - "type": "boolean", - "default": false - }, - "token_data": { - "anyOf": [ - { - "$ref": "#/definitions/ConnectedAccountTokenData" - }, - { - "type": "null" - } - ] - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "external_id", - "id", - "name", - "type", - "user", - "user_id" + 0, + 1, + 2 ], "$schema": "http://json-schema.org/draft-07/schema#" }, @@ -9391,3477 +8220,37 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserSettings": { + "AllowedMentions": { "type": "object", "properties": { - "index": { - "type": "string" - }, - "afk_timeout": { - "type": "integer", - "default": 3600 - }, - "allow_accessibility_detection": { - "type": "boolean", - "default": true - }, - "animate_emoji": { - "type": "boolean", - "default": true - }, - "animate_stickers": { - "type": "integer", - "default": 0 - }, - "contact_sync_enabled": { - "type": "boolean", - "default": false - }, - "convert_emoticons": { - "type": "boolean", - "default": false - }, - "custom_status": { - "anyOf": [ - { - "$ref": "#/definitions/CustomStatus" - }, - { - "type": "null" - } - ], - "default": null - }, - "default_guilds_restricted": { - "type": "boolean", - "default": false - }, - "detect_platform_accounts": { - "type": "boolean", - "default": false - }, - "developer_mode": { - "type": "boolean", - "default": true - }, - "disable_games_tab": { - "type": "boolean", - "default": true - }, - "enable_tts_command": { - "type": "boolean", - "default": false - }, - "explicit_content_filter": { - "type": "integer", - "default": 0 - }, - "friend_discovery_flags": { - "type": "integer", - "default": 0 - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean", - "default": false - }, - "gif_auto_play": { - "type": "boolean", - "default": false - }, - "guild_folders": { + "parse": { "type": "array", "items": { - "$ref": "#/definitions/GuildFolder" - }, - "default": [] - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "inline_attachment_media": { - "type": "boolean", - "default": true - }, - "inline_embed_media": { - "type": "boolean", - "default": true - }, - "locale": { - "type": "string", - "default": "en-US" - }, - "message_display_compact": { - "type": "boolean", - "default": false - }, - "native_phone_integration_enabled": { - "type": "boolean", - "default": true - }, - "render_embeds": { - "type": "boolean", - "default": true - }, - "render_reactions": { - "type": "boolean", - "default": true - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "show_current_game": { - "type": "boolean", - "default": true - }, - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], - "type": "string", - "default": "online" - }, - "stream_notifications_enabled": { - "type": "boolean", - "default": false - }, - "theme": { - "enum": [ - "dark", - "light" - ], - "type": "string", - "default": "dark" - }, - "timezone_offset": { - "type": "integer", - "default": 0 - }, - "view_nsfw_guilds": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "required": [ - "afk_timeout", - "allow_accessibility_detection", - "animate_emoji", - "animate_stickers", - "contact_sync_enabled", - "convert_emoticons", - "custom_status", - "default_guilds_restricted", - "detect_platform_accounts", - "developer_mode", - "disable_games_tab", - "enable_tts_command", - "explicit_content_filter", - "friend_discovery_flags", - "friend_source_flags", - "gateway_connected", - "gif_auto_play", - "guild_folders", - "guild_positions", - "index", - "inline_attachment_media", - "inline_embed_media", - "locale", - "message_display_compact", - "native_phone_integration_enabled", - "render_embeds", - "render_reactions", - "restricted_guilds", - "show_current_game", - "status", - "stream_notifications_enabled", - "theme", - "timezone_offset", - "view_nsfw_guilds" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CustomStatus": { - "type": "object", - "properties": { - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "expires_at": { - "type": "integer" - }, - "text": { - "type": "string" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "FriendSourceFlags": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "all" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildFolder": { - "type": "object", - "properties": { - "color": { - "type": [ - "null", - "integer" - ] - }, - "guild_ids": { - "type": "array", - "items": { + "enum": [ + "everyone", + "roles", + "users" + ], "type": "string" } }, - "id": { - "type": [ - "null", - "integer" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "guild_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SecurityKey": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "key_id": { - "type": "string" - }, - "public_key": { - "type": "string" - }, - "counter": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "counter", - "id", - "key_id", - "name", - "public_key", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AvatarDecorationData": { - "type": "object", - "properties": { - "asset": { - "type": "string" - }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "expires_at": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "asset", - "expires_at", - "sku_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "DisplayNameStyle": { - "type": "object", - "properties": { - "font_id": { - "type": "integer" - }, - "effect_id": { - "type": "integer" - }, - "colors": { - "type": "array", - "items": { - "type": "integer" - } - } - }, - "additionalProperties": false, - "required": [ - "colors", - "effect_id", - "font_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Collectibles": { - "type": "object", - "properties": { - "nameplate": { - "anyOf": [ - { - "$ref": "#/definitions/NameplateData" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "nameplate" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "NameplateData": { - "type": "object", - "properties": { - "asset": { - "type": "string" - }, - "sku_id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "label": { - "type": "string" - }, - "palette": { - "type": "string" - }, - "expires_at": { - "type": [ - "null", - "integer" - ] - } - }, - "additionalProperties": false, - "required": [ - "asset", - "expires_at", - "label", - "palette", - "sku_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PrimaryGuild": { - "type": "object", - "properties": { - "identity_enabled": { - "type": [ - "null", - "boolean" - ] - }, - "identity_guild_id": { - "type": [ - "null", - "string" - ] - }, - "tag": { - "type": [ - "null", - "string" - ] - }, - "badge": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "badge", - "identity_enabled", - "identity_guild_id", - "tag" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ThreadMember": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "member_idx": { - "type": "string" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "join_timestamp": { - "type": "string", - "format": "date-time" - }, - "muted": { - "type": "boolean" - }, - "mute_config": { - "$ref": "#/definitions/ThreadMemberMuteConfig" - }, - "flags": { - "$ref": "#/definitions/ThreadMemberFlags" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "flags", - "id", - "index", - "join_timestamp", - "member", - "member_idx", - "muted" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Member": { - "type": "object", - "properties": { - "index": { - "type": "string" - }, - "id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "nick": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "premium_since": { - "type": "integer" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "pending": { - "type": "boolean" - }, - "settings": { - "$ref": "#/definitions/UserGuildSettings" - }, - "last_message_id": { - "type": "string" - }, - "joined_by": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "avatar_decoration_data": { - "$ref": "#/definitions/AvatarDecorationData" - }, - "display_name_styles": { - "$ref": "#/definitions/DisplayNameStyle" - }, - "collectibles": { - "$ref": "#/definitions/Collectibles" - }, - "flags": { - "type": "integer", - "default": 0 - } - }, - "additionalProperties": false, - "required": [ - "banner", - "bio", - "communication_disabled_until", - "deaf", - "flags", - "guild", - "guild_id", - "id", - "index", - "joined_at", - "joined_by", - "mute", - "pending", - "roles", - "settings", - "user" - ], - "$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": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" - }, - "tags": { - "type": "object", - "properties": { - "bot_id": { - "type": "string" - }, - "integration_id": { - "type": "string" - }, - "premium_subscriber": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "flags": { - "type": "integer" - }, - "colors": { - "$ref": "#/definitions/RoleColors" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "colors", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RoleColors": { - "type": "object", - "properties": { - "primary_color": { - "type": "integer" - }, - "secondary_color": { - "type": "integer" - }, - "tertiary_color": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "primary_color" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Template": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "usage_count": { - "type": "integer" - }, - "creator_id": { - "type": "string" - }, - "creator": { - "$ref": "#/definitions/User" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "serialized_source_guild": { - "$ref": "#/definitions/Guild" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "code", - "created_at", - "creator", - "creator_id", - "id", - "name", - "serialized_source_guild", - "source_guild", - "source_guild_id", - "updated_at" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Emoji": { - "type": "object", - "properties": { - "animated": { - "type": "boolean" - }, - "available": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "managed": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "require_colons": { - "type": "boolean" - }, "roles": { "type": "array", "items": { "type": "string" } }, - "groups": { + "users": { "type": "array", "items": { "type": "string" } }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "animated", - "available", - "groups", - "guild", - "guild_id", - "id", - "managed", - "name", - "require_colons", - "roles", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Sticker": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "available": { - "type": "boolean" - }, - "tags": { - "type": "string" - }, - "pack_id": { - "type": "string" - }, - "pack": { - "$ref": "#/definitions/StickerPack" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "type": { - "$ref": "#/definitions/StickerType" - }, - "format_type": { - "$ref": "#/definitions/StickerFormatType" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "format_type", - "id", - "name", - "pack", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StickerPack": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "banner_asset_id": { - "type": "string" - }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - }, - "cover_sticker_id": { - "type": "string" - }, - "cover_sticker": { - "$ref": "#/definitions/Sticker" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "stickers" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StickerType": { - "type": "number", - "enum": [ - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StickerFormatType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Invite": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "uses": { - "type": "integer" - }, - "max_uses": { - "type": "integer" - }, - "max_age": { - "type": "integer" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "inviter_id": { - "type": "string" - }, - "inviter": { - "$ref": "#/definitions/User" - }, - "target_user_id": { - "type": "string" - }, - "target_user": { - "type": "string" - }, - "target_user_type": { - "type": "integer" - }, - "vanity_url": { - "type": "boolean" - }, - "flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "code", - "created_at", - "flags", - "guild", - "guild_id", - "inviter", - "max_age", - "max_uses", - "target_user_id", - "temporary", - "uses" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "VoiceState": { - "type": "object", - "properties": { - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "member": { - "$ref": "#/definitions/Member" - }, - "session_id": { - "type": "string" - }, - "token": { - "type": "string" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_mute": { - "type": "boolean" - }, - "self_stream": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "suppress": { - "type": "boolean" - }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel", - "channel_id", - "deaf", - "guild_id", - "id", - "member", - "mute", - "self_deaf", - "self_mute", - "self_video", - "session_id", - "suppress", - "token", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Webhook": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/WebhookType" - }, - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "token": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "application_id": { - "type": "string" - }, - "application": { - "$ref": "#/definitions/Application" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "source_guild_id": { - "type": "string" - }, - "source_guild": { - "$ref": "#/definitions/Guild" - }, - "source_channel_id": { - "type": "string" - }, - "source_channel": { - "$ref": "#/definitions/Channel" - }, - "url": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "application", - "application_id", - "avatar", - "channel", - "channel_id", - "id", - "name", - "source_channel", - "source_channel_id", - "type", - "url", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "WebhookType": { - "type": "number", - "enum": [ - 1, - 2, - 3 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Application": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "description": { - "type": "string" - }, - "summary": { - "type": "string", - "default": "" - }, - "type": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "hook": { - "type": "boolean", - "default": true - }, - "bot_public": { - "type": "boolean", - "default": true - }, - "bot_require_code_grant": { - "type": "boolean", - "default": false - }, - "verify_key": { - "type": "string" - }, - "owner": { - "$ref": "#/definitions/User" - }, - "flags": { - "type": "integer", - "default": 0 - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "rpc_application_state": { - "type": "integer", - "default": 0 - }, - "store_application_state": { - "type": "integer", - "default": 1 - }, - "verification_state": { - "type": "integer", - "default": 1 - }, - "interactions_endpoint_url": { - "type": "string" - }, - "integration_public": { - "type": "boolean", - "default": true - }, - "integration_require_code_grant": { - "type": "boolean", - "default": false - }, - "discoverability_state": { - "type": "integer", - "default": 1 - }, - "discovery_eligibility_flags": { - "type": "integer", - "default": 2240 - }, - "bot": { - "$ref": "#/definitions/User" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "cover_image": { - "type": "string" - }, - "install_params": { - "type": "object", - "properties": { - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "permissions": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "permissions", - "scopes" - ] - }, - "terms_of_service_url": { - "type": "string" - }, - "privacy_policy_url": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "guild": { - "$ref": "#/definitions/Guild" - }, - "custom_install_url": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "discoverability_state", - "discovery_eligibility_flags", - "flags", - "hook", - "id", - "integration_public", - "integration_require_code_grant", - "name", - "owner", - "redirect_uris", - "rpc_application_state", - "store_application_state", - "summary", - "verification_state", - "verify_key" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Team": { - "type": "object", - "properties": { - "icon": { - "type": "string" - }, - "members": { - "type": "array", - "items": { - "$ref": "#/definitions/TeamMember" - } - }, - "name": { - "type": "string" - }, - "owner_user_id": { - "type": "string" - }, - "owner_user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "members", - "name", - "owner_user", - "owner_user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TeamMember": { - "type": "object", - "properties": { - "membership_state": { - "$ref": "#/definitions/TeamMemberState" - }, - "permissions": { - "type": "array", - "items": { - "type": "string" - } - }, - "role": { - "$ref": "#/definitions/TeamMemberRole" - }, - "team_id": { - "type": "string" - }, - "team": { - "$ref": "#/definitions/Team" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "membership_state", - "permissions", - "role", - "team", - "team_id", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TeamMemberState": { - "type": "number", - "enum": [ - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TeamMemberRole": { - "type": "string", - "enum": [ - "admin", - "developer", - "read_only" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildWelcomeScreen": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "welcome_channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "emoji_id": { - "type": "string" - }, - "emoji_name": { - "type": "string" - }, - "channel_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "description" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "description", - "enabled", - "welcome_channels" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserGuildSettings": { - "type": "object", - "properties": { - "channel_overrides": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - { - "type": "null" - } - ] - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "version": { - "type": "integer" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "type": "integer", - "const": 0 - } - }, - "additionalProperties": false, - "required": [ - "channel_overrides", - "flags", - "guild_id", - "hide_muted_channels", - "message_notifications", - "mobile_push", - "mute_config", - "mute_scheduled_events", - "muted", - "notify_highlights", - "suppress_everyone", - "suppress_roles", - "version" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelOverride": { - "type": "object", - "properties": { - "message_notifications": { - "type": "integer" - }, - "mute_config": { - "$ref": "#/definitions/MuteConfig" - }, - "muted": { - "type": "boolean" - }, - "channel_id": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_notifications", - "mute_config", - "muted" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MuteConfig": { - "type": "object", - "properties": { - "end_time": { - "type": "integer" - }, - "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" - }, - "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" - }, - "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#" - }, - "ChannelPermissionOverwriteType": { - "type": "number", - "enum": [ - 0, - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReadState": { - "type": "object", - "properties": { - "channel_id": { - "type": "string" - }, - "channel": { - "$ref": "#/definitions/Channel" - }, - "user_id": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/User" - }, - "last_message_id": { - "type": "string" - }, - "last_acked_id": { - "type": "string" - }, - "notifications_cursor": { - "type": "string" - }, - "mention_count": { - "type": "integer" - }, - "badge_count": { - "type": "integer" - }, - "last_pin_timestamp": { - "type": "string", - "format": "date-time" - }, - "read_state_type": { - "$ref": "#/definitions/ReadStateType" - }, - "flags": { - "$ref": "#/definitions/ReadStateFlags" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "badge_count", - "channel", - "channel_id", - "flags", - "id", - "mention_count", - "notifications_cursor", - "read_state_type", - "user", - "user_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReadStateType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReadStateFlags": { - "type": "number", - "enum": [ - 1, - 2, - 4 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ThreadMetadata": { - "type": "object", - "properties": { - "archived": { - "type": "boolean" - }, - "auto_archive_duration": { - "type": "integer" - }, - "archive_timestamp": { - "type": "string" - }, - "locked": { - "type": "boolean" - }, - "invitable": { - "type": "boolean" - }, - "create_timestamp": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "archive_timestamp", - "archived", - "auto_archive_duration", - "create_timestamp", - "locked" - ], - "$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": { - "filename": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/Message" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id", - "message", - "message_id", - "proxy_url", - "size", - "url" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Embed": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "type": { - "enum": [ - "article", - "gifv", - "image", - "link", - "rich", - "video" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "color": { - "type": "integer" - }, - "footer": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "text" - ] - }, - "image": { - "$ref": "#/definitions/EmbedImage" - }, - "thumbnail": { - "$ref": "#/definitions/EmbedImage" - }, - "video": { - "$ref": "#/definitions/EmbedImage" - }, - "provider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "author": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "icon_url": { - "type": "string" - }, - "proxy_icon_url": { - "type": "string" - } - }, - "additionalProperties": false - }, - "fields": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "inline": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "value" - ] - } - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "EmbedImage": { - "type": "object", - "properties": { - "url": { - "type": "string" - }, - "proxy_url": { - "type": "string" - }, - "height": { - "type": "integer" - }, - "width": { - "type": "integer" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Reaction": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" - }, - "user_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "count", - "emoji", - "user_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PartialEmoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageType": { - "type": "number", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55, - 56, - 57, - 58, - 59, - 60, - 61, - 62, - 63, - 255 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationCommandType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ActionRowComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.ActionRow" - }, - "components": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ButtonComponent" - }, - { - "$ref": "#/definitions/SelectMenuComponent" - }, - { - "$ref": "#/definitions/StringSelectMenuComponent" - }, - { - "$ref": "#/definitions/TextInputComponent" - } - ] - } - } - }, - "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#" - }, - "ButtonComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.Button" - }, - "style": { - "$ref": "#/definitions/ButtonStyle" - }, - "label": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - }, - "custom_id": { - "type": "string" - }, - "sku_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "disabled": { + "replied_user": { "type": "boolean" } }, "additionalProperties": false, - "required": [ - "style", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageComponentType.Button": { - "type": "number", - "const": 2, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ButtonStyle": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "enum": [ - 3, - 5, - 6, - 7, - 8 - ], - "type": "number" - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SelectMenuDefaultOption": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "enum": [ - "channel", - "role", - "user" - ], - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "StringSelectMenuComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.StringSelect" - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuOption" - } - }, - "custom_id": { - "type": "string" - }, - "channel_types": { - "type": "array", - "items": { - "type": "integer" - } - }, - "placeholder": { - "type": "string" - }, - "default_values": { - "type": "array", - "items": { - "$ref": "#/definitions/SelectMenuDefaultOption" - } - }, - "min_values": { - "type": "integer" - }, - "max_values": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "options", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageComponentType.StringSelect": { - "type": "number", - "const": 3, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SelectMenuOption": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "value": { - "type": "string" - }, - "description": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - }, - "default": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "label", - "value" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TextInputComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType.TextInput" - }, - "custom_id": { - "type": "string" - }, - "style": { - "$ref": "#/definitions/TextInputStyle" - }, - "label": { - "type": "string" - }, - "min_length": { - "type": "integer" - }, - "max_length": { - "type": "integer" - }, - "required": { - "type": "boolean" - }, - "value": { - "type": "string" - }, - "placeholder": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "custom_id", - "label", - "style", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageComponentType.TextInput": { - "type": "number", - "const": 4, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "TextInputStyle": { - "type": "number", - "enum": [ - 1, - 2 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Poll": { - "type": "object", - "properties": { - "question": { - "$ref": "#/definitions/PollMedia" - }, - "answers": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswer" - } - }, - "expiry": { - "type": "string", - "format": "date-time" - }, - "allow_multiselect": { - "type": "boolean" - }, - "results": { - "$ref": "#/definitions/PollResult" - } - }, - "additionalProperties": false, - "required": [ - "allow_multiselect", - "answers", - "expiry", - "question" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PollMedia": { - "type": "object", - "properties": { - "text": { - "type": "string" - }, - "emoji": { - "anyOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "id" - ] - } - ] - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PollAnswer": { - "type": "object", - "properties": { - "answer_id": { - "type": "string" - }, - "poll_media": { - "$ref": "#/definitions/PollMedia" - } - }, - "additionalProperties": false, - "required": [ - "poll_media" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PollResult": { - "type": "object", - "properties": { - "is_finalized": { - "type": "boolean" - }, - "answer_counts": { - "type": "array", - "items": { - "$ref": "#/definitions/PollAnswerCount" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_counts", - "is_finalized" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PollAnswerCount": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "count": { - "type": "integer" - }, - "me_voted": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "id", - "me_voted" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageSnapshot": { - "type": "object", - "properties": { - "message": { - "type": "object", - "properties": { - "content": { - "type": "string" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "edited_timestamp": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "mentions": { - "type": "array", - "items": { - "type": "string" - } - }, - "mention_roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/Attachment" - } - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "type": { - "$ref": "#/definitions/MessageType" - }, - "flags": { - "type": "integer" - }, - "components": { - "type": "array", - "items": { - "$ref": "#/definitions/MessageComponent" - } - }, - "resolved": { - "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": true - } - }, - "sticker_items": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } - } - }, - "additionalProperties": false, - "required": [ - "content", - "embeds", - "flags", - "mention_roles", - "mentions", - "timestamp", - "type" - ] - } - }, - "additionalProperties": false, - "required": [ - "message" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageComponent": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/MessageComponentType" - } - }, - "additionalProperties": false, - "required": [ - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageComponentType": { - "type": "number", - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23 - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "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" - }, - "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" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "communication_disabled_until": { - "anyOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "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#" - }, - "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" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "banner": { - "type": "string" - }, - "bio": { - "type": "string" - }, - "theme_colors": { - "type": "array", - "items": { - "type": "integer" - } - }, - "pronouns": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "accent_color": { - "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#" - }, - "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" - ], - "$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#" - }, - "InstanceUserDeleteSchemaContent": { - "type": "object", - "properties": { - "reason": { - "type": "string" - }, - "persistInstanceBan": { - "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" - }, - "discriminator": { - "type": "string" - }, - "global_name": { - "type": [ - "null", - "string" - ] - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "avatar_decoration_data": { - "anyOf": [ - { - "$ref": "#/definitions/AvatarDecorationData" - }, - { - "type": "null" - } - ] - }, - "collectibles": { - "anyOf": [ - { - "$ref": "#/definitions/Collectibles" - }, - { - "type": "null" - } - ] - }, - "display_name_styles": { - "anyOf": [ - { - "$ref": "#/definitions/DisplayNameStyle" - }, - { - "type": "null" - } - ] - }, - "primary_guild": { - "anyOf": [ - { - "$ref": "#/definitions/PrimaryGuild" - }, - { - "type": "null" - } - ] - }, - "bot": { - "type": "boolean" - }, - "system": { - "type": "boolean" - }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "accent_color": { - "type": [ - "null", - "integer" - ] - }, - "public_flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "discriminator", - "id", - "username" - ], "$schema": "http://json-schema.org/draft-07/schema#" }, "Classification": { @@ -13792,6 +9181,4445 @@ ], "$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#" + }, + "Channel": { + "type": "object", + "properties": { + "created_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "type": { + "$ref": "#/definitions/ChannelType" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/Recipient" + } + }, + "thread_members": { + "type": "array", + "items": { + "$ref": "#/definitions/ThreadMember" + } + }, + "last_message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "parent_id": { + "type": [ + "null", + "string" + ] + }, + "parent": { + "$ref": "#/definitions/Channel" + }, + "owner_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "last_pin_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "permission_overwrites": { + "type": "array", + "items": { + "$ref": "#/definitions/ChannelPermissionOverwrite" + } + }, + "video_quality_mode": { + "type": "integer" + }, + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "nsfw": { + "type": "boolean", + "default": false + }, + "rate_limit_per_user": { + "type": "integer" + }, + "topic": { + "type": "string" + }, + "invites": { + "type": "array", + "items": { + "$ref": "#/definitions/Invite" + } + }, + "retention_policy_id": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/Message" + } + }, + "voice_states": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceState" + } + }, + "read_states": { + "type": "array", + "items": { + "$ref": "#/definitions/ReadState" + } + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + } + }, + "flags": { + "type": "integer", + "default": 0 + }, + "default_thread_rate_limit_per_user": { + "type": "integer", + "default": 0 + }, + "thread_metadata": { + "$ref": "#/definitions/ThreadMetadata" + }, + "member_count": { + "type": "integer" + }, + "message_count": { + "type": "integer" + }, + "total_message_sent": { + "type": "integer" + }, + "available_tags": { + "type": "array", + "items": { + "$ref": "#/definitions/Tag" + } + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "position": { + "description": "Must be calculated Channel.calculatePosition", + "type": "integer" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "created_at", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ChannelType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 255 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Recipient": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "closed": { + "type": "boolean" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "closed", + "id", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "User": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "desktop": { + "type": "boolean", + "default": false + }, + "mobile": { + "type": "boolean", + "default": false + }, + "premium": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "bot": { + "type": "boolean", + "default": false + }, + "bio": { + "type": "string", + "default": "" + }, + "system": { + "type": "boolean", + "default": false + }, + "nsfw_allowed": { + "type": "boolean", + "default": true + }, + "mfa_enabled": { + "type": "boolean", + "default": false + }, + "webauthn_enabled": { + "type": "boolean", + "default": false + }, + "totp_secret": { + "type": "string", + "default": "" + }, + "totp_last_ticket": { + "type": "string", + "default": "" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "verified": { + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "default": false + }, + "deleted": { + "type": "boolean", + "default": false + }, + "email": { + "type": "string" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "public_flags": { + "type": "integer", + "default": 0 + }, + "purchased_flags": { + "type": "integer", + "default": 0 + }, + "premium_usage_flags": { + "type": "integer", + "default": 0 + }, + "rights": { + "type": "string" + }, + "sessions": { + "type": "array", + "items": { + "$ref": "#/definitions/Session" + } + }, + "relationships": { + "type": "array", + "items": { + "$ref": "#/definitions/Relationship" + } + }, + "connected_accounts": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectedAccount" + } + }, + "data": { + "type": "object", + "properties": { + "valid_tokens_since": { + "type": "string", + "format": "date-time" + }, + "hash": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "valid_tokens_since" + ] + }, + "fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "settings": { + "$ref": "#/definitions/UserSettings" + }, + "security_keys": { + "type": "array", + "items": { + "$ref": "#/definitions/SecurityKey" + } + }, + "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" + }, + "tag": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "connected_accounts", + "created_at", + "data", + "deleted", + "desktop", + "disabled", + "discriminator", + "fingerprints", + "flags", + "id", + "mfa_enabled", + "mobile", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "relationships", + "rights", + "security_keys", + "sessions", + "system", + "tag", + "username", + "verified", + "webauthn_enabled" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Session": { + "type": "object", + "properties": { + "session_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "activities": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + } + }, + "client_info": { + "type": "object", + "properties": { + "platform": { + "type": "string" + }, + "os": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "location": { + "type": "string" + } + }, + "additionalProperties": false + }, + "client_status": { + "$ref": "#/definitions/ClientStatus" + }, + "status": { + "$ref": "#/definitions/Status" + }, + "is_admin_session": { + "type": "boolean" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "last_seen": { + "type": "string", + "format": "date-time" + }, + "last_seen_ip": { + "type": "string" + }, + "last_seen_location": { + "type": "string" + }, + "last_seen_location_info": { + "$ref": "#/definitions/ExtendedLocationInfo" + }, + "session_nickname": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "client_status", + "created_at", + "is_admin_session", + "session_id", + "status", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ExtendedLocationInfo": { + "type": "object", + "properties": { + "is_eu": { + "type": "boolean" + }, + "city": { + "type": "string" + }, + "region": { + "type": "string" + }, + "region_code": { + "type": "string" + }, + "country_name": { + "type": "string" + }, + "country_code": { + "type": "string" + }, + "continent_name": { + "type": "string" + }, + "continent_code": { + "type": "string" + }, + "latitude": { + "type": "integer" + }, + "longitude": { + "type": "integer" + }, + "postal": { + "type": "string" + }, + "calling_code": { + "type": "string" + }, + "flag": { + "type": "string" + }, + "emoji_flag": { + "type": "string" + }, + "emoji_unicode": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "calling_code", + "city", + "continent_code", + "continent_name", + "country_code", + "country_name", + "emoji_flag", + "emoji_unicode", + "flag", + "is_eu", + "latitude", + "longitude", + "postal", + "region", + "region_code" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Relationship": { + "type": "object", + "properties": { + "from_id": { + "type": "string" + }, + "from": { + "$ref": "#/definitions/User" + }, + "to_id": { + "type": "string" + }, + "to": { + "$ref": "#/definitions/User" + }, + "nickname": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/RelationshipType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "from", + "from_id", + "id", + "to", + "to_id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RelationshipType": { + "type": "number", + "enum": [ + 4, + 3, + 2, + 1 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ConnectedAccount": { + "type": "object", + "properties": { + "external_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "friend_sync": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string" + }, + "revoked": { + "type": "boolean", + "default": false + }, + "show_activity": { + "type": "integer", + "default": 0 + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean", + "default": true + }, + "visibility": { + "type": "integer", + "default": 0 + }, + "integrations": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "metadata_": {}, + "metadata_visibility": { + "type": "integer", + "default": 0 + }, + "two_way_link": { + "type": "boolean", + "default": false + }, + "token_data": { + "anyOf": [ + { + "$ref": "#/definitions/ConnectedAccountTokenData" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "external_id", + "id", + "name", + "type", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserSettings": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "afk_timeout": { + "type": "integer", + "default": 3600 + }, + "allow_accessibility_detection": { + "type": "boolean", + "default": true + }, + "animate_emoji": { + "type": "boolean", + "default": true + }, + "animate_stickers": { + "type": "integer", + "default": 0 + }, + "contact_sync_enabled": { + "type": "boolean", + "default": false + }, + "convert_emoticons": { + "type": "boolean", + "default": false + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ], + "default": null + }, + "default_guilds_restricted": { + "type": "boolean", + "default": false + }, + "detect_platform_accounts": { + "type": "boolean", + "default": false + }, + "developer_mode": { + "type": "boolean", + "default": true + }, + "disable_games_tab": { + "type": "boolean", + "default": true + }, + "enable_tts_command": { + "type": "boolean", + "default": false + }, + "explicit_content_filter": { + "type": "integer", + "default": 0 + }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean", + "default": false + }, + "gif_auto_play": { + "type": "boolean", + "default": false + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + }, + "default": [] + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inline_attachment_media": { + "type": "boolean", + "default": true + }, + "inline_embed_media": { + "type": "boolean", + "default": true + }, + "locale": { + "type": "string", + "default": "en-US" + }, + "message_display_compact": { + "type": "boolean", + "default": false + }, + "native_phone_integration_enabled": { + "type": "boolean", + "default": true + }, + "render_embeds": { + "type": "boolean", + "default": true + }, + "render_reactions": { + "type": "boolean", + "default": true + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "show_current_game": { + "type": "boolean", + "default": true + }, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string", + "default": "online" + }, + "stream_notifications_enabled": { + "type": "boolean", + "default": false + }, + "theme": { + "enum": [ + "dark", + "light" + ], + "type": "string", + "default": "dark" + }, + "timezone_offset": { + "type": "integer", + "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "afk_timeout", + "allow_accessibility_detection", + "animate_emoji", + "animate_stickers", + "contact_sync_enabled", + "convert_emoticons", + "custom_status", + "default_guilds_restricted", + "detect_platform_accounts", + "developer_mode", + "disable_games_tab", + "enable_tts_command", + "explicit_content_filter", + "friend_discovery_flags", + "friend_source_flags", + "gateway_connected", + "gif_auto_play", + "guild_folders", + "guild_positions", + "index", + "inline_attachment_media", + "inline_embed_media", + "locale", + "message_display_compact", + "native_phone_integration_enabled", + "render_embeds", + "render_reactions", + "restricted_guilds", + "show_current_game", + "status", + "stream_notifications_enabled", + "theme", + "timezone_offset", + "view_nsfw_guilds" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CustomStatus": { + "type": "object", + "properties": { + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "expires_at": { + "type": "integer" + }, + "text": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "FriendSourceFlags": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "all" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildFolder": { + "type": "object", + "properties": { + "color": { + "type": [ + "null", + "integer" + ] + }, + "guild_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "guild_ids" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SecurityKey": { + "type": "object", + "properties": { + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "key_id": { + "type": "string" + }, + "public_key": { + "type": "string" + }, + "counter": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "counter", + "id", + "key_id", + "name", + "public_key", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AvatarDecorationData": { + "type": "object", + "properties": { + "asset": { + "type": "string" + }, + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "expires_at": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "asset", + "expires_at", + "sku_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "DisplayNameStyle": { + "type": "object", + "properties": { + "font_id": { + "type": "integer" + }, + "effect_id": { + "type": "integer" + }, + "colors": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "additionalProperties": false, + "required": [ + "colors", + "effect_id", + "font_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Collectibles": { + "type": "object", + "properties": { + "nameplate": { + "anyOf": [ + { + "$ref": "#/definitions/NameplateData" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "nameplate" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "NameplateData": { + "type": "object", + "properties": { + "asset": { + "type": "string" + }, + "sku_id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "label": { + "type": "string" + }, + "palette": { + "type": "string" + }, + "expires_at": { + "type": [ + "null", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "asset", + "expires_at", + "label", + "palette", + "sku_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PrimaryGuild": { + "type": "object", + "properties": { + "identity_enabled": { + "type": [ + "null", + "boolean" + ] + }, + "identity_guild_id": { + "type": [ + "null", + "string" + ] + }, + "tag": { + "type": [ + "null", + "string" + ] + }, + "badge": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "badge", + "identity_enabled", + "identity_guild_id", + "tag" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ThreadMember": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "member_idx": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "join_timestamp": { + "type": "string", + "format": "date-time" + }, + "muted": { + "type": "boolean" + }, + "mute_config": { + "$ref": "#/definitions/ThreadMemberMuteConfig" + }, + "flags": { + "$ref": "#/definitions/ThreadMemberFlags" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "flags", + "id", + "index", + "join_timestamp", + "member", + "member_idx", + "muted" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Member": { + "type": "object", + "properties": { + "index": { + "type": "string" + }, + "id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "nick": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "joined_at": { + "type": "string", + "format": "date-time" + }, + "premium_since": { + "type": "integer" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "pending": { + "type": "boolean" + }, + "settings": { + "$ref": "#/definitions/UserGuildSettings" + }, + "last_message_id": { + "type": "string" + }, + "joined_by": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "communication_disabled_until": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "avatar_decoration_data": { + "$ref": "#/definitions/AvatarDecorationData" + }, + "display_name_styles": { + "$ref": "#/definitions/DisplayNameStyle" + }, + "collectibles": { + "$ref": "#/definitions/Collectibles" + }, + "flags": { + "type": "integer", + "default": 0 + } + }, + "additionalProperties": false, + "required": [ + "banner", + "bio", + "communication_disabled_until", + "deaf", + "flags", + "guild", + "guild_id", + "id", + "index", + "joined_at", + "joined_by", + "mute", + "pending", + "roles", + "settings", + "user" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Role": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "managed": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "permissions": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + }, + "tags": { + "type": "object", + "properties": { + "bot_id": { + "type": "string" + }, + "integration_id": { + "type": "string" + }, + "premium_subscriber": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "flags": { + "type": "integer" + }, + "colors": { + "$ref": "#/definitions/RoleColors" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "colors", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RoleColors": { + "type": "object", + "properties": { + "primary_color": { + "type": "integer" + }, + "secondary_color": { + "type": "integer" + }, + "tertiary_color": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "primary_color" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserGuildSettings": { + "type": "object", + "properties": { + "channel_overrides": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } + }, + { + "type": "null" + } + ] + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } + ] + }, + "muted": { + "type": "boolean" + }, + "suppress_everyone": { + "type": "boolean" + }, + "suppress_roles": { + "type": "boolean" + }, + "version": { + "type": "integer" + }, + "guild_id": { + "type": [ + "null", + "string" + ] + }, + "flags": { + "type": "integer" + }, + "mute_scheduled_events": { + "type": "boolean" + }, + "hide_muted_channels": { + "type": "boolean" + }, + "notify_highlights": { + "type": "integer", + "const": 0 + } + }, + "additionalProperties": false, + "required": [ + "channel_overrides", + "flags", + "guild_id", + "hide_muted_channels", + "message_notifications", + "mobile_push", + "mute_config", + "mute_scheduled_events", + "muted", + "notify_highlights", + "suppress_everyone", + "suppress_roles", + "version" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ChannelOverride": { + "type": "object", + "properties": { + "message_notifications": { + "type": "integer" + }, + "mute_config": { + "$ref": "#/definitions/MuteConfig" + }, + "muted": { + "type": "boolean" + }, + "channel_id": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "message_notifications", + "mute_config", + "muted" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MuteConfig": { + "type": "object", + "properties": { + "end_time": { + "type": "integer" + }, + "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" + }, + "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" + }, + "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#" + }, + "Invite": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "temporary": { + "type": "boolean" + }, + "uses": { + "type": "integer" + }, + "max_uses": { + "type": "integer" + }, + "max_age": { + "type": "integer" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "inviter_id": { + "type": "string" + }, + "inviter": { + "$ref": "#/definitions/User" + }, + "target_user_id": { + "type": "string" + }, + "target_user": { + "type": "string" + }, + "target_user_type": { + "type": "integer" + }, + "vanity_url": { + "type": "boolean" + }, + "flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "code", + "created_at", + "flags", + "guild", + "guild_id", + "inviter", + "max_age", + "max_uses", + "target_user_id", + "temporary", + "uses" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Message": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "thread_id": { + "type": "string" + }, + "thread": { + "$ref": "#/definitions/Channel" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "author_id": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/User" + }, + "member_id": { + "type": "string" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "webhook_id": { + "type": "string" + }, + "webhook": { + "$ref": "#/definitions/Webhook" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "type": "string", + "format": "date-time" + }, + "tts": { + "type": "boolean" + }, + "mention_everyone": { + "type": "boolean" + }, + "mentions": { + "type": "array", + "items": { + "$ref": "#/definitions/User" + } + }, + "mention_roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "mention_channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "reactions": { + "type": "array", + "items": { + "$ref": "#/definitions/Reaction" + } + }, + "nonce": { + "type": "string" + }, + "pinned_at": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "pinned": { + "type": "boolean" + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "activity": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "party_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "party_id", + "type" + ] + }, + "flags": { + "type": "integer" + }, + "message_reference": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "embeds", + "flags", + "id", + "mention_channels", + "mention_roles", + "mentions", + "message_snapshots", + "pinned", + "reactions", + "timestamp", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Webhook": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/WebhookType" + }, + "name": { + "type": "string" + }, + "avatar": { + "type": "string" + }, + "token": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "application_id": { + "type": "string" + }, + "application": { + "$ref": "#/definitions/Application" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "source_channel_id": { + "type": "string" + }, + "source_channel": { + "$ref": "#/definitions/Channel" + }, + "url": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "avatar", + "channel", + "channel_id", + "id", + "name", + "source_channel", + "source_channel_id", + "type", + "url", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "WebhookType": { + "type": "number", + "enum": [ + 1, + 2, + 3 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Application": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "description": { + "type": "string" + }, + "summary": { + "type": "string", + "default": "" + }, + "type": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "hook": { + "type": "boolean", + "default": true + }, + "bot_public": { + "type": "boolean", + "default": true + }, + "bot_require_code_grant": { + "type": "boolean", + "default": false + }, + "verify_key": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/User" + }, + "flags": { + "type": "integer", + "default": 0 + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "rpc_application_state": { + "type": "integer", + "default": 0 + }, + "store_application_state": { + "type": "integer", + "default": 1 + }, + "verification_state": { + "type": "integer", + "default": 1 + }, + "interactions_endpoint_url": { + "type": "string" + }, + "integration_public": { + "type": "boolean", + "default": true + }, + "integration_require_code_grant": { + "type": "boolean", + "default": false + }, + "discoverability_state": { + "type": "integer", + "default": 1 + }, + "discovery_eligibility_flags": { + "type": "integer", + "default": 2240 + }, + "bot": { + "$ref": "#/definitions/User" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "cover_image": { + "type": "string" + }, + "install_params": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "permissions": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "permissions", + "scopes" + ] + }, + "terms_of_service_url": { + "type": "string" + }, + "privacy_policy_url": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "custom_install_url": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "discoverability_state", + "discovery_eligibility_flags", + "flags", + "hook", + "id", + "integration_public", + "integration_require_code_grant", + "name", + "owner", + "redirect_uris", + "rpc_application_state", + "store_application_state", + "summary", + "verification_state", + "verify_key" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Team": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/definitions/TeamMember" + } + }, + "name": { + "type": "string" + }, + "owner_user_id": { + "type": "string" + }, + "owner_user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "members", + "name", + "owner_user", + "owner_user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TeamMember": { + "type": "object", + "properties": { + "membership_state": { + "$ref": "#/definitions/TeamMemberState" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + }, + "role": { + "$ref": "#/definitions/TeamMemberRole" + }, + "team_id": { + "type": "string" + }, + "team": { + "$ref": "#/definitions/Team" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "membership_state", + "permissions", + "role", + "team", + "team_id", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TeamMemberState": { + "type": "number", + "enum": [ + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TeamMemberRole": { + "type": "string", + "enum": [ + "admin", + "developer", + "read_only" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Sticker": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "available": { + "type": "boolean" + }, + "tags": { + "type": "string" + }, + "pack_id": { + "type": "string" + }, + "pack": { + "$ref": "#/definitions/StickerPack" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "type": { + "$ref": "#/definitions/StickerType" + }, + "format_type": { + "$ref": "#/definitions/StickerFormatType" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "format_type", + "id", + "name", + "pack", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StickerPack": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "banner_asset_id": { + "type": "string" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + }, + "cover_sticker_id": { + "type": "string" + }, + "cover_sticker": { + "$ref": "#/definitions/Sticker" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "name", + "stickers" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StickerType": { + "type": "number", + "enum": [ + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StickerFormatType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Attachment": { + "type": "object", + "properties": { + "filename": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "content_type": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "message": { + "$ref": "#/definitions/Message" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id", + "message", + "message_id", + "proxy_url", + "size", + "url" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Embed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "type": { + "enum": [ + "article", + "gifv", + "image", + "link", + "rich", + "video" + ], + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "color": { + "type": "integer" + }, + "footer": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "text" + ] + }, + "image": { + "$ref": "#/definitions/EmbedImage" + }, + "thumbnail": { + "$ref": "#/definitions/EmbedImage" + }, + "video": { + "$ref": "#/definitions/EmbedImage" + }, + "provider": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "author": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, + "icon_url": { + "type": "string" + }, + "proxy_icon_url": { + "type": "string" + } + }, + "additionalProperties": false + }, + "fields": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "inline": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "value" + ] + } + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "EmbedImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "proxy_url": { + "type": "string" + }, + "height": { + "type": "integer" + }, + "width": { + "type": "integer" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Reaction": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "count", + "emoji", + "user_ids" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PartialEmoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 255 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationCommandType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "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.Section" + }, + "components": { + "type": "array", + "items": { + "$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.Section": { + "type": "number", + "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": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.Button" + }, + "style": { + "$ref": "#/definitions/ButtonStyle" + }, + "label": { + "type": "string" + }, + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "style", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.Button": { + "type": "number", + "const": 2, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ButtonStyle": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "$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": { + "type": { + "enum": [ + 3, + 5, + 6, + 7, + 8 + ], + "type": "number" + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SelectMenuDefaultOption": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "channel", + "role", + "user" + ], + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "StringSelectMenuComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.StringSelect" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuOption" + } + }, + "custom_id": { + "type": "string" + }, + "channel_types": { + "type": "array", + "items": { + "type": "integer" + } + }, + "placeholder": { + "type": "string" + }, + "default_values": { + "type": "array", + "items": { + "$ref": "#/definitions/SelectMenuDefaultOption" + } + }, + "min_values": { + "type": "integer" + }, + "max_values": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "options", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.StringSelect": { + "type": "number", + "const": 3, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SelectMenuOption": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "description": { + "type": "string" + }, + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + }, + "default": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "label", + "value" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TextInputComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType.TextInput" + }, + "custom_id": { + "type": "string" + }, + "style": { + "$ref": "#/definitions/TextInputStyle" + }, + "label": { + "type": "string" + }, + "min_length": { + "type": "integer" + }, + "max_length": { + "type": "integer" + }, + "required": { + "type": "boolean" + }, + "value": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "custom_id", + "label", + "style", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType.TextInput": { + "type": "number", + "const": 4, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "TextInputStyle": { + "type": "number", + "enum": [ + 1, + 2 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ContainerComponent": { + "type": "object", + "properties": { + "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": { + "question": { + "$ref": "#/definitions/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } + }, + "expiry": { + "type": "string", + "format": "date-time" + }, + "allow_multiselect": { + "type": "boolean" + }, + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + } + ] + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/definitions/PollMedia" + } + }, + "additionalProperties": false, + "required": [ + "poll_media" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { + "type": "boolean" + }, + "answer_counts": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswerCount" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_counts", + "is_finalized" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "id", + "me_voted" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageSnapshot": { + "type": "object", + "properties": { + "message": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "edited_timestamp": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "mentions": { + "type": "array", + "items": { + "type": "string" + } + }, + "mention_roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/definitions/Attachment" + } + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "type": { + "$ref": "#/definitions/MessageType" + }, + "flags": { + "type": "integer" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "resolved": { + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": true + } + }, + "sticker_items": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } + } + }, + "additionalProperties": false, + "required": [ + "content", + "embeds", + "flags", + "mention_roles", + "mentions", + "timestamp", + "type" + ] + } + }, + "additionalProperties": false, + "required": [ + "message" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/MessageComponentType" + }, + "id": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageComponentType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "VoiceState": { + "type": "object", + "properties": { + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "member": { + "$ref": "#/definitions/Member" + }, + "session_id": { + "type": "string" + }, + "token": { + "type": "string" + }, + "deaf": { + "type": "boolean" + }, + "mute": { + "type": "boolean" + }, + "self_deaf": { + "type": "boolean" + }, + "self_mute": { + "type": "boolean" + }, + "self_stream": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "suppress": { + "type": "boolean" + }, + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel", + "channel_id", + "deaf", + "guild_id", + "id", + "member", + "mute", + "self_deaf", + "self_mute", + "self_video", + "session_id", + "suppress", + "token", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ReadState": { + "type": "object", + "properties": { + "channel_id": { + "type": "string" + }, + "channel": { + "$ref": "#/definitions/Channel" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "last_message_id": { + "type": "string" + }, + "last_acked_id": { + "type": "string" + }, + "notifications_cursor": { + "type": "string" + }, + "mention_count": { + "type": "integer" + }, + "badge_count": { + "type": "integer" + }, + "last_pin_timestamp": { + "type": "string", + "format": "date-time" + }, + "read_state_type": { + "$ref": "#/definitions/ReadStateType" + }, + "flags": { + "$ref": "#/definitions/ReadStateFlags" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "badge_count", + "channel", + "channel_id", + "flags", + "id", + "mention_count", + "notifications_cursor", + "read_state_type", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ReadStateType": { + "type": "number", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ReadStateFlags": { + "type": "number", + "enum": [ + 1, + 2, + 4 + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ThreadMetadata": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "auto_archive_duration": { + "type": "integer" + }, + "archive_timestamp": { + "type": "string" + }, + "locked": { + "type": "boolean" + }, + "invitable": { + "type": "boolean" + }, + "create_timestamp": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "archive_timestamp", + "archived", + "auto_archive_duration", + "create_timestamp", + "locked" + ], + "$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#" + }, + "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#" + }, + "Template": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "usage_count": { + "type": "integer" + }, + "creator_id": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/User" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "source_guild_id": { + "type": "string" + }, + "source_guild": { + "$ref": "#/definitions/Guild" + }, + "serialized_source_guild": { + "$ref": "#/definitions/Guild" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "code", + "created_at", + "creator", + "creator_id", + "id", + "name", + "serialized_source_guild", + "source_guild", + "source_guild_id", + "updated_at" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Emoji": { + "type": "object", + "properties": { + "animated": { + "type": "boolean" + }, + "available": { + "type": "boolean" + }, + "guild_id": { + "type": "string" + }, + "guild": { + "$ref": "#/definitions/Guild" + }, + "user_id": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/User" + }, + "managed": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "require_colons": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "groups": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "animated", + "available", + "groups", + "guild", + "guild_id", + "id", + "managed", + "name", + "require_colons", + "roles", + "user", + "user_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildWelcomeScreen": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "welcome_channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "emoji_id": { + "type": "string" + }, + "emoji_name": { + "type": "string" + }, + "channel_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "channel_id", + "description" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "description", + "enabled", + "welcome_channels" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, "PartialMessage": { "description": "https://docs.discord.food/resources/message#partial-message-structure", "type": "object", @@ -13829,6 +13657,102 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "PartialUser": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "global_name": { + "type": [ + "null", + "string" + ] + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "avatar_decoration_data": { + "anyOf": [ + { + "$ref": "#/definitions/AvatarDecorationData" + }, + { + "type": "null" + } + ] + }, + "collectibles": { + "anyOf": [ + { + "$ref": "#/definitions/Collectibles" + }, + { + "type": "null" + } + ] + }, + "display_name_styles": { + "anyOf": [ + { + "$ref": "#/definitions/DisplayNameStyle" + }, + { + "type": "null" + } + ] + }, + "primary_guild": { + "anyOf": [ + { + "$ref": "#/definitions/PrimaryGuild" + }, + { + "type": "null" + } + ] + }, + "bot": { + "type": "boolean" + }, + "system": { + "type": "boolean" + }, + "banner": { + "type": [ + "null", + "string" + ] + }, + "accent_color": { + "type": [ + "null", + "integer" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, "HubGuild": { "type": "object", "properties": { @@ -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 d52a7c4..22ef7af 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 b4c156d..f873380 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -396,6 +396,7 @@ 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 @@ 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 745db5e..5e0a106 100644 --- a/src/util/util/Database.ts +++ b/src/util/util/Database.ts @@ -37,7 +37,7 @@ } 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 @@ } 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