discord-bot-cdk-construct
Version:
A quick CDK Construct for creating a serverless Discord bot in AWS!
11 lines (10 loc) • 700 B
TypeScript
import { IDiscordEndpointInfo, IDiscordResponseData } from '../../types';
/**
* Send a followup message to Discord's APIs on behalf of the bot.
*
* @param {IDiscordEndpointInfo} endpointInfo The information to use when talking to the endpoint.
* @param {string} interactionToken The token representing the interaction to follow up on.
* @param {IDiscordResponseData} responseData The response data to be sent to the Discord server.
* @return {Promise<boolean>} Returns true if the response was succesfully sent, false otherwise.
*/
export declare function sendFollowupMessage(endpointInfo: IDiscordEndpointInfo, interactionToken: string, responseData: IDiscordResponseData): Promise<boolean>;