I’m setting up a Discord bot, and I want it to send a message to the main channel of my server when I type node .
. I typed:
client.on('ready', () => {
const Channel = client.channels.cache.get('<My.General.Channel.ID#>');
if (!Channel) return console.log('Wrong channel!');
else Channel.send('I am here');
});
I get “Wrong channel!”. I should just insert the channel ID number, right? I’ve directly pasted from Discord’s “Copy ID” and still get a problem.