discord.js how to let the bot send a message code example
Example 1: discord.js send message to specific channel
channel = client.channels.cache.get('757685515255545917');
channel.send('Pong');
Example 2: 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');
}
});