#How would I send an interaction user a message DM?

7 messages · Page 1 of 1 (latest)

alpine summit
#

Currently trying to send a user a DM, I've had a quick scope at the docs and Noticed createDM, Not sure on how I would go about on doing this though hence the question to this server.

full drumBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
honest hearthBOT
alpine summit
#

@wary torrent Thought this was how you done this, thank you for clarifying.

wary torrent
#

just to clarify in case you're curious, createDM is called internally by <User>.send() in order to fetch/create appropriate dm channel in the event it isn't cached

alpine summit
wary torrent
#

<User>.send() will reject
Just catch the error