How to DM users that authorized my app?

I'm making a bot that's only usable in DMs with the bot itself and I don't know how to open these DMs with the user who autherized this bot for themselves. The flow I'm going for is the user adds the bot app and as soon as that happens, I want to send the user a message with instructions. I can't find a way to do this with client.on and I'm kinda lost.
3 Replies
d.js toolkit
d.js toolkit2mo 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!
d.js docs
d.js docs2mo ago
:discord: Webhook Events Webhook events are one-way events sent to your app over HTTP to notify you when an event occured. Unlike events that are sent over Gateway connections, events sent over webhooks are not realtime or guaranteed to be in order. read more
jaka 🐉
jaka 🐉OP2mo ago
Ah okay, thought it'd be like a onChannelCreated event where channel type is DM or something. thanks :CB_cheers:

Did you find this page helpful?