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
- 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 staffUnknown User•22h ago
Message Not Public
Sign In & Join Server To View
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•22h ago
Message Not Public
Sign In & Join Server To View
thank you!