Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord js send dm to user

// In order for a bot to send a message, you need <client>.send()
// the client is where the bot will send a message to(A channel, everywhere in the server, or a PM). 
// If you want the bot to PM a certain user, you can use message.author as your client. 
mesage.author.send("LOL, I just slid into your DMs :joy:";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #discord #js #send #dm #user
ADD COMMENT
Topic
Name
3+2 =