Retrieving an already running Client

I'm generating AWS SQS messages based on Discord interaction events and using an AWS Lambda function to respond to them through webhooks. Currently, I'm sending the webhook ID and token in the body of the SQS message and constructing a webhook in the Lambda function to respond to. I want to streamline my processes and reconstruct the interaction object downstream from its ID to use the normal DiscordJS functions. Is there a way to connect to, and get a reference to, an existing client running somewhere to fetch the interaction by ID? If not, is there any other way to recreate DiscordJS objects downstream to interact with instead of the webhook approach?
1 Reply
d.js toolkit
d.js toolkit15mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.