mirror of
https://github.com/discord/discord-api-spec.git
synced 2025-11-14 07:49:48 -05:00
Compare commits
No commits in common. "28ef48483b4745bcf176b2b53b931a27142e2f55" and "390694490f7dbf6cdb86a92f3c1ceaf4d334ada9" have entirely different histories.
28ef48483b
...
390694490f
2 changed files with 260 additions and 593 deletions
|
|
@ -2585,45 +2585,6 @@
|
|||
],
|
||||
"x-discord-union": "oneOf"
|
||||
}
|
||||
},
|
||||
"application/x-www-form-urlencoded": {
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGroupDMInviteRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGuildInviteRequest"
|
||||
}
|
||||
],
|
||||
"x-discord-union": "oneOf"
|
||||
}
|
||||
},
|
||||
"multipart/form-data": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGroupDMInviteRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGuildInviteRequest"
|
||||
}
|
||||
],
|
||||
"x-discord-union": "oneOf"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target_users_file": {
|
||||
"type": "string",
|
||||
"contentEncoding": "binary"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
|
|
@ -5711,6 +5672,42 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
|
|
@ -7909,6 +7906,71 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/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": {
|
||||
"$ref": "#/components/schemas/GuildMFARequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
|
|
@ -11213,14 +11275,6 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"override_event_webhooks_url": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"maxLength": 512,
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11374,14 +11428,6 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"override_event_webhooks_url": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"maxLength": 512,
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12335,63 +12381,6 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/partner-sdk/provisional-accounts/unmerge/bot": {
|
||||
"post": {
|
||||
"operationId": "bot_partner_sdk_unmerge_provisional_account",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"external_user_id": {
|
||||
"type": "string",
|
||||
"maxLength": 1024
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"external_user_id"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "204 response for bot_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",
|
||||
|
|
@ -15593,7 +15582,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
},
|
||||
"dm_permission": {
|
||||
"type": [
|
||||
|
|
@ -16466,7 +16455,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
},
|
||||
"dm_permission": {
|
||||
"type": [
|
||||
|
|
@ -17395,7 +17384,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
},
|
||||
"dm_permission": {
|
||||
"type": [
|
||||
|
|
@ -17767,18 +17756,6 @@
|
|||
{
|
||||
"title": "UNITY_SERVICES_ID_TOKEN",
|
||||
"const": "UNITY_SERVICES_ID_TOKEN"
|
||||
},
|
||||
{
|
||||
"title": "DISCORD_BOT_ISSUED_ACCESS_TOKEN",
|
||||
"const": "DISCORD_BOT_ISSUED_ACCESS_TOKEN"
|
||||
},
|
||||
{
|
||||
"title": "APPLE_ID_TOKEN",
|
||||
"const": "APPLE_ID_TOKEN"
|
||||
},
|
||||
{
|
||||
"title": "PLAYSTATION_NETWORK_ID_TOKEN",
|
||||
"const": "PLAYSTATION_NETWORK_ID_TOKEN"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -17918,7 +17895,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -19660,7 +19637,6 @@
|
|||
"string",
|
||||
"null"
|
||||
],
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"style": {
|
||||
|
|
@ -19978,7 +19954,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -20067,7 +20042,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -21977,11 +21951,6 @@
|
|||
"title": "PRIVATE_CHANNEL",
|
||||
"description": "private channel",
|
||||
"const": "pc"
|
||||
},
|
||||
{
|
||||
"title": "PARTY",
|
||||
"description": "party",
|
||||
"const": "party"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -22098,16 +22067,6 @@
|
|||
"boolean",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"gifter_user_id": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnowflakeType"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
@ -22632,62 +22591,6 @@
|
|||
"spoiler"
|
||||
]
|
||||
},
|
||||
"FileUploadComponentForModalRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"enum": [
|
||||
19
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/MessageComponentTypes"
|
||||
}
|
||||
],
|
||||
"format": "int32"
|
||||
},
|
||||
"id": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"format": "int32"
|
||||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"min_values": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_values": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"required": {
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"custom_id"
|
||||
]
|
||||
},
|
||||
"FlagToChannelAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -24326,6 +24229,28 @@
|
|||
],
|
||||
"format": "int32"
|
||||
},
|
||||
"GuildMFALevelResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"level": {
|
||||
"$ref": "#/components/schemas/GuildMFALevel"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"level"
|
||||
]
|
||||
},
|
||||
"GuildMFARequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"level": {
|
||||
"$ref": "#/components/schemas/GuildMFALevel"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"level"
|
||||
]
|
||||
},
|
||||
"GuildMemberResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -24586,6 +24511,9 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"owner_id": {
|
||||
"$ref": "#/components/schemas/SnowflakeType"
|
||||
},
|
||||
"splash": {
|
||||
"type": [
|
||||
"string",
|
||||
|
|
@ -25572,32 +25500,6 @@
|
|||
"serialized_source_guild"
|
||||
]
|
||||
},
|
||||
"GuildTemplateRoleColorsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"primary_color": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"secondary_color": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"format": "int32"
|
||||
},
|
||||
"tertiary_color": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"primary_color"
|
||||
]
|
||||
},
|
||||
"GuildTemplateRoleResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -25615,16 +25517,6 @@
|
|||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"colors": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/GuildTemplateRoleColorsResponse"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hoist": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
@ -27443,9 +27335,6 @@
|
|||
{
|
||||
"$ref": "#/components/schemas/ChannelSelectComponentForModalRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FileUploadComponentForModalRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/MentionableSelectComponentForModalRequest"
|
||||
},
|
||||
|
|
@ -27683,12 +27572,6 @@
|
|||
},
|
||||
"flags": {
|
||||
"$ref": "#/components/schemas/UInt32Type"
|
||||
},
|
||||
"override_event_webhooks_url": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
@ -28403,7 +28286,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -28489,7 +28371,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -28969,11 +28850,6 @@
|
|||
"title": "LABEL",
|
||||
"description": "Label component",
|
||||
"const": 18
|
||||
},
|
||||
{
|
||||
"title": "FILE_UPLOAD",
|
||||
"description": "File upload component",
|
||||
"const": 19
|
||||
}
|
||||
],
|
||||
"format": "int32"
|
||||
|
|
@ -30335,12 +30211,10 @@
|
|||
"properties": {
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 45
|
||||
},
|
||||
"components": {
|
||||
|
|
@ -31864,9 +31738,6 @@
|
|||
},
|
||||
"deaf": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
@ -32542,7 +32413,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -32621,7 +32491,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -34074,7 +33943,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -34152,7 +34020,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -34516,7 +34383,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"style": {
|
||||
|
|
@ -34527,7 +34393,6 @@
|
|||
"string",
|
||||
"null"
|
||||
],
|
||||
"minLength": 1,
|
||||
"maxLength": 45
|
||||
},
|
||||
"value": {
|
||||
|
|
@ -36283,7 +36148,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -36362,7 +36226,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
|
|||
|
|
@ -2585,45 +2585,6 @@
|
|||
],
|
||||
"x-discord-union": "oneOf"
|
||||
}
|
||||
},
|
||||
"application/x-www-form-urlencoded": {
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGroupDMInviteRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGuildInviteRequest"
|
||||
}
|
||||
],
|
||||
"x-discord-union": "oneOf"
|
||||
}
|
||||
},
|
||||
"multipart/form-data": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGroupDMInviteRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/CreateGuildInviteRequest"
|
||||
}
|
||||
],
|
||||
"x-discord-union": "oneOf"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target_users_file": {
|
||||
"type": "string",
|
||||
"contentEncoding": "binary"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
|
|
@ -5711,6 +5672,42 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"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": {
|
||||
|
|
@ -8249,6 +8246,71 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/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": {
|
||||
"$ref": "#/components/schemas/GuildMFARequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": [
|
||||
{
|
||||
|
|
@ -8863,65 +8925,6 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/guilds/{guild_id}/roles/member-counts": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "guild_id",
|
||||
"in": "path",
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SnowflakeType"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"operationId": "guild_role_member_counts",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "200 response for guild_role_member_counts",
|
||||
"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": "object",
|
||||
"additionalProperties": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"429": {
|
||||
"$ref": "#/components/responses/ClientRatelimitedResponse"
|
||||
},
|
||||
"4XX": {
|
||||
"$ref": "#/components/responses/ClientErrorResponse"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"BotToken": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/guilds/{guild_id}/roles/{role_id}": {
|
||||
"parameters": [
|
||||
{
|
||||
|
|
@ -11612,14 +11615,6 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"override_event_webhooks_url": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"maxLength": 512,
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11773,14 +11768,6 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"override_event_webhooks_url": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"maxLength": 512,
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -12734,63 +12721,6 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/partner-sdk/provisional-accounts/unmerge/bot": {
|
||||
"post": {
|
||||
"operationId": "bot_partner_sdk_unmerge_provisional_account",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"external_user_id": {
|
||||
"type": "string",
|
||||
"maxLength": 1024
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"external_user_id"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "204 response for bot_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",
|
||||
|
|
@ -15992,7 +15922,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
},
|
||||
"dm_permission": {
|
||||
"type": [
|
||||
|
|
@ -16865,7 +16795,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
},
|
||||
"dm_permission": {
|
||||
"type": [
|
||||
|
|
@ -17794,7 +17724,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
},
|
||||
"dm_permission": {
|
||||
"type": [
|
||||
|
|
@ -18166,18 +18096,6 @@
|
|||
{
|
||||
"title": "UNITY_SERVICES_ID_TOKEN",
|
||||
"const": "UNITY_SERVICES_ID_TOKEN"
|
||||
},
|
||||
{
|
||||
"title": "DISCORD_BOT_ISSUED_ACCESS_TOKEN",
|
||||
"const": "DISCORD_BOT_ISSUED_ACCESS_TOKEN"
|
||||
},
|
||||
{
|
||||
"title": "APPLE_ID_TOKEN",
|
||||
"const": "APPLE_ID_TOKEN"
|
||||
},
|
||||
{
|
||||
"title": "PLAYSTATION_NETWORK_ID_TOKEN",
|
||||
"const": "PLAYSTATION_NETWORK_ID_TOKEN"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -18317,7 +18235,7 @@
|
|||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
"maximum": 4503599627370495
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -20088,7 +20006,6 @@
|
|||
"string",
|
||||
"null"
|
||||
],
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"style": {
|
||||
|
|
@ -20440,7 +20357,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -20529,7 +20445,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -22445,11 +22360,6 @@
|
|||
"title": "PRIVATE_CHANNEL",
|
||||
"description": "private channel",
|
||||
"const": "pc"
|
||||
},
|
||||
{
|
||||
"title": "PARTY",
|
||||
"description": "party",
|
||||
"const": "party"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -22566,16 +22476,6 @@
|
|||
"boolean",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"gifter_user_id": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnowflakeType"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
@ -23130,62 +23030,6 @@
|
|||
"spoiler"
|
||||
]
|
||||
},
|
||||
"FileUploadComponentForModalRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"enum": [
|
||||
19
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/MessageComponentTypes"
|
||||
}
|
||||
],
|
||||
"format": "int32"
|
||||
},
|
||||
"id": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"format": "int32"
|
||||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"min_values": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"max_values": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"required": {
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"custom_id"
|
||||
]
|
||||
},
|
||||
"FlagToChannelAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -24825,6 +24669,28 @@
|
|||
],
|
||||
"format": "int32"
|
||||
},
|
||||
"GuildMFALevelResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"level": {
|
||||
"$ref": "#/components/schemas/GuildMFALevel"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"level"
|
||||
]
|
||||
},
|
||||
"GuildMFARequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"level": {
|
||||
"$ref": "#/components/schemas/GuildMFALevel"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"level"
|
||||
]
|
||||
},
|
||||
"GuildMemberResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -25085,6 +24951,9 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"owner_id": {
|
||||
"$ref": "#/components/schemas/SnowflakeType"
|
||||
},
|
||||
"splash": {
|
||||
"type": [
|
||||
"string",
|
||||
|
|
@ -26140,32 +26009,6 @@
|
|||
"serialized_source_guild"
|
||||
]
|
||||
},
|
||||
"GuildTemplateRoleColorsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"primary_color": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"secondary_color": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"format": "int32"
|
||||
},
|
||||
"tertiary_color": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
],
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"primary_color"
|
||||
]
|
||||
},
|
||||
"GuildTemplateRoleResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -26183,16 +26026,6 @@
|
|||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"colors": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/GuildTemplateRoleColorsResponse"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hoist": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
@ -28088,9 +27921,6 @@
|
|||
{
|
||||
"$ref": "#/components/schemas/ChannelSelectComponentForModalRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FileUploadComponentForModalRequest"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/MentionableSelectComponentForModalRequest"
|
||||
},
|
||||
|
|
@ -28328,12 +28158,6 @@
|
|||
},
|
||||
"flags": {
|
||||
"$ref": "#/components/schemas/UInt32Type"
|
||||
},
|
||||
"override_event_webhooks_url": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
@ -29048,7 +28872,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -29134,7 +28957,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -29614,11 +29436,6 @@
|
|||
"title": "LABEL",
|
||||
"description": "Label component",
|
||||
"const": 18
|
||||
},
|
||||
{
|
||||
"title": "FILE_UPLOAD",
|
||||
"description": "File upload component",
|
||||
"const": 19
|
||||
}
|
||||
],
|
||||
"format": "int32"
|
||||
|
|
@ -30980,12 +30797,10 @@
|
|||
"properties": {
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 45
|
||||
},
|
||||
"components": {
|
||||
|
|
@ -32509,9 +32324,6 @@
|
|||
},
|
||||
"deaf": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
@ -33482,7 +33294,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -33561,7 +33372,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -35445,7 +35255,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -35523,7 +35332,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -35887,7 +35695,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"style": {
|
||||
|
|
@ -35898,7 +35705,6 @@
|
|||
"string",
|
||||
"null"
|
||||
],
|
||||
"minLength": 1,
|
||||
"maxLength": 45
|
||||
},
|
||||
"value": {
|
||||
|
|
@ -37678,7 +37484,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
@ -37757,7 +37562,6 @@
|
|||
},
|
||||
"custom_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 100
|
||||
},
|
||||
"placeholder": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue