You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation does technically tell you this flag won't work here - but the alternative is not documented - and I am not sure whether this is a bug - but in any case the docs do need updating.
Steps to Reproduce
Very strange Discord.JS example - but it should get the idea across
I would expect the message to be deferred and then update with ❌ displayed as a component. Using flags in the webhook PATCH request feels inconsistent but it wouldn't surprise me if this was intentional (in fact I don't know how this could happen accidentally lol) - if the behaviour is kept the docs should simply be updated.
Current Behavior
This is returned when trying to edit
{
"message": "Invalid Form Body",
"code": 50035,
"errors": {
"components": {
"0": {
"_errors": [
{
"code": "UNION_TYPE_CHOICES",
"message": "Value of field \"type\" must be one of (1,)."
}
]
}
}
}
}
Screenshots/Videos
No response
Client and System Information
N/A
The text was updated successfully, but these errors were encountered:
TheKodeToad
changed the title
Cannot use Components V2 if you defer and interaction (or use undocumented API)
Cannot use Components V2 if you defer in interaction (or use undocumented API)
Apr 24, 2025
TheKodeToad
changed the title
Cannot use Components V2 if you defer in interaction (or use undocumented API)
Cannot use Components V2 if you defer an interaction (or use undocumented API)
Apr 24, 2025
The documentation does technically tell you this flag won't work here - but the alternative is not documented - and I am not sure whether this is a bug - but in any case the docs do need updating.
Oh yeah. I was going to edit to link it lol. didn't make the connection that it was actually... you!
TheKodeToad
changed the title
Cannot use Components V2 if you defer an interaction (or use undocumented API)
Cannot use Components V2 if you defer an interaction (you have to use undocumented API)
May 2, 2025
Description
Intuitively you would think to use components v2 in a deferred interaction you would need to pass in the flags for the initial defer
I.e. first you would do
then you would think you'd be able to use components freely
However, instead you have to put the flags in the latter payload - like so
The documentation does technically tell you this flag won't work here - but the alternative is not documented - and I am not sure whether this is a bug - but in any case the docs do need updating.
Steps to Reproduce
Very strange Discord.JS example - but it should get the idea across
Using undocumented API it works just fine
Expected Behavior
I would expect the message to be deferred and then update with ❌ displayed as a component. Using flags in the webhook PATCH request feels inconsistent but it wouldn't surprise me if this was intentional (in fact I don't know how this could happen accidentally lol) - if the behaviour is kept the docs should simply be updated.
Current Behavior
This is returned when trying to edit
Screenshots/Videos
No response
Client and System Information
N/A
The text was updated successfully, but these errors were encountered: