send a message to a specific channel discord.js
snippet in javascript

send a message to a specific channel discord.js

user2564

client.channels.get("<ID of the channel you want to send to>").send("<your message content here>")

discord.js send message to specific channel

user2052

 channel = client.channels.cache.get('757685515255545917');
    channel.send('Pong');

discord js send message to specific channel

user8360

const channel = client.channels.cache.find(channel => channel.name === channelName)
channel.send(message)