Optional
apiOptional
authOptional
queueOptional
sqsProtected
Optional
apiProtected
applicationProtected
Optional
authProtected
commandsProtected
logProtected
Optional
queueProtected
Optional
sqsPrivate
addAdds an interaction to an SQS queue to be processed by an async lambda function
Protected
getHandler for AWS Lambda that handles Discord bot interactions
Handle an incoming Discord interaction.
An incoming Discord interaction from the web
Handler for AWS Lambda that handles async application commands. This should be invoked asynchronously by handleDiscordWebhook as a seperate Lambda function.
Interaction from handleDiscordWebhook
Generated using TypeDoc
Serverless Discord Router for AWS Lambda
This class is responsible for handling the AWS Lambda event and converting it into a DiscordInteraction. This is then passed to the ServerlessDiscordRouter to handle the interaction.
This class also handles async application commands. These are commands that are not expected to return a response immediately. The async handler should be run as a seperate Lambda function. This function will be called with the interaction data as the event.