Automated spec update (2457)

This commit is contained in:
Nelly (automation bot) 2023-09-18 18:46:46 +00:00
parent 2017e6e03d
commit aca78c68f6
2 changed files with 572 additions and 572 deletions

View file

@ -6267,151 +6267,6 @@
]
}
},
"/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",
"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"
}
]
}
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"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",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildChannelResponse"
}
}
}
},
"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"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/stickers": {
"parameters": [
{
@ -6562,6 +6417,151 @@
]
}
},
"/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",
"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"
}
]
}
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"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",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildChannelResponse"
}
}
}
},
"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"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/members/{user_id}": {
"parameters": [
{
@ -8345,147 +8345,6 @@
]
}
},
"/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",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_channel",
"responses": {
"200": {
"description": "200 response for delete_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_channel",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/PrivateChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateGuildChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateThreadRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/stickers/{sticker_id}": {
"parameters": [
{
@ -8656,6 +8515,147 @@
]
}
},
"/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",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_channel",
"responses": {
"200": {
"description": "200 response for delete_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_channel",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/PrivateChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateGuildChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateThreadRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/invites/{code}": {
"parameters": [
{

View file

@ -6267,151 +6267,6 @@
]
}
},
"/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",
"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"
}
]
}
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"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",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildChannelResponse"
}
}
}
},
"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"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/stickers": {
"parameters": [
{
@ -6562,6 +6417,151 @@
]
}
},
"/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",
"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"
}
]
}
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"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",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildChannelResponse"
}
}
}
},
"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"
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/guilds/{guild_id}/members/{user_id}": {
"parameters": [
{
@ -8345,147 +8345,6 @@
]
}
},
"/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",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_channel",
"responses": {
"200": {
"description": "200 response for delete_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_channel",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/PrivateChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateGuildChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateThreadRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/stickers/{sticker_id}": {
"parameters": [
{
@ -8656,6 +8515,147 @@
]
}
},
"/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",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"delete": {
"operationId": "delete_channel",
"responses": {
"200": {
"description": "200 response for delete_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},
"patch": {
"operationId": "update_channel",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/PrivateChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateGuildChannelRequestPartial"
},
{
"$ref": "#/components/schemas/UpdateThreadRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_channel",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/GuildChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateChannelResponse"
},
{
"$ref": "#/components/schemas/PrivateGroupChannelResponse"
},
{
"$ref": "#/components/schemas/ThreadResponse"
}
]
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
}
},
"/invites/{code}": {
"parameters": [
{