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
We have to consider porting back the functionality of fetchReply (just applicable in case of CHANNEL_MESSAGE_WITH_SOURCE or UPDATE_MESSAGE) and additionally implementing a new function (or option parameter) which allows the full resource data to be returned (as this can also include an Activity instance id)
The text was updated successfully, but these errors were encountered:
Which application or package is this feature request for?
discord.js
Feature
Currently, receiving the message created by an interaction response requires an additional API call
discord.js/packages/discord.js/src/structures/interfaces/InteractionResponses.js
Line 125 in a11ff75
Ideal solution or implementation
The interaction callback route https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response supports the
with_response
query string parameter, which we can utilize to avoid this call, optionally caching the created resource from the payload: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-callback-interaction-callback-response-objectAlternative solutions or implementations
n/a
Other context
Note
We have to consider porting back the functionality of
fetchReply
(just applicable in case of CHANNEL_MESSAGE_WITH_SOURCE or UPDATE_MESSAGE) and additionally implementing a new function (or option parameter) which allows the full resource data to be returned (as this can also include an Activity instance id)The text was updated successfully, but these errors were encountered: