I want my public bot to sendMessage in specific channel, and specific server. But, I have an error... this is my code:
client.on('message', msg => {
if (msg.content.startsWith('+specifictest')) {
var channellog = msg.client.channels.get('352496750327496725');
var guiiild = msg.client.guilds.get('343913599686934539').channellog;
guiiild.send({
embed: new Discord.RichEmbed()
.setColor("#FFFFFF")
.setAuthor("Dessin")
.setDescription(`Demandé par <@${msg.author.id}>`)
})
}
})
And, my error: TypeError: Cannot read property 'send' of undefined