Answer the question
In order to leave comments, you need to log in
How to send a message to a channel by id on the "ready" event?
The fact is that the Internet offers such a solution:
const Discord = require('discord.js');
const bot = new Discord.Client();
bot.login(TOKEN);
bot.on('ready', () => {
bot.channels.get(CHANNEL_ID).send(MESSAGE);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question