showing results for - "how to use msg send instead of msg reply discord js javascript"
Juliana
11 Jun 2019
1//this is an event listener
2client.on('message', message => {
3  // If message is ping
4  if (message.content === 'ping') {
5    // Send pong back
6    message.channel.send('pong');
7  }
8});