summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-08-09 03:21:09 +0200
committerRory& <root@rory.gay>2026-08-09 03:21:09 +0200
commit87361035d72f5b85a420c4a416f71a7dfc46b188 (patch)
tree6d2bf5d58ae91dcf21b76d5517842b92489c303f
parentClean up some schemas (diff)
downloadserver-ts-87361035d72f5b85a420c4a416f71a7dfc46b188.tar.xz
Remove hashtag imports
-rw-r--r--assets/openapi.json3588
-rw-r--r--assets/schemas.json3846
-rw-r--r--src/schemas/api/bots/InteractionCallbackSchema.ts4
-rw-r--r--src/schemas/uncategorised/ThreadCreationSchema.ts2
4 files changed, 3758 insertions, 3682 deletions
diff --git a/assets/openapi.json b/assets/openapi.json

index d863aed7..34189d46 100644 --- a/assets/openapi.json +++ b/assets/openapi.json
@@ -224,20 +224,6 @@ "message" ] }, - "PollUserAnswersSchema": { - "type": "object", - "properties": { - "answer_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "answer_ids" - ] - }, "ActivitySchema": { "type": "object", "properties": { @@ -3117,1257 +3103,6 @@ "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/PublicChannel" - }, - "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/PublicMessage" - }, - "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": { - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "name": { - "type": "string" - }, - "version": { - "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_command": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "options": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ApplicationCommandOption" - } - }, - "target_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" - }, - "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": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "custom_id" - ] - }, - "SendableModalSubmitDataSchema": { - "type": "object", - "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "custom_id": { - "type": "string" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadAttachmentRequestSchema" - } - } - }, - "required": [ - "custom_id", - "id" - ] - }, - "WebhookCreateResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/components/schemas/PublicUser" - }, - "hook": { - "$ref": "#/components/schemas/WebhookResponse" - } - }, - "required": [ - "hook", - "user" - ] - }, - "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" - ] - }, - "RoleResponse": { - "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" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string", - "nullable": true - }, - "color": { - "type": "integer" - }, - "colors": { - "$ref": "#/components/schemas/RoleColors" - }, - "hoist": { - "type": "boolean" - }, - "icon": { - "type": "string", - "nullable": true - }, - "unicode_emoji": { - "type": "string", - "nullable": true - }, - "position": { - "type": "integer" - }, - "permissions": { - "type": "string" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "tags": { - "$ref": "#/components/schemas/RoleTags" - } - }, - "required": [ - "color", - "colors", - "description", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "RoleListResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleResponse" - } - }, - "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" - ] - }, - "GifResponse": { - "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" - ] - }, - "TrendingGifsResponse": { - "type": "object", - "properties": { - "categories": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GifTrendingCategory" - } - }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GifResponse" - } - } - }, - "required": [ - "categories", - "gifs" - ] - }, - "GifsResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GifResponse" - } - }, - "CreateReportSchema": { - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "variant": { - "type": "string" - }, - "name": { - "type": "string" - }, - "language": { - "type": "string" - }, - "breadcrumbs": { - "type": "array", - "items": { - "type": "integer" - } - }, - "elements": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "channel_id": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "stage_instance_id": { - "type": "string" - }, - "guild_scheduled_event_id": { - "type": "string" - }, - "reported_user_id": { - "type": "string" - }, - "application_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "widget_id": { - "type": "string" - } - }, - "required": [ - "breadcrumbs", - "language", - "name", - "variant", - "version" - ] - }, - "ReportingMenuResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "variant": { - "type": "string" - }, - "postback_url": { - "type": "string" - }, - "language": { - "type": "string" - }, - "root_node_id": { - "type": "integer" - }, - "success_node_id": { - "type": "integer" - }, - "fail_node_id": { - "type": "integer" - }, - "nodes": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "$ref": "#/components/schemas/ReportNode" - } - } - } - }, - "required": [ - "fail_node_id", - "name", - "nodes", - "postback_url", - "root_node_id", - "success_node_id", - "variant", - "version" - ] - }, - "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" - ] - }, - "VoiceRegionResponse": { - "type": "object", - "properties": { - "optimal": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "vip": { - "type": "boolean" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - } - }, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal", - "vip" - ] - }, - "VoiceRegionListResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/VoiceRegionResponse" - } - }, "APIGuild": { "type": "object", "properties": { @@ -4460,44 +3195,6 @@ "discovery_splash": { "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 - }, "bans": { "type": "array", "items": { @@ -4519,6 +3216,9 @@ "max_video_channel_users": { "type": "integer" }, + "member_count": { + "type": "integer" + }, "presence_count": { "type": "integer" }, @@ -4537,9 +3237,30 @@ "$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" }, + "owner_id": { + "type": "string" + }, "premium_subscription_count": { "type": "integer" }, @@ -4562,6 +3283,12 @@ "nsfw_level": { "type": "integer" }, + "nsfw": { + "type": "boolean" + }, + "parent": { + "type": "string" + }, "permissions": { "type": "integer" }, @@ -4584,6 +3311,14 @@ "toIntegrationGuild": { "type": "object", "additionalProperties": false + }, + "get_annotations": { + "type": "object", + "additionalProperties": false + }, + "clean_data": { + "type": "object", + "additionalProperties": false } }, "required": [ @@ -5129,41 +3864,50 @@ "type": "object", "properties": { "instanceName": { - "type": "string" + "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" + "type": "boolean", + "default": false } }, "required": [ @@ -6068,9 +4812,6 @@ "MessageEditSchema": { "type": "object", "properties": { - "poll": { - "$ref": "#/components/schemas/PollCreationSchema" - }, "embed": { "anyOf": [ { @@ -6093,18 +4834,12 @@ "filename" ] }, + "poll": { + "$ref": "#/components/schemas/PollCreationSchema" + }, "flags": { "type": "integer" }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "channel_id": { - "type": "string" - }, "content": { "type": "string" }, @@ -6114,6 +4849,9 @@ "nonce": { "type": "string" }, + "channel_id": { + "type": "string" + }, "tts": { "type": "boolean" }, @@ -6227,6 +4965,12 @@ "enforce_nonce": { "type": "boolean" }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, "thread_name": { "type": "string" }, @@ -7480,9 +6224,6 @@ "name": { "type": "string" }, - "id": { - "type": "string" - }, "type": { "enum": [ 0, @@ -7508,6 +6249,9 @@ ], "type": "number" }, + "id": { + "type": "string" + }, "flags": { "type": "integer" }, @@ -7515,12 +6259,33 @@ "type": "string", "nullable": true }, - "parent_id": { + "nsfw": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "topic": { "type": "string" }, - "default_auto_archive_duration": { + "bitrate": { "type": "integer" }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "invitable": { + "type": "boolean" + }, "permission_overwrites": { "type": "array", "items": { @@ -7548,55 +6313,1299 @@ ] } }, + "parent_id": { + "type": "string" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": "string", + "nullable": true + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, "video_quality_mode": { "type": "integer" }, - "bitrate": { + "auto_archive_duration": { "type": "integer" }, - "user_limit": { + "archived": { + "type": "boolean" + }, + "locked": { + "type": "boolean" + } + } + }, + "PollUserAnswersSchema": { + "type": "object", + "properties": { + "answer_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "answer_ids" + ] + }, + "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" }, - "nsfw": { + "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/PublicChannel" + }, + "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/PublicMessage" + }, + "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" }, - "rate_limit_per_user": { + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { "type": "integer" }, - "topic": { + "custom_install_url": { "type": "string" }, - "default_thread_rate_limit_per_user": { + "guild_id": { + "type": "string" + } + } + }, + "SendableApplicationCommandDataSchema": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "name": { + "type": "string" + }, + "version": { + "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_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApplicationCommandOption" + } + }, + "target_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" + }, + "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": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "custom_id" + ] + }, + "SendableModalSubmitDataSchema": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "custom_id": { + "type": "string" + }, + "attachments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadAttachmentRequestSchema" + } + } + }, + "required": [ + "custom_id", + "id" + ] + }, + "WebhookCreateResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/components/schemas/PublicUser" + }, + "hook": { + "$ref": "#/components/schemas/WebhookResponse" + } + }, + "required": [ + "hook", + "user" + ] + }, + "GuildProfileResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "icon_hash": { + "type": "string", + "nullable": true + }, + "member_count": { "type": "integer" }, - "applied_tags": { + "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" + ] + }, + "RoleResponse": { + "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" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "color": { + "type": "integer" + }, + "colors": { + "$ref": "#/components/schemas/RoleColors" + }, + "hoist": { + "type": "boolean" + }, + "icon": { + "type": "string", + "nullable": true + }, + "unicode_emoji": { + "type": "string", + "nullable": true + }, "position": { "type": "integer" }, - "invitable": { + "permissions": { + "type": "string" + }, + "managed": { "type": "boolean" }, - "rtc_region": { + "mentionable": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "tags": { + "$ref": "#/components/schemas/RoleTags" + } + }, + "required": [ + "color", + "colors", + "description", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "RoleListResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleResponse" + } + }, + "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" }, - "default_reaction_emoji": { + "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 }, - "auto_archive_duration": { + "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" + ] + }, + "GifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "archived": { + "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" + ] + }, + "TrendingGifsResponse": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GifTrendingCategory" + } + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GifResponse" + } + } + }, + "required": [ + "categories", + "gifs" + ] + }, + "GifsResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GifResponse" + } + }, + "CreateReportSchema": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "variant": { + "type": "string" + }, + "name": { + "type": "string" + }, + "language": { + "type": "string" + }, + "breadcrumbs": { + "type": "array", + "items": { + "type": "integer" + } + }, + "elements": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "channel_id": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "stage_instance_id": { + "type": "string" + }, + "guild_scheduled_event_id": { + "type": "string" + }, + "reported_user_id": { + "type": "string" + }, + "application_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "widget_id": { + "type": "string" + } + }, + "required": [ + "breadcrumbs", + "language", + "name", + "variant", + "version" + ] + }, + "ReportingMenuResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "variant": { + "type": "string" + }, + "postback_url": { + "type": "string" + }, + "language": { + "type": "string" + }, + "root_node_id": { + "type": "integer" + }, + "success_node_id": { + "type": "integer" + }, + "fail_node_id": { + "type": "integer" + }, + "nodes": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "$ref": "#/components/schemas/ReportNode" + } + } + } + }, + "required": [ + "fail_node_id", + "name", + "nodes", + "postback_url", + "root_node_id", + "success_node_id", + "variant", + "version" + ] + }, + "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" }, - "locked": { + "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" + ] + }, + "VoiceRegionResponse": { + "type": "object", + "properties": { + "optimal": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "vip": { + "type": "boolean" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { "type": "boolean" } + }, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal", + "vip" + ] + }, + "VoiceRegionListResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VoiceRegionResponse" + } + }, + "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" } }, "AttachmentListResponse": { @@ -14837,6 +14846,475 @@ "consumed" ] }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": "string", + "nullable": true + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "origin_channel_id": { + "type": "string", + "nullable": true + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ] + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "avatar": { + "type": "string", + "nullable": true + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "username": { + "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ] + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "is_primary": { + "type": "boolean" + }, + "icon": { + "type": "string" + } + }, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ] + }, + "ApplicationLimits": { + "type": "object", + "properties": { + "maxEmojis": { + "type": "integer", + "default": 100 + } + }, + "required": [ + "maxEmojis" + ] + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "required": [ + "maxBio", + "maxFriends", + "maxGuilds", + "maxUsername" + ] + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxStickers": { + "type": "integer", + "default": 500 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "required": [ + "maxBulkBanUsers", + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles", + "maxStickers" + ] + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachments": { + "type": "integer", + "default": 15 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + }, + "maxPreloadCount": { + "type": "integer", + "default": 100 + }, + "maxEmbeds": { + "type": "integer", + "default": 20 + } + }, + "required": [ + "maxAttachmentSize", + "maxAttachments", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxEmbeds", + "maxPreloadCount", + "maxReactions", + "maxTTSCharacters" + ] + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + }, + "maxName": { + "type": "integer", + "default": 32 + } + }, + "required": [ + "maxName", + "maxPins", + "maxTopic", + "maxWebhooks" + ] + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/components/schemas/RateLimitOptions" + }, + "global": { + "$ref": "#/components/schemas/RateLimitOptions" + }, + "error": { + "$ref": "#/components/schemas/RateLimitOptions" + }, + "routes": { + "$ref": "#/components/schemas/RouteRateLimit" + } + }, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ] + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "required": [ + "count", + "window" + ] + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/components/schemas/RateLimitOptions" + }, + "webhook": { + "$ref": "#/components/schemas/RateLimitOptions" + }, + "channel": { + "$ref": "#/components/schemas/RateLimitOptions" + }, + "auth": { + "$ref": "#/components/schemas/AuthRateLimit" + } + }, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/components/schemas/RateLimitOptions" + }, + "register": { + "$ref": "#/components/schemas/RateLimitOptions" + } + }, + "required": [ + "login", + "register" + ] + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/components/schemas/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/components/schemas/GlobalRateLimit" + } + }, + "required": [ + "register", + "sendMessage" + ] + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "required": [ + "enabled", + "limit", + "window" + ] + }, + "ProfileEffect": { + "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" + }, + "expires_at": { + "type": "integer", + "nullable": true + } + }, + "required": [ + "expires_at", + "id" + ] + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "required": [ + "name", + "type" + ] + }, + "MutualGuild": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "required": [ + "id" + ] + }, + "ProfileBadge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "required": [ + "description", + "icon", + "id" + ] + }, "InteractionCallbackType": { "type": "number", "enum": [ @@ -15347,446 +15825,6 @@ "next" ] }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": "string", - "nullable": true - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": "string", - "nullable": true - }, - "name": { - "type": "string", - "nullable": true - }, - "origin_channel_id": { - "type": "string", - "nullable": true - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ] - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": "string", - "nullable": true - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ] - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ] - }, - "ApplicationLimits": { - "type": "object", - "properties": { - "maxEmojis": { - "type": "integer" - } - }, - "required": [ - "maxEmojis" - ] - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer" - }, - "maxUsername": { - "type": "integer" - }, - "maxFriends": { - "type": "integer" - }, - "maxBio": { - "type": "integer" - } - }, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ] - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer" - }, - "maxEmojis": { - "type": "integer" - }, - "maxStickers": { - "type": "integer" - }, - "maxMembers": { - "type": "integer" - }, - "maxChannels": { - "type": "integer" - }, - "maxBulkBanUsers": { - "type": "integer" - }, - "maxChannelsInCategory": { - "type": "integer" - } - }, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles", - "maxStickers" - ] - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer" - }, - "maxTTSCharacters": { - "type": "integer" - }, - "maxReactions": { - "type": "integer" - }, - "maxAttachments": { - "type": "integer" - }, - "maxAttachmentSize": { - "type": "integer" - }, - "maxBulkDelete": { - "type": "integer" - }, - "maxEmbedDownloadSize": { - "type": "integer" - }, - "maxPreloadCount": { - "type": "integer" - }, - "maxEmbeds": { - "type": "integer" - } - }, - "required": [ - "maxAttachmentSize", - "maxAttachments", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxEmbeds", - "maxPreloadCount", - "maxReactions", - "maxTTSCharacters" - ] - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer" - }, - "maxTopic": { - "type": "integer" - }, - "maxWebhooks": { - "type": "integer" - }, - "maxName": { - "type": "integer" - } - }, - "required": [ - "maxName", - "maxPins", - "maxTopic", - "maxWebhooks" - ] - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "ip": { - "$ref": "#/components/schemas/RateLimitOptions" - }, - "global": { - "$ref": "#/components/schemas/RateLimitOptions" - }, - "error": { - "$ref": "#/components/schemas/RateLimitOptions" - }, - "routes": { - "$ref": "#/components/schemas/RouteRateLimit" - } - }, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ] - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "required": [ - "count", - "window" - ] - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/components/schemas/RateLimitOptions" - }, - "webhook": { - "$ref": "#/components/schemas/RateLimitOptions" - }, - "channel": { - "$ref": "#/components/schemas/RateLimitOptions" - }, - "auth": { - "$ref": "#/components/schemas/AuthRateLimit" - } - }, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/components/schemas/RateLimitOptions" - }, - "register": { - "$ref": "#/components/schemas/RateLimitOptions" - } - }, - "required": [ - "login", - "register" - ] - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/components/schemas/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/components/schemas/GlobalRateLimit" - } - }, - "required": [ - "register", - "sendMessage" - ] - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "enabled": { - "type": "boolean" - } - }, - "required": [ - "enabled", - "limit", - "window" - ] - }, - "ProfileEffect": { - "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" - }, - "expires_at": { - "type": "integer", - "nullable": true - } - }, - "required": [ - "expires_at", - "id" - ] - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "required": [ - "name", - "type" - ] - }, - "MutualGuild": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "required": [ - "id" - ] - }, - "ProfileBadge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "required": [ - "description", - "icon", - "id" - ] - }, "MessageReferenceIds": { "type": "object", "properties": { diff --git a/assets/schemas.json b/assets/schemas.json
index 00200007..2fd49a0d 100644 --- a/assets/schemas.json +++ b/assets/schemas.json
@@ -207,22 +207,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "PollUserAnswersSchema": { - "type": "object", - "properties": { - "answer_ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "answer_ids" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "ActivitySchema": { "type": "object", "properties": { @@ -3309,1329 +3293,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#" - }, - "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/PublicChannel" - }, - "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/PublicMessage" - }, - "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": { - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "name": { - "type": "string" - }, - "version": { - "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_command": { - "type": "object", - "properties": {}, - "additionalProperties": true - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ApplicationCommandOption" - } - }, - "target_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" - }, - "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": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "custom_id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "SendableModalSubmitDataSchema": { - "type": "object", - "properties": { - "id": { - "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", - "type": "string" - }, - "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#" - }, - "WebhookCreateResponse": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/PublicUser" - }, - "hook": { - "$ref": "#/definitions/WebhookResponse" - } - }, - "additionalProperties": false, - "required": [ - "hook", - "user" - ], - "$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#" - }, - "RoleResponse": { - "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" - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "color": { - "type": "integer" - }, - "colors": { - "$ref": "#/definitions/RoleColors" - }, - "hoist": { - "type": "boolean" - }, - "icon": { - "type": [ - "null", - "string" - ] - }, - "unicode_emoji": { - "type": [ - "null", - "string" - ] - }, - "position": { - "type": "integer" - }, - "permissions": { - "type": "string" - }, - "managed": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "flags": { - "type": "integer" - }, - "tags": { - "$ref": "#/definitions/RoleTags" - } - }, - "additionalProperties": false, - "required": [ - "color", - "colors", - "description", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RoleListResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/RoleResponse" - }, - "$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#" - }, - "GifResponse": { - "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#" - }, - "TrendingGifsResponse": { - "type": "object", - "properties": { - "categories": { - "type": "array", - "items": { - "$ref": "#/definitions/GifTrendingCategory" - } - }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/definitions/GifResponse" - } - } - }, - "additionalProperties": false, - "required": [ - "categories", - "gifs" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GifsResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/GifResponse" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "CreateReportSchema": { - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "variant": { - "type": "string" - }, - "name": { - "type": "string" - }, - "language": { - "type": "string" - }, - "breadcrumbs": { - "type": "array", - "items": { - "type": "integer" - } - }, - "elements": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "channel_id": { - "type": "string" - }, - "message_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "stage_instance_id": { - "type": "string" - }, - "guild_scheduled_event_id": { - "type": "string" - }, - "reported_user_id": { - "type": "string" - }, - "application_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "widget_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "breadcrumbs", - "language", - "name", - "variant", - "version" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ReportingMenuResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - }, - "variant": { - "type": "string" - }, - "postback_url": { - "type": "string" - }, - "language": { - "type": "string" - }, - "root_node_id": { - "type": "integer" - }, - "success_node_id": { - "type": "integer" - }, - "fail_node_id": { - "type": "integer" - }, - "nodes": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "$ref": "#/definitions/ReportNode" - } - } - } - }, - "additionalProperties": false, - "required": [ - "fail_node_id", - "name", - "nodes", - "postback_url", - "root_node_id", - "success_node_id", - "variant", - "version" - ], - "$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#" - }, - "VoiceRegionResponse": { - "type": "object", - "properties": { - "optimal": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "vip": { - "type": "boolean" - }, - "custom": { - "type": "boolean" - }, - "deprecated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "custom", - "deprecated", - "id", - "name", - "optimal", - "vip" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "VoiceRegionListResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/VoiceRegionResponse" - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, "APIGuild": { "type": "object", "properties": { @@ -4732,44 +3393,6 @@ "discovery_splash": { "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 - }, "bans": { "type": "array", "items": { @@ -4791,6 +3414,9 @@ "max_video_channel_users": { "type": "integer" }, + "member_count": { + "type": "integer" + }, "presence_count": { "type": "integer" }, @@ -4809,9 +3435,30 @@ "$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" }, + "owner_id": { + "type": "string" + }, "premium_subscription_count": { "type": "integer" }, @@ -4834,6 +3481,12 @@ "nsfw_level": { "type": "integer" }, + "nsfw": { + "type": "boolean" + }, + "parent": { + "type": "string" + }, "permissions": { "type": "integer" }, @@ -4856,6 +3509,14 @@ "toIntegrationGuild": { "type": "object", "additionalProperties": false + }, + "get_annotations": { + "type": "object", + "additionalProperties": false + }, + "clean_data": { + "type": "object", + "additionalProperties": false } }, "additionalProperties": false, @@ -5429,55 +4090,64 @@ "type": "object", "properties": { "instanceName": { - "type": "string" + "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" + "type": "boolean", + "default": false } }, "additionalProperties": false, @@ -6454,9 +5124,6 @@ "MessageEditSchema": { "type": "object", "properties": { - "poll": { - "$ref": "#/definitions/PollCreationSchema" - }, "embed": { "anyOf": [ { @@ -6479,18 +5146,12 @@ "filename" ] }, + "poll": { + "$ref": "#/definitions/PollCreationSchema" + }, "flags": { "type": "integer" }, - "applied_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "channel_id": { - "type": "string" - }, "content": { "type": "string" }, @@ -6500,6 +5161,9 @@ "nonce": { "type": "string" }, + "channel_id": { + "type": "string" + }, "tts": { "type": "boolean" }, @@ -6613,6 +5277,12 @@ "enforce_nonce": { "type": "boolean" }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, "thread_name": { "type": "string" }, @@ -7976,9 +6646,6 @@ "name": { "type": "string" }, - "id": { - "type": "string" - }, "type": { "enum": [ 0, @@ -8004,6 +6671,9 @@ ], "type": "number" }, + "id": { + "type": "string" + }, "flags": { "type": "integer" }, @@ -8013,12 +6683,33 @@ "string" ] }, - "parent_id": { + "nsfw": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "topic": { "type": "string" }, - "default_auto_archive_duration": { + "bitrate": { + "type": "integer" + }, + "user_limit": { + "type": "integer" + }, + "rate_limit_per_user": { + "type": "integer" + }, + "position": { "type": "integer" }, + "invitable": { + "type": "boolean" + }, "permission_overwrites": { "type": "array", "items": { @@ -8046,59 +6737,1377 @@ ] } }, + "parent_id": { + "type": "string" + }, + "rtc_region": { + "type": "string" + }, + "default_auto_archive_duration": { + "type": "integer" + }, + "default_reaction_emoji": { + "type": [ + "null", + "string" + ] + }, + "default_thread_rate_limit_per_user": { + "type": "integer" + }, "video_quality_mode": { "type": "integer" }, - "bitrate": { + "auto_archive_duration": { "type": "integer" }, - "user_limit": { + "archived": { + "type": "boolean" + }, + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PollUserAnswersSchema": { + "type": "object", + "properties": { + "answer_ids": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "answer_ids" + ], + "$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" }, - "nsfw": { + "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/PublicChannel" + }, + "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/PublicMessage" + }, + "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" }, - "rate_limit_per_user": { + "bot_require_code_grant": { + "type": "boolean" + }, + "flags": { "type": "integer" }, - "topic": { + "custom_install_url": { "type": "string" }, - "default_thread_rate_limit_per_user": { + "guild_id": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SendableApplicationCommandDataSchema": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "name": { + "type": "string" + }, + "version": { + "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_command": { + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationCommandOption" + } + }, + "target_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" + }, + "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": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "custom_id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "SendableModalSubmitDataSchema": { + "type": "object", + "properties": { + "id": { + "description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```", + "type": "string" + }, + "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#" + }, + "WebhookCreateResponse": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/PublicUser" + }, + "hook": { + "$ref": "#/definitions/WebhookResponse" + } + }, + "additionalProperties": false, + "required": [ + "hook", + "user" + ], + "$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" }, - "applied_tags": { + "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#" + }, + "RoleResponse": { + "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" + }, + "name": { + "type": "string" + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "color": { + "type": "integer" + }, + "colors": { + "$ref": "#/definitions/RoleColors" + }, + "hoist": { + "type": "boolean" + }, + "icon": { + "type": [ + "null", + "string" + ] + }, + "unicode_emoji": { + "type": [ + "null", + "string" + ] + }, "position": { "type": "integer" }, - "invitable": { + "permissions": { + "type": "string" + }, + "managed": { "type": "boolean" }, - "rtc_region": { + "mentionable": { + "type": "boolean" + }, + "flags": { + "type": "integer" + }, + "tags": { + "$ref": "#/definitions/RoleTags" + } + }, + "additionalProperties": false, + "required": [ + "color", + "colors", + "description", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RoleListResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleResponse" + }, + "$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" }, - "default_reaction_emoji": { + "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" ] }, - "auto_archive_duration": { + "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#" + }, + "GifResponse": { + "type": "object", + "properties": { + "id": { + "type": "string" }, - "archived": { + "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#" + }, + "TrendingGifsResponse": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "$ref": "#/definitions/GifTrendingCategory" + } + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/definitions/GifResponse" + } + } + }, + "additionalProperties": false, + "required": [ + "categories", + "gifs" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GifsResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/GifResponse" + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "CreateReportSchema": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "variant": { + "type": "string" + }, + "name": { + "type": "string" + }, + "language": { + "type": "string" + }, + "breadcrumbs": { + "type": "array", + "items": { + "type": "integer" + } + }, + "elements": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "channel_id": { + "type": "string" + }, + "message_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "stage_instance_id": { + "type": "string" + }, + "guild_scheduled_event_id": { + "type": "string" + }, + "reported_user_id": { + "type": "string" + }, + "application_id": { + "type": "string" + }, + "user_id": { + "type": "string" + }, + "widget_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "breadcrumbs", + "language", + "name", + "variant", + "version" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ReportingMenuResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "variant": { + "type": "string" + }, + "postback_url": { + "type": "string" + }, + "language": { + "type": "string" + }, + "root_node_id": { + "type": "integer" + }, + "success_node_id": { + "type": "integer" + }, + "fail_node_id": { + "type": "integer" + }, + "nodes": { + "type": "object", + "additionalProperties": false, + "patternProperties": { + "^[0-9]+$": { + "$ref": "#/definitions/ReportNode" + } + } + } + }, + "additionalProperties": false, + "required": [ + "fail_node_id", + "name", + "nodes", + "postback_url", + "root_node_id", + "success_node_id", + "variant", + "version" + ], + "$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" }, - "locked": { + "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#" + }, + "VoiceRegionResponse": { + "type": "object", + "properties": { + "optimal": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "vip": { + "type": "boolean" + }, + "custom": { + "type": "boolean" + }, + "deprecated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "custom", + "deprecated", + "id", + "name", + "optimal", + "vip" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "VoiceRegionListResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/VoiceRegionResponse" + }, + "$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#" }, "AttachmentListResponse": { @@ -15814,6 +15823,523 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "DmChannelDTO": { + "type": "object", + "properties": { + "icon": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": "string" + }, + "last_message_id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "origin_channel_id": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/MinimalPublicUserDTO" + } + }, + "type": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "icon", + "id", + "last_message_id", + "name", + "origin_channel_id", + "recipients", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MinimalPublicUserDTO": { + "type": "object", + "properties": { + "avatar": { + "type": [ + "null", + "string" + ] + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "username": { + "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "discriminator", + "id", + "public_flags", + "username" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "Categories": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "localizations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "is_primary": { + "type": "boolean" + }, + "icon": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "is_primary", + "localizations", + "name" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationLimits": { + "type": "object", + "properties": { + "maxEmojis": { + "type": "integer", + "default": 100 + } + }, + "additionalProperties": false, + "required": [ + "maxEmojis" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "UserLimits": { + "type": "object", + "properties": { + "maxGuilds": { + "type": "integer", + "default": 1048576 + }, + "maxUsername": { + "type": "integer", + "default": 32 + }, + "maxFriends": { + "type": "integer", + "default": 5000 + }, + "maxBio": { + "type": "integer", + "default": 190 + } + }, + "additionalProperties": false, + "required": [ + "maxBio", + "maxFriends", + "maxGuilds", + "maxUsername" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GuildLimits": { + "type": "object", + "properties": { + "maxRoles": { + "type": "integer", + "default": 1000 + }, + "maxEmojis": { + "type": "integer", + "default": 2000 + }, + "maxStickers": { + "type": "integer", + "default": 500 + }, + "maxMembers": { + "type": "integer", + "default": 25000000 + }, + "maxChannels": { + "type": "integer", + "default": 65535 + }, + "maxBulkBanUsers": { + "type": "integer", + "default": 200 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "maxBulkBanUsers", + "maxChannels", + "maxChannelsInCategory", + "maxEmojis", + "maxMembers", + "maxRoles", + "maxStickers" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MessageLimits": { + "type": "object", + "properties": { + "maxCharacters": { + "type": "integer", + "default": 1048576 + }, + "maxTTSCharacters": { + "type": "integer", + "default": 160 + }, + "maxReactions": { + "type": "integer", + "default": 2048 + }, + "maxAttachments": { + "type": "integer", + "default": 15 + }, + "maxAttachmentSize": { + "type": "integer", + "default": 1073741824 + }, + "maxBulkDelete": { + "type": "integer", + "default": 1000 + }, + "maxEmbedDownloadSize": { + "type": "integer", + "default": 5242880 + }, + "maxPreloadCount": { + "type": "integer", + "default": 100 + }, + "maxEmbeds": { + "type": "integer", + "default": 20 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxAttachments", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "maxEmbeds", + "maxPreloadCount", + "maxReactions", + "maxTTSCharacters" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ChannelLimits": { + "type": "object", + "properties": { + "maxPins": { + "type": "integer", + "default": 500 + }, + "maxTopic": { + "type": "integer", + "default": 1024 + }, + "maxWebhooks": { + "type": "integer", + "default": 100 + }, + "maxName": { + "type": "integer", + "default": 32 + } + }, + "additionalProperties": false, + "required": [ + "maxName", + "maxPins", + "maxTopic", + "maxWebhooks" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RateLimits": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": false + }, + "ip": { + "$ref": "#/definitions/RateLimitOptions" + }, + "global": { + "$ref": "#/definitions/RateLimitOptions" + }, + "error": { + "$ref": "#/definitions/RateLimitOptions" + }, + "routes": { + "$ref": "#/definitions/RouteRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "error", + "global", + "ip", + "routes" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RateLimitOptions": { + "type": "object", + "properties": { + "bot": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "window": { + "type": "integer" + }, + "onyIp": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "count", + "window" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "RouteRateLimit": { + "type": "object", + "properties": { + "guild": { + "$ref": "#/definitions/RateLimitOptions" + }, + "webhook": { + "$ref": "#/definitions/RateLimitOptions" + }, + "channel": { + "$ref": "#/definitions/RateLimitOptions" + }, + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GlobalRateLimits": { + "type": "object", + "properties": { + "register": { + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" + } + }, + "additionalProperties": false, + "required": [ + "register", + "sendMessage" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "GlobalRateLimit": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "default": 100 + }, + "window": { + "type": "integer", + "default": 3600000 + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "enabled", + "limit", + "window" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ProfileEffect": { + "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" + }, + "expires_at": { + "type": [ + "null", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "expires_at", + "id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "PublicConnectedAccount": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "verified": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "MutualGuild": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "nick": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ProfileBadge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, "InteractionCallbackType": { "type": "number", "enum": [ @@ -16379,494 +16905,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "DmChannelDTO": { - "type": "object", - "properties": { - "icon": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": "string" - }, - "last_message_id": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "origin_channel_id": { - "type": [ - "null", - "string" - ] - }, - "owner_id": { - "type": "string" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/definitions/MinimalPublicUserDTO" - } - }, - "type": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "icon", - "id", - "last_message_id", - "name", - "origin_channel_id", - "recipients", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MinimalPublicUserDTO": { - "type": "object", - "properties": { - "avatar": { - "type": [ - "null", - "string" - ] - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "public_flags": { - "type": "integer" - }, - "username": { - "type": "string" - }, - "badge_ids": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "required": [ - "discriminator", - "id", - "public_flags", - "username" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "Categories": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "localizations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "is_primary": { - "type": "boolean" - }, - "icon": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "is_primary", - "localizations", - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationLimits": { - "type": "object", - "properties": { - "maxEmojis": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "maxEmojis" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "UserLimits": { - "type": "object", - "properties": { - "maxGuilds": { - "type": "integer" - }, - "maxUsername": { - "type": "integer" - }, - "maxFriends": { - "type": "integer" - }, - "maxBio": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "maxBio", - "maxFriends", - "maxGuilds", - "maxUsername" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GuildLimits": { - "type": "object", - "properties": { - "maxRoles": { - "type": "integer" - }, - "maxEmojis": { - "type": "integer" - }, - "maxStickers": { - "type": "integer" - }, - "maxMembers": { - "type": "integer" - }, - "maxChannels": { - "type": "integer" - }, - "maxBulkBanUsers": { - "type": "integer" - }, - "maxChannelsInCategory": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "maxBulkBanUsers", - "maxChannels", - "maxChannelsInCategory", - "maxEmojis", - "maxMembers", - "maxRoles", - "maxStickers" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MessageLimits": { - "type": "object", - "properties": { - "maxCharacters": { - "type": "integer" - }, - "maxTTSCharacters": { - "type": "integer" - }, - "maxReactions": { - "type": "integer" - }, - "maxAttachments": { - "type": "integer" - }, - "maxAttachmentSize": { - "type": "integer" - }, - "maxBulkDelete": { - "type": "integer" - }, - "maxEmbedDownloadSize": { - "type": "integer" - }, - "maxPreloadCount": { - "type": "integer" - }, - "maxEmbeds": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxAttachments", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "maxEmbeds", - "maxPreloadCount", - "maxReactions", - "maxTTSCharacters" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ChannelLimits": { - "type": "object", - "properties": { - "maxPins": { - "type": "integer" - }, - "maxTopic": { - "type": "integer" - }, - "maxWebhooks": { - "type": "integer" - }, - "maxName": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "maxName", - "maxPins", - "maxTopic", - "maxWebhooks" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RateLimits": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "ip": { - "$ref": "#/definitions/RateLimitOptions" - }, - "global": { - "$ref": "#/definitions/RateLimitOptions" - }, - "error": { - "$ref": "#/definitions/RateLimitOptions" - }, - "routes": { - "$ref": "#/definitions/RouteRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "error", - "global", - "ip", - "routes" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RateLimitOptions": { - "type": "object", - "properties": { - "bot": { - "type": "integer" - }, - "count": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "onyIp": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "count", - "window" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "RouteRateLimit": { - "type": "object", - "properties": { - "guild": { - "$ref": "#/definitions/RateLimitOptions" - }, - "webhook": { - "$ref": "#/definitions/RateLimitOptions" - }, - "channel": { - "$ref": "#/definitions/RateLimitOptions" - }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GlobalRateLimits": { - "type": "object", - "properties": { - "register": { - "$ref": "#/definitions/GlobalRateLimit" - }, - "sendMessage": { - "$ref": "#/definitions/GlobalRateLimit" - } - }, - "additionalProperties": false, - "required": [ - "register", - "sendMessage" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "GlobalRateLimit": { - "type": "object", - "properties": { - "limit": { - "type": "integer" - }, - "window": { - "type": "integer" - }, - "enabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "enabled", - "limit", - "window" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ProfileEffect": { - "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" - }, - "expires_at": { - "type": [ - "null", - "integer" - ] - } - }, - "additionalProperties": false, - "required": [ - "expires_at", - "id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "PublicConnectedAccount": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "verified": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name", - "type" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "MutualGuild": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "nick": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ProfileBadge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, "MessageReferenceIds": { "type": "object", "properties": { diff --git a/src/schemas/api/bots/InteractionCallbackSchema.ts b/src/schemas/api/bots/InteractionCallbackSchema.ts
index ab0d7ca4..69addda9 100644 --- a/src/schemas/api/bots/InteractionCallbackSchema.ts +++ b/src/schemas/api/bots/InteractionCallbackSchema.ts
@@ -16,9 +16,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { InteractionCallbackType } from "./InteractionCallbackType"; +import { MessageCreateAttachment, MessageCreateCloudAttachment, PollCreationSchema } from "@spacebar/schemas/uncategorised"; import { AllowedMentions, BaseMessageComponents, Embed } from "../messages"; -import { MessageCreateAttachment, MessageCreateCloudAttachment, PollCreationSchema } from "#schemas/uncategorised"; +import { InteractionCallbackType } from "./InteractionCallbackType"; export interface InteractionCallbackSchema { type: InteractionCallbackType; diff --git a/src/schemas/uncategorised/ThreadCreationSchema.ts b/src/schemas/uncategorised/ThreadCreationSchema.ts
index 76ed1385..558f6488 100644 --- a/src/schemas/uncategorised/ThreadCreationSchema.ts +++ b/src/schemas/uncategorised/ThreadCreationSchema.ts
@@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { BaseMessageComponents, ChannelType, Embed } from "#schemas/api"; +import { BaseMessageComponents, ChannelType, Embed } from "@spacebar/schemas/api"; import { MessageActivity } from "./MessageActivity"; import { MessageCreateAttachment, MessageCreateCloudAttachment } from "./MessageCreateSchema";