The bot's token used for authentication with the Discord API.
The ID of the interaction to respond to.
The token specific to the interaction.
The content of the response message.
A promise that resolves to true if the response is sent successfully.
Will throw an error if there is a problem sending the response.
const token = 'your_discord_token_here'
const interactionId = 'your_interaction_id_here'
const interactionToken = 'your_interaction_token_here'
const body = {
type: 4,
data: {
content: 'Hello, world!',
},
}
const result = await interactionMessage(token, interactionId, interactionToken, body)
console.log(result); // true
Generated using TypeDoc
Sends a response to a Discord interaction.