Automated spec update (44798)

This commit is contained in:
Nelly (automation bot) 2024-04-30 22:44:08 +00:00
parent 8e6025814a
commit bed59ca649
2 changed files with 310 additions and 268 deletions

View file

@ -12318,21 +12318,12 @@
"BasicMessageResponse": { "BasicMessageResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": { "type": {
"$ref": "#/components/schemas/MessageType" "$ref": "#/components/schemas/MessageType"
}, },
"content": { "content": {
"type": "string" "type": "string"
}, },
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"attachments": { "attachments": {
"type": "array", "type": "array",
"items": { "items": {
@ -12345,28 +12336,6 @@
"$ref": "#/components/schemas/MessageEmbedResponse" "$ref": "#/components/schemas/MessageEmbedResponse"
} }
}, },
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"timestamp": { "timestamp": {
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
@ -12413,6 +12382,47 @@
] ]
} }
}, },
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
},
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"activity": { "activity": {
"oneOf": [ "oneOf": [
{ {
@ -12568,34 +12578,24 @@
"null" "null"
], ],
"format": "int32" "format": "int32"
},
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
} }
}, },
"required": [ "required": [
"id",
"type", "type",
"content", "content",
"channel_id",
"author",
"attachments", "attachments",
"embeds", "embeds",
"timestamp",
"flags",
"components",
"id",
"channel_id",
"author",
"mentions", "mentions",
"mention_roles", "mention_roles",
"pinned", "pinned",
"mention_everyone", "mention_everyone",
"tts", "tts"
"timestamp",
"flags",
"components"
] ]
}, },
"BlockMessageAction": { "BlockMessageAction": {
@ -21710,7 +21710,7 @@
"type": "null" "type": "null"
}, },
{ {
"$ref": "#/components/schemas/ReplyMessageReferenceRequest" "$ref": "#/components/schemas/MessageReferenceRequest"
} }
] ]
}, },
@ -22279,6 +22279,53 @@
"me" "me"
] ]
}, },
"MessageReferenceRequest": {
"type": "object",
"properties": {
"guild_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"message_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"fail_if_not_exists": {
"type": [
"boolean",
"null"
]
},
"type": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/MessageReferenceType"
}
]
}
},
"required": [
"message_id"
]
},
"MessageReferenceResponse": { "MessageReferenceResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -22310,24 +22357,26 @@
"channel_id" "channel_id"
] ]
}, },
"MessageReferenceType": {
"type": "integer",
"oneOf": [
{
"title": "DEFAULT",
"description": "Reference to a message",
"const": 0
}
],
"format": "int32"
},
"MessageResponse": { "MessageResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": { "type": {
"$ref": "#/components/schemas/MessageType" "$ref": "#/components/schemas/MessageType"
}, },
"content": { "content": {
"type": "string" "type": "string"
}, },
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"attachments": { "attachments": {
"type": "array", "type": "array",
"items": { "items": {
@ -22340,28 +22389,6 @@
"$ref": "#/components/schemas/MessageEmbedResponse" "$ref": "#/components/schemas/MessageEmbedResponse"
} }
}, },
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"timestamp": { "timestamp": {
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
@ -22408,6 +22435,47 @@
] ]
} }
}, },
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
},
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"activity": { "activity": {
"oneOf": [ "oneOf": [
{ {
@ -22564,16 +22632,6 @@
], ],
"format": "int32" "format": "int32"
}, },
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
},
"reactions": { "reactions": {
"type": [ "type": [
"array", "array",
@ -22595,21 +22653,21 @@
} }
}, },
"required": [ "required": [
"id",
"type", "type",
"content", "content",
"channel_id",
"author",
"attachments", "attachments",
"embeds", "embeds",
"timestamp",
"flags",
"components",
"id",
"channel_id",
"author",
"mentions", "mentions",
"mention_roles", "mention_roles",
"pinned", "pinned",
"mention_everyone", "mention_everyone",
"tts", "tts"
"timestamp",
"flags",
"components"
] ]
}, },
"MessageRoleSubscriptionDataResponse": { "MessageRoleSubscriptionDataResponse": {
@ -24178,43 +24236,6 @@
"metadata" "metadata"
] ]
}, },
"ReplyMessageReferenceRequest": {
"type": "object",
"properties": {
"guild_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"message_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"fail_if_not_exists": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"message_id"
]
},
"ResolvedObjectsResponse": { "ResolvedObjectsResponse": {
"type": "object", "type": "object",
"properties": { "properties": {

View file

@ -12517,21 +12517,12 @@
"BasicMessageResponse": { "BasicMessageResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": { "type": {
"$ref": "#/components/schemas/MessageType" "$ref": "#/components/schemas/MessageType"
}, },
"content": { "content": {
"type": "string" "type": "string"
}, },
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"attachments": { "attachments": {
"type": "array", "type": "array",
"items": { "items": {
@ -12544,28 +12535,6 @@
"$ref": "#/components/schemas/MessageEmbedResponse" "$ref": "#/components/schemas/MessageEmbedResponse"
} }
}, },
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"timestamp": { "timestamp": {
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
@ -12612,6 +12581,47 @@
] ]
} }
}, },
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
},
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"activity": { "activity": {
"oneOf": [ "oneOf": [
{ {
@ -12768,16 +12778,6 @@
], ],
"format": "int32" "format": "int32"
}, },
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
},
"interaction_metadata": { "interaction_metadata": {
"oneOf": [ "oneOf": [
{ {
@ -12796,21 +12796,21 @@
} }
}, },
"required": [ "required": [
"id",
"type", "type",
"content", "content",
"channel_id",
"author",
"attachments", "attachments",
"embeds", "embeds",
"timestamp",
"flags",
"components",
"id",
"channel_id",
"author",
"mentions", "mentions",
"mention_roles", "mention_roles",
"pinned", "pinned",
"mention_everyone", "mention_everyone",
"tts", "tts"
"timestamp",
"flags",
"components"
] ]
}, },
"BlockMessageAction": { "BlockMessageAction": {
@ -22099,7 +22099,7 @@
"type": "null" "type": "null"
}, },
{ {
"$ref": "#/components/schemas/ReplyMessageReferenceRequest" "$ref": "#/components/schemas/MessageReferenceRequest"
} }
] ]
}, },
@ -22674,6 +22674,53 @@
"me" "me"
] ]
}, },
"MessageReferenceRequest": {
"type": "object",
"properties": {
"guild_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"message_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"fail_if_not_exists": {
"type": [
"boolean",
"null"
]
},
"type": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/MessageReferenceType"
}
]
}
},
"required": [
"message_id"
]
},
"MessageReferenceResponse": { "MessageReferenceResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -22705,24 +22752,26 @@
"channel_id" "channel_id"
] ]
}, },
"MessageReferenceType": {
"type": "integer",
"oneOf": [
{
"title": "DEFAULT",
"description": "Reference to a message",
"const": 0
}
],
"format": "int32"
},
"MessageResponse": { "MessageResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"type": { "type": {
"$ref": "#/components/schemas/MessageType" "$ref": "#/components/schemas/MessageType"
}, },
"content": { "content": {
"type": "string" "type": "string"
}, },
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"attachments": { "attachments": {
"type": "array", "type": "array",
"items": { "items": {
@ -22735,28 +22784,6 @@
"$ref": "#/components/schemas/MessageEmbedResponse" "$ref": "#/components/schemas/MessageEmbedResponse"
} }
}, },
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"timestamp": { "timestamp": {
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
@ -22803,6 +22830,47 @@
] ]
} }
}, },
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
},
"id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"channel_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"author": {
"$ref": "#/components/schemas/UserResponse"
},
"mentions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserResponse"
}
},
"mention_roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SnowflakeType"
},
"uniqueItems": true
},
"pinned": {
"type": "boolean"
},
"mention_everyone": {
"type": "boolean"
},
"tts": {
"type": "boolean"
},
"activity": { "activity": {
"oneOf": [ "oneOf": [
{ {
@ -22959,16 +23027,6 @@
], ],
"format": "int32" "format": "int32"
}, },
"resolved": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/ResolvedObjectsResponse"
}
]
},
"interaction_metadata": { "interaction_metadata": {
"oneOf": [ "oneOf": [
{ {
@ -23006,21 +23064,21 @@
} }
}, },
"required": [ "required": [
"id",
"type", "type",
"content", "content",
"channel_id",
"author",
"attachments", "attachments",
"embeds", "embeds",
"timestamp",
"flags",
"components",
"id",
"channel_id",
"author",
"mentions", "mentions",
"mention_roles", "mention_roles",
"pinned", "pinned",
"mention_everyone", "mention_everyone",
"tts", "tts"
"timestamp",
"flags",
"components"
] ]
}, },
"MessageRoleSubscriptionDataResponse": { "MessageRoleSubscriptionDataResponse": {
@ -24953,43 +25011,6 @@
], ],
"format": "int32" "format": "int32"
}, },
"ReplyMessageReferenceRequest": {
"type": "object",
"properties": {
"guild_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"channel_id": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/SnowflakeType"
}
]
},
"message_id": {
"$ref": "#/components/schemas/SnowflakeType"
},
"fail_if_not_exists": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"message_id"
]
},
"ResolvedObjectsResponse": { "ResolvedObjectsResponse": {
"type": "object", "type": "object",
"properties": { "properties": {