mirror of
https://github.com/discord/discord-api-spec.git
synced 2026-05-01 06:20:33 -04:00
Automated spec update (210211)
This commit is contained in:
parent
eb04c76f20
commit
2f52db0775
2 changed files with 148 additions and 0 deletions
|
|
@ -5359,6 +5359,75 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/channels/{channel_id}/voice-status": {
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "channel_id",
|
||||||
|
"in": "path",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/SnowflakeType"
|
||||||
|
},
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"put": {
|
||||||
|
"description": "Set a voice channel's status.",
|
||||||
|
"operationId": "update_voice_channel_status",
|
||||||
|
"requestBody": {
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"description": "The new voice channel status",
|
||||||
|
"maxLength": 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"204": {
|
||||||
|
"description": "204 response for update_voice_channel_status",
|
||||||
|
"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}/webhooks": {
|
"/channels/{channel_id}/webhooks": {
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
|
@ -16016,6 +16085,11 @@
|
||||||
"description": "New guild channel created",
|
"description": "New guild channel created",
|
||||||
"const": "CHANNEL_CREATE"
|
"const": "CHANNEL_CREATE"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "VOICE_CHANNEL_STATUS_UPDATE",
|
||||||
|
"description": "Voice channel status was updated",
|
||||||
|
"const": "VOICE_CHANNEL_STATUS_UPDATE"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "CHANNEL_UPDATE",
|
"title": "CHANNEL_UPDATE",
|
||||||
"description": "Channel was updated",
|
"description": "Channel was updated",
|
||||||
|
|
|
||||||
|
|
@ -5359,6 +5359,75 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/channels/{channel_id}/voice-status": {
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "channel_id",
|
||||||
|
"in": "path",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/SnowflakeType"
|
||||||
|
},
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"put": {
|
||||||
|
"description": "Set a voice channel's status.",
|
||||||
|
"operationId": "update_voice_channel_status",
|
||||||
|
"requestBody": {
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"description": "The new voice channel status",
|
||||||
|
"maxLength": 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"204": {
|
||||||
|
"description": "204 response for update_voice_channel_status",
|
||||||
|
"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}/webhooks": {
|
"/channels/{channel_id}/webhooks": {
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
|
@ -16028,6 +16097,11 @@
|
||||||
"description": "New guild channel created",
|
"description": "New guild channel created",
|
||||||
"const": "CHANNEL_CREATE"
|
"const": "CHANNEL_CREATE"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "VOICE_CHANNEL_STATUS_UPDATE",
|
||||||
|
"description": "Voice channel status was updated",
|
||||||
|
"const": "VOICE_CHANNEL_STATUS_UPDATE"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"title": "CHANNEL_UPDATE",
|
"title": "CHANNEL_UPDATE",
|
||||||
"description": "Channel was updated",
|
"description": "Channel was updated",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue