discord-api-spec/specs/openapi.json
2025-07-11 03:15:07 +00:00

38700 lines
No EOL
1,008 KiB
JSON

{
"openapi": "3.1.0",
"info": {
"title": "Discord HTTP API (Preview)",
"description": "Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details.",
"termsOfService": "https://discord.com/developers/docs/policies-and-agreements/developer-terms-of-service",
"license": {
"name": "MIT",
"identifier": "MIT"
},
"version": "10"
},
"externalDocs": {
"url": "https://discord.com/developers/docs",
"description": "Discord Developer Documentation"
},
"servers": [
{
"url": "https://discord.com/api/v10"
}
],
"paths": {
"/applications/@me": {
"get": {
"operationId": "get_my_application",
"responses": {
"200": {
"description": "200 response for get_my_application",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivateApplicationResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_my_application",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationFormPartial"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_my_application",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivateApplicationResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/applications/{application_id}": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_application",
"responses": {
"200": {
"description": "200 response for get_application",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivateApplicationResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_application",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationFormPartial"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_application",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivateApplicationResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/applications/{application_id}/activity-instances/{instance_id}": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "instance_id",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"get": {
"operationId": "applications_get_activity_instance",
"responses": {
"200": {
"description": "200 response for applications_get_activity_instance",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmbeddedActivityInstance"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/applications/{application_id}/attachment": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "upload_application_attachment",
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"file": {
"type": "string",
"contentEncoding": "binary"
}
},
"required": [
"file"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for upload_application_attachment",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActivitiesAttachmentResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"activities.invites.write",
"activities.read",
"activities.write",
"applications.builds.read",
"applications.builds.upload",
"applications.commands",
"applications.commands.permissions.update",
"applications.commands.update",
"applications.entitlements",
"applications.store.update",
"bot",
"connections",
"dm_channels.read",
"email",
"gdm.join",
"guilds",
"guilds.join",
"guilds.members.read",
"identify",
"messages.read",
"openid",
"relationships.read",
"role_connections.write",
"rpc",
"rpc.activities.write",
"rpc.notifications.read",
"rpc.screenshare.read",
"rpc.screenshare.write",
"rpc.video.read",
"rpc.video.write",
"rpc.voice.read",
"rpc.voice.write",
"voice",
"webhook.incoming"
]
}
]
}
},
"/applications/{application_id}/commands": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_application_commands",
"parameters": [
{
"name": "with_localizations",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for list_application_commands",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"put": {
"operationId": "bulk_set_application_commands",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandUpdateRequest"
},
"maxItems": 110
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for bulk_set_application_commands",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"post": {
"operationId": "create_application_command",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandCreateRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"201": {
"description": "201 response for create_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
}
},
"/applications/{application_id}/commands/{command_id}": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "command_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_application_command",
"responses": {
"200": {
"description": "200 response for get_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"delete": {
"operationId": "delete_application_command",
"responses": {
"204": {
"description": "204 response for delete_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"patch": {
"operationId": "update_application_command",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandPatchRequestPartial"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
}
},
"/applications/{application_id}/emojis": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_application_emojis",
"responses": {
"200": {
"description": "200 response for list_application_emojis",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListApplicationEmojisResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_application_emoji",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 32
},
"image": {
"type": "string",
"contentEncoding": "base64"
}
},
"required": [
"name",
"image"
]
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_application_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmojiResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/applications/{application_id}/emojis/{emoji_id}": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "emoji_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_application_emoji",
"responses": {
"200": {
"description": "200 response for get_application_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmojiResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_application_emoji",
"responses": {
"204": {
"description": "204 response for delete_application_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_application_emoji",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 32
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_application_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmojiResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/applications/{application_id}/entitlements": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_entitlements",
"parameters": [
{
"name": "user_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "sku_ids",
"in": "query",
"schema": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"maxItems": 100,
"uniqueItems": true
}
]
},
"required": true
},
{
"name": "guild_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "before",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
{
"name": "exclude_ended",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "exclude_deleted",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "only_active",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for get_entitlements",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/EntitlementResponse"
}
]
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.entitlements"
]
}
]
},
"post": {
"operationId": "create_entitlement",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateEntitlementRequestData"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_entitlement",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EntitlementResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/applications/{application_id}/entitlements/{entitlement_id}": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "entitlement_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_entitlement",
"responses": {
"200": {
"description": "200 response for get_entitlement",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EntitlementResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.entitlements"
]
}
]
},
"delete": {
"operationId": "delete_entitlement",
"responses": {
"204": {
"description": "204 response for delete_entitlement",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.entitlements"
]
}
]
}
},
"/applications/{application_id}/entitlements/{entitlement_id}/consume": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "entitlement_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "consume_entitlement",
"responses": {
"204": {
"description": "204 response for consume_entitlement",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.entitlements"
]
}
]
}
},
"/applications/{application_id}/guilds/{guild_id}/commands": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_application_commands",
"parameters": [
{
"name": "with_localizations",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for list_guild_application_commands",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"put": {
"operationId": "bulk_set_guild_application_commands",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandUpdateRequest"
},
"maxItems": 110
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for bulk_set_guild_application_commands",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"post": {
"operationId": "create_guild_application_command",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandCreateRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_guild_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"201": {
"description": "201 response for create_guild_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
}
},
"/applications/{application_id}/guilds/{guild_id}/commands/permissions": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_application_command_permissions",
"responses": {
"200": {
"description": "200 response for list_guild_application_command_permissions",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CommandPermissionsResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.permissions.update"
]
}
]
}
},
"/applications/{application_id}/guilds/{guild_id}/commands/{command_id}": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "command_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_application_command",
"responses": {
"200": {
"description": "200 response for get_guild_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"delete": {
"operationId": "delete_guild_application_command",
"responses": {
"204": {
"description": "204 response for delete_guild_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
},
"patch": {
"operationId": "update_guild_application_command",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandPatchRequestPartial"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_application_command",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationCommandResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.update"
]
}
]
}
},
"/applications/{application_id}/guilds/{guild_id}/commands/{command_id}/permissions": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "command_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_application_command_permissions",
"responses": {
"200": {
"description": "200 response for get_guild_application_command_permissions",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommandPermissionsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.permissions.update"
]
}
]
},
"put": {
"operationId": "set_guild_application_command_permissions",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"permissions": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandPermission"
},
"maxItems": 100
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for set_guild_application_command_permissions",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommandPermissionsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"applications.commands.permissions.update"
]
}
]
}
},
"/applications/{application_id}/role-connections/metadata": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_application_role_connections_metadata",
"responses": {
"200": {
"description": "200 response for get_application_role_connections_metadata",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationRoleConnectionsMetadataItemResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"put": {
"operationId": "update_application_role_connections_metadata",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationRoleConnectionsMetadataItemRequest"
},
"maxItems": 5
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_application_role_connections_metadata",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationRoleConnectionsMetadataItemResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_channel",
"responses": {
"200": {
"description": "200 response for get_channel",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_channel",
"responses": {
"200": {
"description": "200 response for delete_channel",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_channel",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/UpdateDMRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateGroupDMRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateGuildChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateThreadRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_channel",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/followers": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "follow_channel",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"webhook_channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
"required": [
"webhook_channel_id"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for follow_channel",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelFollowerResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/invites": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_channel_invites",
"responses": {
"200": {
"description": "200 response for list_channel_invites",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"anyOf": [
{
"$ref": "#/components/schemas/FriendInviteResponse"
},
{
"$ref": "#/components/schemas/GroupDMInviteResponse"
},
{
"$ref": "#/components/schemas/GuildInviteResponse"
}
],
"x-discord-union": "oneOf"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_channel_invite",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/CreateGroupDMInviteRequest"
},
{
"$ref": "#/components/schemas/CreateGuildInviteRequest"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_channel_invite",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/FriendInviteResponse"
},
{
"$ref": "#/components/schemas/GroupDMInviteResponse"
},
{
"$ref": "#/components/schemas/GuildInviteResponse"
}
],
"x-discord-union": "oneOf"
}
}
}
},
"204": {
"description": "204 response for create_channel_invite",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_messages",
"parameters": [
{
"name": "around",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "before",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
}
],
"responses": {
"200": {
"description": "200 response for list_messages",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_message",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageCreateRequest"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/MessageCreateRequest"
}
},
"multipart/form-data": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/MessageCreateRequest"
},
{
"type": "object",
"properties": {
"files[0]": {
"type": "string",
"contentEncoding": "binary"
},
"files[1]": {
"type": "string",
"contentEncoding": "binary"
},
"files[2]": {
"type": "string",
"contentEncoding": "binary"
},
"files[3]": {
"type": "string",
"contentEncoding": "binary"
},
"files[4]": {
"type": "string",
"contentEncoding": "binary"
},
"files[5]": {
"type": "string",
"contentEncoding": "binary"
},
"files[6]": {
"type": "string",
"contentEncoding": "binary"
},
"files[7]": {
"type": "string",
"contentEncoding": "binary"
},
"files[8]": {
"type": "string",
"contentEncoding": "binary"
},
"files[9]": {
"type": "string",
"contentEncoding": "binary"
}
}
}
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/bulk-delete": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "bulk_delete_messages",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"messages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"minItems": 2,
"maxItems": 100,
"uniqueItems": true
}
},
"required": [
"messages"
]
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for bulk_delete_messages",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/pins": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_pins",
"parameters": [
{
"name": "before",
"in": "query",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
}
],
"responses": {
"200": {
"description": "200 response for list_pins",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PinnedMessagesResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/pins/{message_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"put": {
"operationId": "create_pin",
"responses": {
"204": {
"description": "204 response for create_pin",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_pin",
"responses": {
"204": {
"description": "204 response for delete_pin",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/{message_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_message",
"responses": {
"200": {
"description": "200 response for get_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_message",
"responses": {
"204": {
"description": "204 response for delete_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_message",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageEditRequestPartial"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/MessageEditRequestPartial"
}
},
"multipart/form-data": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/MessageEditRequestPartial"
},
{
"type": "object",
"properties": {
"files[0]": {
"type": "string",
"contentEncoding": "binary"
},
"files[1]": {
"type": "string",
"contentEncoding": "binary"
},
"files[2]": {
"type": "string",
"contentEncoding": "binary"
},
"files[3]": {
"type": "string",
"contentEncoding": "binary"
},
"files[4]": {
"type": "string",
"contentEncoding": "binary"
},
"files[5]": {
"type": "string",
"contentEncoding": "binary"
},
"files[6]": {
"type": "string",
"contentEncoding": "binary"
},
"files[7]": {
"type": "string",
"contentEncoding": "binary"
},
"files[8]": {
"type": "string",
"contentEncoding": "binary"
},
"files[9]": {
"type": "string",
"contentEncoding": "binary"
}
}
}
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/{message_id}/crosspost": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "crosspost_message",
"responses": {
"200": {
"description": "200 response for crosspost_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/{message_id}/reactions": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"delete": {
"operationId": "delete_all_message_reactions",
"responses": {
"204": {
"description": "204 response for delete_all_message_reactions",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "emoji_name",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"get": {
"operationId": "list_message_reactions_by_emoji",
"parameters": [
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
{
"name": "type",
"in": "query",
"schema": {
"$ref": "#/components/schemas/ReactionTypes"
}
}
],
"responses": {
"200": {
"description": "200 response for list_message_reactions_by_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_all_message_reactions_by_emoji",
"responses": {
"204": {
"description": "204 response for delete_all_message_reactions_by_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/@me": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "emoji_name",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"put": {
"operationId": "add_my_message_reaction",
"responses": {
"204": {
"description": "204 response for add_my_message_reaction",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_my_message_reaction",
"responses": {
"204": {
"description": "204 response for delete_my_message_reaction",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/{message_id}/reactions/{emoji_name}/{user_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "emoji_name",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"delete": {
"operationId": "delete_user_message_reaction",
"responses": {
"204": {
"description": "204 response for delete_user_message_reaction",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/messages/{message_id}/threads": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "create_thread_from_message",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateTextThreadWithMessageRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_thread_from_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/permissions/{overwrite_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "overwrite_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"put": {
"operationId": "set_channel_permission_overwrite",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ChannelPermissionOverwrites"
}
]
},
"allow": {
"type": [
"integer",
"null"
]
},
"deny": {
"type": [
"integer",
"null"
]
}
}
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for set_channel_permission_overwrite",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_channel_permission_overwrite",
"responses": {
"204": {
"description": "204 response for delete_channel_permission_overwrite",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/pins": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "deprecated_list_pins",
"responses": {
"200": {
"description": "200 response for deprecated_list_pins",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/pins/{message_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"put": {
"operationId": "deprecated_create_pin",
"responses": {
"204": {
"description": "204 response for deprecated_create_pin",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "deprecated_delete_pin",
"responses": {
"204": {
"description": "204 response for deprecated_delete_pin",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/polls/{message_id}/answers/{answer_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "answer_id",
"in": "path",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"format": "int32"
},
"required": true
}
],
"get": {
"operationId": "get_answer_voters",
"parameters": [
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
}
],
"responses": {
"200": {
"description": "200 response for get_answer_voters",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PollAnswerDetailsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/polls/{message_id}/expire": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "poll_expire",
"responses": {
"200": {
"description": "200 response for poll_expire",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/recipients/{user_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"put": {
"operationId": "add_group_dm_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"access_token": {
"type": [
"string",
"null"
],
"maxLength": 152133
},
"nick": {
"type": [
"string",
"null"
],
"maxLength": 152133
}
}
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for add_group_dm_user",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
}
]
}
}
}
},
"204": {
"description": "204 response for add_group_dm_user",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_group_dm_user",
"responses": {
"204": {
"description": "204 response for delete_group_dm_user",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/send-soundboard-sound": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "send_soundboard_sound",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SoundboardSoundSendRequest"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for send_soundboard_sound",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/thread-members": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_thread_members",
"parameters": [
{
"name": "with_member",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"200": {
"description": "200 response for list_thread_members",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ThreadMemberResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/thread-members/@me": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"put": {
"operationId": "join_thread",
"responses": {
"204": {
"description": "204 response for join_thread",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "leave_thread",
"responses": {
"204": {
"description": "204 response for leave_thread",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/thread-members/{user_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_thread_member",
"parameters": [
{
"name": "with_member",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for get_thread_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadMemberResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"put": {
"operationId": "add_thread_member",
"responses": {
"204": {
"description": "204 response for add_thread_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_thread_member",
"responses": {
"204": {
"description": "204 response for delete_thread_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/threads": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "create_thread",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/CreateForumThreadRequest"
},
{
"$ref": "#/components/schemas/CreateTextThreadWithoutMessageRequest"
}
],
"x-discord-union": "oneOf"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/CreateForumThreadRequest"
},
{
"$ref": "#/components/schemas/CreateTextThreadWithoutMessageRequest"
}
],
"x-discord-union": "oneOf"
}
},
"multipart/form-data": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/CreateForumThreadRequest"
},
{
"$ref": "#/components/schemas/CreateTextThreadWithoutMessageRequest"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_thread",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreatedThreadResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/threads/archived/private": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_private_archived_threads",
"parameters": [
{
"name": "before",
"in": "query",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 2,
"maximum": 100
}
}
],
"responses": {
"200": {
"description": "200 response for list_private_archived_threads",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/threads/archived/public": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_public_archived_threads",
"parameters": [
{
"name": "before",
"in": "query",
"schema": {
"type": "string",
"format": "date-time"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 2,
"maximum": 100
}
}
],
"responses": {
"200": {
"description": "200 response for list_public_archived_threads",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/threads/search": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "thread_search",
"parameters": [
{
"name": "name",
"in": "query",
"schema": {
"type": "string",
"maxLength": 100
}
},
{
"name": "slop",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
{
"name": "min_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "max_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "tag",
"in": "query",
"schema": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"maxItems": 20,
"uniqueItems": true
}
]
}
},
{
"name": "tag_setting",
"in": "query",
"schema": {
"$ref": "#/components/schemas/ThreadSearchTagSetting"
}
},
{
"name": "archived",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "sort_by",
"in": "query",
"schema": {
"$ref": "#/components/schemas/ThreadSortingMode"
}
},
{
"name": "sort_order",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SortingOrder"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 25
}
},
{
"name": "offset",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 9975
}
}
],
"responses": {
"200": {
"description": "200 response for thread_search",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadSearchResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/typing": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "trigger_typing_indicator",
"responses": {
"200": {
"description": "200 response for trigger_typing_indicator",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TypingIndicatorResponse"
}
}
}
},
"204": {
"description": "204 response for trigger_typing_indicator",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/users/@me/threads/archived/private": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_my_private_archived_threads",
"parameters": [
{
"name": "before",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 2,
"maximum": 100
}
}
],
"responses": {
"200": {
"description": "200 response for list_my_private_archived_threads",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/channels/{channel_id}/webhooks": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_channel_webhooks",
"responses": {
"200": {
"description": "200 response for list_channel_webhooks",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationIncomingWebhookResponse"
},
{
"$ref": "#/components/schemas/ChannelFollowerWebhookResponse"
},
{
"$ref": "#/components/schemas/GuildIncomingWebhookResponse"
}
]
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_webhook",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"avatar": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
}
},
"required": [
"name"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildIncomingWebhookResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/gateway": {
"get": {
"operationId": "get_gateway",
"responses": {
"200": {
"description": "200 response for get_gateway",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GatewayResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/gateway/bot": {
"get": {
"operationId": "get_bot_gateway",
"responses": {
"200": {
"description": "200 response for get_bot_gateway",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GatewayBotResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds": {
"post": {
"operationId": "create_guild",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildCreateRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/templates/{code}": {
"parameters": [
{
"name": "code",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"get": {
"operationId": "get_guild_template",
"responses": {
"200": {
"description": "200 response for get_guild_template",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildTemplateResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_guild_from_template",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"icon": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
}
},
"required": [
"name"
]
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_guild_from_template",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild",
"parameters": [
{
"name": "with_counts",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for get_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildWithCountsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild",
"responses": {
"204": {
"description": "204 response for delete_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildPatchRequestPartial"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/audit-logs": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_audit_log_entries",
"parameters": [
{
"name": "user_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "target_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "action_type",
"in": "query",
"schema": {
"type": "integer"
}
},
{
"name": "before",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
}
],
"responses": {
"200": {
"description": "200 response for list_guild_audit_log_entries",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildAuditLogResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/auto-moderation/rules": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_auto_moderation_rules",
"responses": {
"200": {
"description": "200 response for list_auto_moderation_rules",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/DefaultKeywordRuleResponse"
},
{
"$ref": "#/components/schemas/KeywordRuleResponse"
},
{
"$ref": "#/components/schemas/MLSpamRuleResponse"
},
{
"$ref": "#/components/schemas/MentionSpamRuleResponse"
},
{
"$ref": "#/components/schemas/SpamLinkRuleResponse"
},
{
"type": "null"
}
]
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_auto_moderation_rule",
"requestBody": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/DefaultKeywordListUpsertRequest"
},
{
"$ref": "#/components/schemas/KeywordUpsertRequest"
},
{
"$ref": "#/components/schemas/MLSpamUpsertRequest"
},
{
"$ref": "#/components/schemas/MentionSpamUpsertRequest"
}
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_auto_moderation_rule",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/DefaultKeywordRuleResponse"
},
{
"$ref": "#/components/schemas/KeywordRuleResponse"
},
{
"$ref": "#/components/schemas/MLSpamRuleResponse"
},
{
"$ref": "#/components/schemas/MentionSpamRuleResponse"
},
{
"$ref": "#/components/schemas/SpamLinkRuleResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/auto-moderation/rules/{rule_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "rule_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_auto_moderation_rule",
"responses": {
"200": {
"description": "200 response for get_auto_moderation_rule",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/DefaultKeywordRuleResponse"
},
{
"$ref": "#/components/schemas/KeywordRuleResponse"
},
{
"$ref": "#/components/schemas/MLSpamRuleResponse"
},
{
"$ref": "#/components/schemas/MentionSpamRuleResponse"
},
{
"$ref": "#/components/schemas/SpamLinkRuleResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_auto_moderation_rule",
"responses": {
"204": {
"description": "204 response for delete_auto_moderation_rule",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_auto_moderation_rule",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/DefaultKeywordListUpsertRequestPartial"
},
{
"$ref": "#/components/schemas/KeywordUpsertRequestPartial"
},
{
"$ref": "#/components/schemas/MLSpamUpsertRequestPartial"
},
{
"$ref": "#/components/schemas/MentionSpamUpsertRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_auto_moderation_rule",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/DefaultKeywordRuleResponse"
},
{
"$ref": "#/components/schemas/KeywordRuleResponse"
},
{
"$ref": "#/components/schemas/MLSpamRuleResponse"
},
{
"$ref": "#/components/schemas/MentionSpamRuleResponse"
},
{
"$ref": "#/components/schemas/SpamLinkRuleResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/bans": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_bans",
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
{
"name": "before",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"200": {
"description": "200 response for list_guild_bans",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/GuildBanResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/bans/{user_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_ban",
"responses": {
"200": {
"description": "200 response for get_guild_ban",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildBanResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"put": {
"operationId": "ban_user_from_guild",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"delete_message_seconds": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 604800
},
"delete_message_days": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 7
}
}
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for ban_user_from_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "unban_user_from_guild",
"responses": {
"204": {
"description": "204 response for unban_user_from_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/bulk-ban": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "bulk_ban_users_from_guild",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"user_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"maxItems": 200,
"uniqueItems": true
},
"delete_message_seconds": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 604800
}
},
"required": [
"user_ids"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for bulk_ban_users_from_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BulkBanUsersResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/channels": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_channels",
"responses": {
"200": {
"description": "200 response for list_guild_channels",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": []
}
]
},
"post": {
"operationId": "create_guild_channel",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateGuildChannelRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_guild_channel",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildChannelResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "bulk_update_guild_channels",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"position": {
"type": [
"integer",
"null"
],
"minimum": 0,
"format": "int32"
},
"parent_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"lock_permissions": {
"type": [
"boolean",
"null"
]
}
}
}
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for bulk_update_guild_channels",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/emojis": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_emojis",
"responses": {
"200": {
"description": "200 response for list_guild_emojis",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/EmojiResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_guild_emoji",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 32
},
"image": {
"type": "string",
"contentEncoding": "base64"
},
"roles": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"maxItems": 1521,
"uniqueItems": true
}
},
"required": [
"name",
"image"
]
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_guild_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmojiResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/emojis/{emoji_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "emoji_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_emoji",
"responses": {
"200": {
"description": "200 response for get_guild_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmojiResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_emoji",
"responses": {
"204": {
"description": "204 response for delete_guild_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_emoji",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 32
},
"roles": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"maxItems": 1521,
"uniqueItems": true
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_emoji",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmojiResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/integrations": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_integrations",
"responses": {
"200": {
"description": "200 response for list_guild_integrations",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/DiscordIntegrationResponse"
},
{
"$ref": "#/components/schemas/ExternalConnectionIntegrationResponse"
},
{
"$ref": "#/components/schemas/GuildSubscriptionIntegrationResponse"
}
]
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/integrations/{integration_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "integration_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"delete": {
"operationId": "delete_guild_integration",
"responses": {
"204": {
"description": "204 response for delete_guild_integration",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/invites": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_invites",
"responses": {
"200": {
"description": "200 response for list_guild_invites",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"anyOf": [
{
"$ref": "#/components/schemas/FriendInviteResponse"
},
{
"$ref": "#/components/schemas/GroupDMInviteResponse"
},
{
"$ref": "#/components/schemas/GuildInviteResponse"
}
],
"x-discord-union": "oneOf"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/members": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_members",
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
{
"name": "after",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
}
}
],
"responses": {
"200": {
"description": "200 response for list_guild_members",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GuildMemberResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/members/@me": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"patch": {
"operationId": "update_my_guild_member",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"nick": {
"type": [
"string",
"null"
],
"maxLength": 32
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_my_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivateGuildMemberResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/members/search": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "search_guild_members",
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"required": true
},
{
"name": "query",
"in": "query",
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"required": true
}
],
"responses": {
"200": {
"description": "200 response for search_guild_members",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GuildMemberResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/members/{user_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_member",
"responses": {
"200": {
"description": "200 response for get_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildMemberResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"put": {
"operationId": "add_guild_member",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BotAddGuildMemberRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for add_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildMemberResponse"
}
}
}
},
"204": {
"description": "204 response for add_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_member",
"responses": {
"204": {
"description": "204 response for delete_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_member",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"nick": {
"type": [
"string",
"null"
],
"maxLength": 32
},
"roles": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"maxItems": 350,
"uniqueItems": true
},
"mute": {
"type": [
"boolean",
"null"
]
},
"deaf": {
"type": [
"boolean",
"null"
]
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"communication_disabled_until": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"flags": {
"type": [
"integer",
"null"
]
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildMemberResponse"
}
}
}
},
"204": {
"description": "204 response for update_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/members/{user_id}/roles/{role_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "role_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"put": {
"operationId": "add_guild_member_role",
"responses": {
"204": {
"description": "204 response for add_guild_member_role",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_member_role",
"responses": {
"204": {
"description": "204 response for delete_guild_member_role",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/mfa": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "set_guild_mfa_level",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"level": {
"$ref": "#/components/schemas/GuildMFALevel"
}
},
"required": [
"level"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for set_guild_mfa_level",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildMFALevelResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/new-member-welcome": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_new_member_welcome",
"responses": {
"200": {
"description": "200 response for get_guild_new_member_welcome",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildHomeSettingsResponse"
}
}
}
},
"204": {
"description": "204 response for get_guild_new_member_welcome",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/onboarding": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guilds_onboarding",
"responses": {
"200": {
"description": "200 response for get_guilds_onboarding",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserGuildOnboardingResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"put": {
"operationId": "put_guilds_onboarding",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateGuildOnboardingRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for put_guilds_onboarding",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildOnboardingResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/preview": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_preview",
"responses": {
"200": {
"description": "200 response for get_guild_preview",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildPreviewResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/prune": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "preview_prune_guild",
"parameters": [
{
"name": "days",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 30
}
},
{
"name": "include_roles",
"in": "query",
"schema": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"maxItems": 100,
"uniqueItems": true
}
]
}
}
],
"responses": {
"200": {
"description": "200 response for preview_prune_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildPruneResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "prune_guild",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"days": {
"type": [
"integer",
"null"
],
"minimum": 1,
"maximum": 30
},
"compute_prune_count": {
"type": [
"boolean",
"null"
]
},
"include_roles": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"maxItems": 100,
"uniqueItems": true
},
{
"type": "null"
}
]
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for prune_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildPruneResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/regions": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_voice_regions",
"responses": {
"200": {
"description": "200 response for list_guild_voice_regions",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/VoiceRegionResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/roles": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_roles",
"responses": {
"200": {
"description": "200 response for list_guild_roles",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GuildRoleResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_guild_role",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"maxLength": 100
},
"permissions": {
"type": [
"integer",
"null"
]
},
"color": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 16777215
},
"hoist": {
"type": [
"boolean",
"null"
]
},
"mentionable": {
"type": [
"boolean",
"null"
]
},
"icon": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
},
"unicode_emoji": {
"type": [
"string",
"null"
],
"maxLength": 100
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_guild_role",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildRoleResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "bulk_update_guild_roles",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"position": {
"type": [
"integer",
"null"
],
"format": "int32"
}
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for bulk_update_guild_roles",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GuildRoleResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/roles/{role_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "role_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_role",
"responses": {
"200": {
"description": "200 response for get_guild_role",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildRoleResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_role",
"responses": {
"204": {
"description": "204 response for delete_guild_role",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_role",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"maxLength": 100
},
"permissions": {
"type": [
"integer",
"null"
]
},
"color": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 16777215
},
"hoist": {
"type": [
"boolean",
"null"
]
},
"mentionable": {
"type": [
"boolean",
"null"
]
},
"icon": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
},
"unicode_emoji": {
"type": [
"string",
"null"
],
"maxLength": 100
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_role",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildRoleResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/scheduled-events": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_scheduled_events",
"parameters": [
{
"name": "with_user_count",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for list_guild_scheduled_events",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ExternalScheduledEventResponse"
},
{
"$ref": "#/components/schemas/StageScheduledEventResponse"
},
{
"$ref": "#/components/schemas/VoiceScheduledEventResponse"
}
]
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_guild_scheduled_event",
"requestBody": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ExternalScheduledEventCreateRequest"
},
{
"$ref": "#/components/schemas/StageScheduledEventCreateRequest"
},
{
"$ref": "#/components/schemas/VoiceScheduledEventCreateRequest"
}
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_guild_scheduled_event",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ExternalScheduledEventResponse"
},
{
"$ref": "#/components/schemas/StageScheduledEventResponse"
},
{
"$ref": "#/components/schemas/VoiceScheduledEventResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "guild_scheduled_event_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_scheduled_event",
"parameters": [
{
"name": "with_user_count",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for get_guild_scheduled_event",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ExternalScheduledEventResponse"
},
{
"$ref": "#/components/schemas/StageScheduledEventResponse"
},
{
"$ref": "#/components/schemas/VoiceScheduledEventResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_scheduled_event",
"responses": {
"204": {
"description": "204 response for delete_guild_scheduled_event",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_scheduled_event",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/ExternalScheduledEventPatchRequestPartial"
},
{
"$ref": "#/components/schemas/StageScheduledEventPatchRequestPartial"
},
{
"$ref": "#/components/schemas/VoiceScheduledEventPatchRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_scheduled_event",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ExternalScheduledEventResponse"
},
{
"$ref": "#/components/schemas/StageScheduledEventResponse"
},
{
"$ref": "#/components/schemas/VoiceScheduledEventResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}/users": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "guild_scheduled_event_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_scheduled_event_users",
"parameters": [
{
"name": "with_member",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
{
"name": "before",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"200": {
"description": "200 response for list_guild_scheduled_event_users",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ScheduledEventUserResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/soundboard-sounds": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_soundboard_sounds",
"responses": {
"200": {
"description": "200 response for list_guild_soundboard_sounds",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListGuildSoundboardSoundsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_guild_soundboard_sound",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SoundboardCreateRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_guild_soundboard_sound",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SoundboardSoundResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/soundboard-sounds/{sound_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "sound_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_soundboard_sound",
"responses": {
"200": {
"description": "200 response for get_guild_soundboard_sound",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SoundboardSoundResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_soundboard_sound",
"responses": {
"204": {
"description": "204 response for delete_guild_soundboard_sound",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_soundboard_sound",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SoundboardPatchRequestPartial"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_soundboard_sound",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SoundboardSoundResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/stickers": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_stickers",
"responses": {
"200": {
"description": "200 response for list_guild_stickers",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GuildStickerResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_guild_sticker",
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 30
},
"tags": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 100
},
"file": {
"type": "string",
"contentEncoding": "binary"
}
},
"required": [
"name",
"tags",
"file"
]
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_guild_sticker",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildStickerResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/stickers/{sticker_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "sticker_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_sticker",
"responses": {
"200": {
"description": "200 response for get_guild_sticker",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildStickerResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_sticker",
"responses": {
"204": {
"description": "204 response for delete_guild_sticker",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_sticker",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 30
},
"tags": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 100
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_sticker",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildStickerResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/templates": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "list_guild_templates",
"responses": {
"200": {
"description": "200 response for list_guild_templates",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/GuildTemplateResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"post": {
"operationId": "create_guild_template",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 120
}
},
"required": [
"name"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_guild_template",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildTemplateResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/templates/{code}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "code",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"put": {
"operationId": "sync_guild_template",
"responses": {
"200": {
"description": "200 response for sync_guild_template",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildTemplateResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_guild_template",
"responses": {
"200": {
"description": "200 response for delete_guild_template",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildTemplateResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_template",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 120
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_template",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildTemplateResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/threads/active": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_active_guild_threads",
"responses": {
"200": {
"description": "200 response for get_active_guild_threads",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/vanity-url": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_vanity_url",
"responses": {
"200": {
"description": "200 response for get_guild_vanity_url",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VanityURLResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/voice-states/@me": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_self_voice_state",
"responses": {
"200": {
"description": "200 response for get_self_voice_state",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceStateResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_self_voice_state",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"request_to_speak_timestamp": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"suppress": {
"type": [
"boolean",
"null"
]
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
}
}
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for update_self_voice_state",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/voice-states/{user_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_voice_state",
"responses": {
"200": {
"description": "200 response for get_voice_state",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VoiceStateResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_voice_state",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"suppress": {
"type": [
"boolean",
"null"
]
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
}
}
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for update_voice_state",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/webhooks": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_webhooks",
"responses": {
"200": {
"description": "200 response for get_guild_webhooks",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationIncomingWebhookResponse"
},
{
"$ref": "#/components/schemas/ChannelFollowerWebhookResponse"
},
{
"$ref": "#/components/schemas/GuildIncomingWebhookResponse"
}
]
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/welcome-screen": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_welcome_screen",
"responses": {
"200": {
"description": "200 response for get_guild_welcome_screen",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildWelcomeScreenResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_welcome_screen",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WelcomeScreenPatchRequestPartial"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_welcome_screen",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildWelcomeScreenResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/widget": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_widget_settings",
"responses": {
"200": {
"description": "200 response for get_guild_widget_settings",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WidgetSettingsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_guild_widget_settings",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"enabled": {
"type": [
"boolean",
"null"
]
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_guild_widget_settings",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WidgetSettingsResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/widget.json": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_widget",
"responses": {
"200": {
"description": "200 response for get_guild_widget",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WidgetResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/widget.png": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_guild_widget_png",
"parameters": [
{
"name": "style",
"in": "query",
"schema": {
"$ref": "#/components/schemas/WidgetImageStyles"
}
}
],
"responses": {
"200": {
"description": "200 response for get_guild_widget_png",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"image/png": {
"schema": {
"type": "string",
"contentEncoding": "binary"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/interactions/{interaction_id}/{interaction_token}/callback": {
"parameters": [
{
"name": "interaction_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "interaction_token",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"post": {
"operationId": "create_interaction_response",
"parameters": [
{
"name": "with_response",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/ApplicationCommandAutocompleteCallbackRequest"
},
{
"$ref": "#/components/schemas/CreateMessageInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/LaunchActivityInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/ModalInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/PongInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/UpdateMessageInteractionCallbackRequest"
}
],
"x-discord-union": "oneOf"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/ApplicationCommandAutocompleteCallbackRequest"
},
{
"$ref": "#/components/schemas/CreateMessageInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/LaunchActivityInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/ModalInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/PongInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/UpdateMessageInteractionCallbackRequest"
}
],
"x-discord-union": "oneOf"
}
},
"multipart/form-data": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/ApplicationCommandAutocompleteCallbackRequest"
},
{
"$ref": "#/components/schemas/CreateMessageInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/LaunchActivityInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/ModalInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/PongInteractionCallbackRequest"
},
{
"$ref": "#/components/schemas/UpdateMessageInteractionCallbackRequest"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_interaction_response",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InteractionCallbackResponse"
}
}
}
},
"204": {
"description": "204 response for create_interaction_response",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/invites/{code}": {
"parameters": [
{
"name": "code",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"get": {
"operationId": "invite_resolve",
"parameters": [
{
"name": "with_counts",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "guild_scheduled_event_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"200": {
"description": "200 response for invite_resolve",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/FriendInviteResponse"
},
{
"$ref": "#/components/schemas/GroupDMInviteResponse"
},
{
"$ref": "#/components/schemas/GuildInviteResponse"
}
],
"x-discord-union": "oneOf"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"delete": {
"operationId": "invite_revoke",
"responses": {
"200": {
"description": "200 response for invite_revoke",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/FriendInviteResponse"
},
{
"$ref": "#/components/schemas/GroupDMInviteResponse"
},
{
"$ref": "#/components/schemas/GuildInviteResponse"
}
],
"x-discord-union": "oneOf"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/lobbies": {
"put": {
"operationId": "create_or_join_lobby",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"idle_timeout_seconds": {
"type": [
"integer",
"null"
],
"minimum": 5,
"maximum": 604800,
"format": "int32"
},
"lobby_metadata": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"maxLength": 1024
},
"maxProperties": 25
},
"member_metadata": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"maxLength": 1024
},
"maxProperties": 25
},
"secret": {
"type": "string",
"maxLength": 250
}
},
"required": [
"secret"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_or_join_lobby",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LobbyResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": []
}
]
},
"post": {
"operationId": "create_lobby",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"idle_timeout_seconds": {
"type": [
"integer",
"null"
],
"minimum": 5,
"maximum": 604800,
"format": "int32"
},
"members": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/LobbyMemberRequest"
},
"maxItems": 25
},
"metadata": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"maxLength": 1024
},
"maxProperties": 25
}
}
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_lobby",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LobbyResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/lobbies/{lobby_id}": {
"parameters": [
{
"name": "lobby_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_lobby",
"responses": {
"200": {
"description": "200 response for get_lobby",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LobbyResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "edit_lobby",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"idle_timeout_seconds": {
"type": [
"integer",
"null"
],
"minimum": 5,
"maximum": 604800,
"format": "int32"
},
"metadata": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"maxLength": 1024
},
"maxProperties": 25
},
"members": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/LobbyMemberRequest"
},
"maxItems": 25
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for edit_lobby",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LobbyResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/lobbies/{lobby_id}/channel-linking": {
"parameters": [
{
"name": "lobby_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"patch": {
"operationId": "edit_lobby_channel_link",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for edit_lobby_channel_link",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LobbyResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": []
}
]
}
},
"/lobbies/{lobby_id}/members/@me": {
"parameters": [
{
"name": "lobby_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"delete": {
"operationId": "leave_lobby",
"responses": {
"204": {
"description": "204 response for leave_lobby",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": []
}
]
}
},
"/lobbies/{lobby_id}/members/bulk": {
"parameters": [
{
"name": "lobby_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"post": {
"operationId": "bulk_update_lobby_members",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/BulkLobbyMemberRequest"
},
"minItems": 1,
"maxItems": 25
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for bulk_update_lobby_members",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/LobbyMemberResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/lobbies/{lobby_id}/members/{user_id}": {
"parameters": [
{
"name": "lobby_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"put": {
"operationId": "add_lobby_member",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"metadata": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"maxLength": 1024
},
"maxProperties": 25
},
"flags": {
"oneOf": [
{
"type": "null"
},
{
"type": "integer",
"enum": [
1
]
}
]
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for add_lobby_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LobbyMemberResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_lobby_member",
"responses": {
"204": {
"description": "204 response for delete_lobby_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/lobbies/{lobby_id}/messages": {
"parameters": [
{
"name": "lobby_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_lobby_messages",
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 200
}
}
],
"responses": {
"200": {
"description": "200 response for get_lobby_messages",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/LobbyMessageResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": []
}
]
},
"post": {
"operationId": "create_lobby_message",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SDKMessageRequest"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/SDKMessageRequest"
}
},
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/SDKMessageRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "201 response for create_lobby_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LobbyMessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": []
}
]
}
},
"/oauth2/@me": {
"get": {
"operationId": "get_my_oauth2_authorization",
"responses": {
"200": {
"description": "200 response for get_my_oauth2_authorization",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuth2GetAuthorizationResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"activities.invites.write",
"activities.read",
"activities.write",
"applications.builds.read",
"applications.builds.upload",
"applications.commands",
"applications.commands.permissions.update",
"applications.commands.update",
"applications.entitlements",
"applications.store.update",
"bot",
"connections",
"dm_channels.read",
"email",
"gdm.join",
"guilds",
"guilds.join",
"guilds.members.read",
"identify",
"messages.read",
"openid",
"relationships.read",
"role_connections.write",
"rpc",
"rpc.activities.write",
"rpc.notifications.read",
"rpc.screenshare.read",
"rpc.screenshare.write",
"rpc.video.read",
"rpc.video.write",
"rpc.voice.read",
"rpc.voice.write",
"voice",
"webhook.incoming"
]
}
]
}
},
"/oauth2/applications/@me": {
"get": {
"operationId": "get_my_oauth2_application",
"responses": {
"200": {
"description": "200 response for get_my_oauth2_application",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivateApplicationResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/oauth2/keys": {
"get": {
"operationId": "get_public_keys",
"responses": {
"200": {
"description": "200 response for get_public_keys",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuth2GetKeys"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/oauth2/userinfo": {
"get": {
"operationId": "get_openid_connect_userinfo",
"responses": {
"200": {
"description": "200 response for get_openid_connect_userinfo",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuth2GetOpenIDConnectUserInfoResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"openid"
]
}
]
}
},
"/partner-sdk/provisional-accounts/unmerge": {
"post": {
"operationId": "partner_sdk_unmerge_provisional_account",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"client_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"client_secret": {
"type": [
"string",
"null"
],
"maxLength": 1024
},
"external_auth_token": {
"type": "string",
"maxLength": 10240
},
"external_auth_type": {
"$ref": "#/components/schemas/ApplicationIdentityProviderAuthType"
}
},
"required": [
"client_id",
"external_auth_token",
"external_auth_type"
]
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for partner_sdk_unmerge_provisional_account",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/partner-sdk/token": {
"post": {
"operationId": "partner_sdk_token",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"client_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"client_secret": {
"type": [
"string",
"null"
],
"maxLength": 1024
},
"external_auth_token": {
"type": "string",
"maxLength": 10240
},
"external_auth_type": {
"$ref": "#/components/schemas/ApplicationIdentityProviderAuthType"
}
},
"required": [
"client_id",
"external_auth_token",
"external_auth_type"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for partner_sdk_token",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProvisionalTokenResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/soundboard-default-sounds": {
"get": {
"operationId": "get_soundboard_default_sounds",
"responses": {
"200": {
"description": "200 response for get_soundboard_default_sounds",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SoundboardSoundResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/stage-instances": {
"post": {
"operationId": "create_stage_instance",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"topic": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"privacy_level": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/StageInstancesPrivacyLevels"
}
]
},
"guild_scheduled_event_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"send_start_notification": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"topic",
"channel_id"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_stage_instance",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StageInstanceResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/stage-instances/{channel_id}": {
"parameters": [
{
"name": "channel_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_stage_instance",
"responses": {
"200": {
"description": "200 response for get_stage_instance",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StageInstanceResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_stage_instance",
"responses": {
"204": {
"description": "204 response for delete_stage_instance",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_stage_instance",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"topic": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"privacy_level": {
"$ref": "#/components/schemas/StageInstancesPrivacyLevels"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_stage_instance",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StageInstanceResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/sticker-packs": {
"get": {
"operationId": "list_sticker_packs",
"responses": {
"200": {
"description": "200 response for list_sticker_packs",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StickerPackCollectionResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/sticker-packs/{pack_id}": {
"parameters": [
{
"name": "pack_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_sticker_pack",
"responses": {
"200": {
"description": "200 response for get_sticker_pack",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StickerPackResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/stickers/{sticker_id}": {
"parameters": [
{
"name": "sticker_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_sticker",
"responses": {
"200": {
"description": "200 response for get_sticker",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildStickerResponse"
},
{
"$ref": "#/components/schemas/StandardStickerResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/users/@me": {
"get": {
"operationId": "get_my_user",
"responses": {
"200": {
"description": "200 response for get_my_user",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserPIIResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"identify"
]
}
]
},
"patch": {
"operationId": "update_my_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BotAccountPatchRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_my_user",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserPIIResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/users/@me/applications/{application_id}/role-connection": {
"parameters": [
{
"name": "application_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_application_user_role_connection",
"responses": {
"200": {
"description": "200 response for get_application_user_role_connection",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationUserRoleConnectionResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"OAuth2": [
"role_connections.write"
]
}
]
},
"put": {
"operationId": "update_application_user_role_connection",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateApplicationUserRoleConnectionRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_application_user_role_connection",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApplicationUserRoleConnectionResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"OAuth2": [
"role_connections.write"
]
}
]
},
"delete": {
"operationId": "delete_application_user_role_connection",
"responses": {
"204": {
"description": "204 response for delete_application_user_role_connection",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"OAuth2": [
"role_connections.write"
]
}
]
}
},
"/users/@me/channels": {
"post": {
"operationId": "create_dm",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreatePrivateChannelRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for create_dm",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/users/@me/connections": {
"get": {
"operationId": "list_my_connections",
"responses": {
"200": {
"description": "200 response for list_my_connections",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ConnectedAccountResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"connections"
]
}
]
}
},
"/users/@me/guilds": {
"get": {
"operationId": "list_my_guilds",
"parameters": [
{
"name": "before",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "after",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 200
}
},
{
"name": "with_counts",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "200 response for list_my_guilds",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/MyGuildResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
},
{
"OAuth2": [
"guilds"
]
}
]
}
},
"/users/@me/guilds/{guild_id}": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"delete": {
"operationId": "leave_guild",
"responses": {
"204": {
"description": "204 response for leave_guild",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/users/@me/guilds/{guild_id}/member": {
"parameters": [
{
"name": "guild_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_my_guild_member",
"responses": {
"200": {
"description": "200 response for get_my_guild_member",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivateGuildMemberResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"OAuth2": [
"guilds.members.read"
]
}
]
}
},
"/users/{user_id}": {
"parameters": [
{
"name": "user_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_user",
"responses": {
"200": {
"description": "200 response for get_user",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/voice/regions": {
"get": {
"operationId": "list_voice_regions",
"responses": {
"200": {
"description": "200 response for list_voice_regions",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/VoiceRegionResponse"
}
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/webhooks/{webhook_id}": {
"parameters": [
{
"name": "webhook_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_webhook",
"responses": {
"200": {
"description": "200 response for get_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationIncomingWebhookResponse"
},
{
"$ref": "#/components/schemas/ChannelFollowerWebhookResponse"
},
{
"$ref": "#/components/schemas/GuildIncomingWebhookResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_webhook",
"responses": {
"204": {
"description": "204 response for delete_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_webhook",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"avatar": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationIncomingWebhookResponse"
},
{
"$ref": "#/components/schemas/ChannelFollowerWebhookResponse"
},
{
"$ref": "#/components/schemas/GuildIncomingWebhookResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/webhooks/{webhook_id}/{webhook_token}": {
"parameters": [
{
"name": "webhook_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "webhook_token",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"get": {
"operationId": "get_webhook_by_token",
"responses": {
"200": {
"description": "200 response for get_webhook_by_token",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationIncomingWebhookResponse"
},
{
"$ref": "#/components/schemas/ChannelFollowerWebhookResponse"
},
{
"$ref": "#/components/schemas/GuildIncomingWebhookResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"post": {
"operationId": "execute_webhook",
"parameters": [
{
"name": "wait",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "with_components",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/IncomingWebhookRequestPartial"
},
{
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
}
],
"x-discord-union": "oneOf"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/IncomingWebhookRequestPartial"
},
{
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
}
],
"x-discord-union": "oneOf"
}
},
"multipart/form-data": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/IncomingWebhookRequestPartial"
},
{
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for execute_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"204": {
"description": "204 response for execute_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_webhook_by_token",
"responses": {
"204": {
"description": "204 response for delete_webhook_by_token",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_webhook_by_token",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"avatar": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_webhook_by_token",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationIncomingWebhookResponse"
},
{
"$ref": "#/components/schemas/ChannelFollowerWebhookResponse"
},
{
"$ref": "#/components/schemas/GuildIncomingWebhookResponse"
}
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/webhooks/{webhook_id}/{webhook_token}/github": {
"parameters": [
{
"name": "webhook_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "webhook_token",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"post": {
"operationId": "execute_github_compatible_webhook",
"parameters": [
{
"name": "wait",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GithubWebhook"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "204 response for execute_github_compatible_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/webhooks/{webhook_id}/{webhook_token}/messages/@original": {
"parameters": [
{
"name": "webhook_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "webhook_token",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"get": {
"operationId": "get_original_webhook_message",
"parameters": [
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"200": {
"description": "200 response for get_original_webhook_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_original_webhook_message",
"parameters": [
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"204": {
"description": "204 response for delete_original_webhook_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_original_webhook_message",
"parameters": [
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "with_components",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
}
},
"multipart/form-data": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
},
{
"type": "object",
"properties": {
"files[0]": {
"type": "string",
"contentEncoding": "binary"
},
"files[1]": {
"type": "string",
"contentEncoding": "binary"
},
"files[2]": {
"type": "string",
"contentEncoding": "binary"
},
"files[3]": {
"type": "string",
"contentEncoding": "binary"
},
"files[4]": {
"type": "string",
"contentEncoding": "binary"
},
"files[5]": {
"type": "string",
"contentEncoding": "binary"
},
"files[6]": {
"type": "string",
"contentEncoding": "binary"
},
"files[7]": {
"type": "string",
"contentEncoding": "binary"
},
"files[8]": {
"type": "string",
"contentEncoding": "binary"
},
"files[9]": {
"type": "string",
"contentEncoding": "binary"
}
}
}
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_original_webhook_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/webhooks/{webhook_id}/{webhook_token}/messages/{message_id}": {
"parameters": [
{
"name": "webhook_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "webhook_token",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
},
{
"name": "message_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
}
],
"get": {
"operationId": "get_webhook_message",
"parameters": [
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"200": {
"description": "200 response for get_webhook_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_webhook_message",
"parameters": [
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"responses": {
"204": {
"description": "204 response for delete_webhook_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_webhook_message",
"parameters": [
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
{
"name": "with_components",
"in": "query",
"schema": {
"type": "boolean"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
}
},
"multipart/form-data": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/IncomingWebhookUpdateRequestPartial"
},
{
"type": "object",
"properties": {
"files[0]": {
"type": "string",
"contentEncoding": "binary"
},
"files[1]": {
"type": "string",
"contentEncoding": "binary"
},
"files[2]": {
"type": "string",
"contentEncoding": "binary"
},
"files[3]": {
"type": "string",
"contentEncoding": "binary"
},
"files[4]": {
"type": "string",
"contentEncoding": "binary"
},
"files[5]": {
"type": "string",
"contentEncoding": "binary"
},
"files[6]": {
"type": "string",
"contentEncoding": "binary"
},
"files[7]": {
"type": "string",
"contentEncoding": "binary"
},
"files[8]": {
"type": "string",
"contentEncoding": "binary"
},
"files[9]": {
"type": "string",
"contentEncoding": "binary"
}
}
}
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_webhook_message",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageResponse"
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
},
"/webhooks/{webhook_id}/{webhook_token}/slack": {
"parameters": [
{
"name": "webhook_id",
"in": "path",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
},
"required": true
},
{
"name": "webhook_token",
"in": "path",
"schema": {
"type": "string",
"maxLength": 152133
},
"required": true
}
],
"post": {
"operationId": "execute_slack_compatible_webhook",
"parameters": [
{
"name": "wait",
"in": "query",
"schema": {
"type": "boolean"
}
},
{
"name": "thread_id",
"in": "query",
"schema": {
"$ref": "#/components/schemas/SnowflakeType"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SlackWebhook"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/SlackWebhook"
}
},
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/SlackWebhook"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for execute_slack_compatible_webhook",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/X-RateLimit-Reset"
},
"X-RateLimit-Reset-After": {
"$ref": "#/components/headers/X-RateLimit-Reset-After"
},
"X-RateLimit-Bucket": {
"$ref": "#/components/headers/X-RateLimit-Bucket"
}
},
"content": {
"application/json": {
"schema": {
"type": [
"string",
"null"
]
}
}
}
},
"429": {
"$ref": "#/components/responses/ClientRatelimitedResponse"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{},
{
"BotToken": []
}
]
}
}
},
"components": {
"schemas": {
"AccountResponse": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"required": [
"id"
]
},
"ActionRowComponentForMessageRequest": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
1
],
"allOf": [
{
"$ref": "#/components/schemas/MessageComponentTypes"
}
],
"format": "int32"
},
"components": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ButtonComponentForMessageRequest"
},
{
"$ref": "#/components/schemas/ChannelSelectComponentForMessageRequest"
},
{
"$ref": "#/components/schemas/MentionableSelectComponentForMessageRequest"
},
{
"$ref": "#/components/schemas/RoleSelectComponentForMessageRequest"
},
{
"$ref": "#/components/schemas/StringSelectComponentForMessageRequest"
},
{
"$ref": "#/components/schemas/UserSelectComponentForMessageRequest"
}
]
},
"minItems": 1,
"maxItems": 5
}
},
"required": [
"type",
"components"
]
},
"ActionRowComponentForModalRequest": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
1
],
"allOf": [
{
"$ref": "#/components/schemas/MessageComponentTypes"
}
],
"format": "int32"
},
"components": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TextInputComponentForModalRequest"
},
"minItems": 1,
"maxItems": 5
}
},
"required": [
"type",
"components"
]
},
"ActionRowComponentResponse": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
1
],
"allOf": [
{
"$ref": "#/components/schemas/MessageComponentTypes"
}
],
"format": "int32"
},
"id": {
"type": "integer",
"format": "int32"
},
"components": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ButtonComponentResponse"
},
{
"$ref": "#/components/schemas/ChannelSelectComponentResponse"
},
{
"$ref": "#/components/schemas/MentionableSelectComponentResponse"
},
{
"$ref": "#/components/schemas/RoleSelectComponentResponse"
},
{
"$ref": "#/components/schemas/StringSelectComponentResponse"
},
{
"$ref": "#/components/schemas/TextInputComponentResponse"
},
{
"$ref": "#/components/schemas/UserSelectComponentResponse"
}
]
}
}
},
"required": [
"type",
"id"
]
},
"ActivitiesAttachmentResponse": {
"type": "object",
"properties": {
"attachment": {
"$ref": "#/components/schemas/AttachmentResponse"
}
},
"required": [
"attachment"
]
},
"AfkTimeouts": {
"type": "integer",
"oneOf": [
{
"title": "ONE_MINUTE",
"const": 60
},
{
"title": "FIVE_MINUTES",
"const": 300
},
{
"title": "FIFTEEN_MINUTES",
"const": 900
},
{
"title": "THIRTY_MINUTES",
"const": 1800
},
{
"title": "ONE_HOUR",
"const": 3600
}
],
"format": "int32"
},
"AllowedMentionTypes": {
"type": "string",
"oneOf": [
{
"title": "USERS",
"description": "Controls role mentions",
"const": "users"
},
{
"title": "ROLES",
"description": "Controls user mentions",
"const": "roles"
},
{
"title": "EVERYONE",
"description": "Controls @everyone and @here mentions",
"const": "everyone"
}
]
},
"ApplicationCommandAttachmentOption": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
11
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"required": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandAttachmentOptionResponse": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
11
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string"
},
"name_localized": {
"type": [
"string",
"null"
]
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"description": {
"type": "string"
},
"description_localized": {
"type": [
"string",
"null"
]
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"required": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandAutocompleteCallbackRequest": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
8
],
"allOf": [
{
"$ref": "#/components/schemas/InteractionCallbackTypes"
}
],
"format": "int32"
},
"data": {
"anyOf": [
{
"$ref": "#/components/schemas/InteractionApplicationCommandAutocompleteCallbackIntegerData"
},
{
"$ref": "#/components/schemas/InteractionApplicationCommandAutocompleteCallbackNumberData"
},
{
"$ref": "#/components/schemas/InteractionApplicationCommandAutocompleteCallbackStringData"
}
],
"x-discord-union": "oneOf"
}
},
"required": [
"type",
"data"
]
},
"ApplicationCommandBooleanOption": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
5
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"required": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandBooleanOptionResponse": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
5
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string"
},
"name_localized": {
"type": [
"string",
"null"
]
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"description": {
"type": "string"
},
"description_localized": {
"type": [
"string",
"null"
]
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"required": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandChannelOption": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
7
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"required": {
"type": [
"boolean",
"null"
]
},
"channel_types": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ChannelTypes"
},
"uniqueItems": true
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandChannelOptionResponse": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
7
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string"
},
"name_localized": {
"type": [
"string",
"null"
]
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"description": {
"type": "string"
},
"description_localized": {
"type": [
"string",
"null"
]
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"required": {
"type": [
"boolean",
"null"
]
},
"channel_types": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ChannelTypes"
},
"uniqueItems": true
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandCreateRequest": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"options": {
"type": [
"array",
"null"
],
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ApplicationCommandAttachmentOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandBooleanOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandChannelOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandIntegerOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandMentionableOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandNumberOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandRoleOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandStringOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandSubcommandGroupOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandSubcommandOption"
},
{
"$ref": "#/components/schemas/ApplicationCommandUserOption"
}
]
},
"maxItems": 25
},
"default_member_permissions": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 4503599627370495
},
"dm_permission": {
"type": [
"boolean",
"null"
]
},
"contexts": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/InteractionContextType"
},
"minItems": 1,
"uniqueItems": true
},
"integration_types": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationIntegrationType"
},
"minItems": 1,
"uniqueItems": true
},
"handler": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationCommandHandler"
}
]
},
"type": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ApplicationCommandType"
}
]
}
},
"required": [
"name"
]
},
"ApplicationCommandHandler": {
"type": "integer",
"oneOf": [],
"format": "int32"
},
"ApplicationCommandIntegerOption": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
4
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"required": {
"type": [
"boolean",
"null"
]
},
"autocomplete": {
"type": [
"boolean",
"null"
]
},
"choices": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandOptionIntegerChoice"
},
"maxItems": 25
},
"min_value": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/Int53Type"
}
]
},
"max_value": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/Int53Type"
}
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandIntegerOptionResponse": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
4
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string"
},
"name_localized": {
"type": [
"string",
"null"
]
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"description": {
"type": "string"
},
"description_localized": {
"type": [
"string",
"null"
]
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"required": {
"type": [
"boolean",
"null"
]
},
"autocomplete": {
"type": [
"boolean",
"null"
]
},
"choices": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandOptionIntegerChoiceResponse"
}
},
"min_value": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/Int53Type"
}
]
},
"max_value": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/Int53Type"
}
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandInteractionMetadataResponse": {
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": {
"type": "integer",
"enum": [
2
],
"allOf": [
{
"$ref": "#/components/schemas/InteractionTypes"
}
],
"format": "int32"
},
"user": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/UserResponse"
}
]
},
"authorizing_integration_owners": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/SnowflakeType"
}
},
"original_response_message_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"target_user": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/UserResponse"
}
]
},
"target_message_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
}
},
"required": [
"id",
"type",
"authorizing_integration_owners"
]
},
"ApplicationCommandMentionableOption": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
9
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"required": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandMentionableOptionResponse": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
9
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string"
},
"name_localized": {
"type": [
"string",
"null"
]
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"description": {
"type": "string"
},
"description_localized": {
"type": [
"string",
"null"
]
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"required": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandNumberOption": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
10
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"name_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"maxProperties": 34
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description_localizations": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxProperties": 34
},
"required": {
"type": [
"boolean",
"null"
]
},
"autocomplete": {
"type": [
"boolean",
"null"
]
},
"choices": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ApplicationCommandOptionNumberChoice"
},
"maxItems": 25
},
"min_value": {
"type": [
"number",
"null"
],
"format": "double"
},
"max_value": {
"type": [
"number",
"null"
],
"format": "double"
}
},
"required": [
"type",
"name",
"description"
]
},
"ApplicationCommandNumberOptionResponse": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"enum": [
10
],
"allOf": [
{
"$ref": "#/components/schemas/ApplicationCommandOptionType"
}
],
"format": "int32"
},