Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use msg.send instead of msg.reply discord.js javascript

//this is an event listener
client.on('message', message => {
  // If message is ping
  if (message.content === 'ping') {
    // Send pong back
    message.channel.send('pong');
  }
});
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
9+5 =