Replying to APPLICATION_AUTHORIZED event on a webhook

I've built a small next.js-based application solely for the purpose of sending welcome messages when my bot is added to a user or channel. I have webhook properly registered and tested. However I fail to send the message itself. My part that sends message: res.send({ status: 200, type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE, data: { content: "its working!", embeds: [], allowed_mentions: { parse: [] }, }, }); What am i missing here?
5 Replies
d.js toolkit
d.js toolkit22h ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Unknown User
Unknown User22h ago
Message Not Public
Sign In & Join Server To View
egoengineering
egoengineeringOP22h ago
Not really, im using the stand-alone next.js thing. Is it possible to run it on a discord.js only to respond to this particular webhook event?
Unknown User
Unknown User22h ago
Message Not Public
Sign In & Join Server To View
egoengineering
egoengineeringOP22h ago
thank you!

Did you find this page helpful?