discord/discord-api-spec

`bulk_delete_messages` request body is incorrect

danny-may opened this issue · 1 comments

The spec says that the messages json property for the bulk_delete_messages endpoint is both optional and nullable, while the docs indicate it is required and non-nullable. Also the spec says it supports up to 1521 message ids with no minimum, while the docs say the min is 2 and max is 100.

docs

"operationId": "bulk_delete_messages",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"messages": {
"type": [
"array",
"null"
],
"items": {
"type": "string",
"format": "snowflake"
},
"maxItems": 1521,
"uniqueItems": true
}
}
}
}
},
"required": true
},

fixed