v1
latestOpenAPI 3.0.12026-07-17310206.9 KBResponds to a slash command interaction in Discord.
This function sends a response back to the user who interacted with a slash command in Discord. It allows for customization of the response content, including text, embeds, and components, with an option to make the response ephemeral. The function returns a Promise that resolves when the response is successfully sent.
post/respondToInteraction
Request body
Response
Successful response