discordjs answering command exemple code example
Example: 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');
}
});