-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Description
According to the docs you should be able set the IS_COMPONENTS_V2
flag on an old message. It states that the embeds, content, etc, need to be set to null
.
This seems to only work with content
. Setting this to null
does allow the message to be edited while using the new flag. However, embeds
, sticker_ids
and files
don't seem to work when being set to null
. It does work when they are set to []
.
Steps to Reproduce
### Create a message
POST https://discord.com/api/v10/channels/1111111/messages
content-type: application/json
Authorization: Bot xxxxxx
{"embeds":[{"title":"Testing","description":"Test"}]}
### Edit a message
PATCH https://discord.com/api/v10/channels/1111111/messages/11111111
content-type: application/json
Authorization: Bot xxxxxx
{
"embeds": null,
"flags": 32768,
"components": [
{
"type": 17,
"components": [
{
"type": 10,
"content": "Test"
}
]
}
]
}
Expected Behavior
An old message that includes embeds
can be edited to a message that uses IS_COMPONENTS_V2
when setting the embeds
field to null
.
Current Behavior
The API returns a 400 BAD REQUEST
.
Screenshots/Videos
No response
Client and System Information
n/a