I'm having keep getting and error while using embeded messages because "cannot read property 'send' of undenifide"
I'm trying to make my bot send embededmessages and each time I send the message it gives me an error like this "cannot read property 'send' of undenified".Here is my code
else if(message.content == "testing") {
let channel = message.guild.channels.cache.get(832075875612491789)
const exampleEmbed = new MessageEmbed()
.setColor('#0099ff')
.setTitle('v1.1 test')
.setThumbnail('https://i0.wp.com/www.mysabah.com/wordpress/wp-content/uploads/2006/06/252.jpg?fit=640%2C392&ssl=1')
channel.send({ embeds: [exampleEmbed] });
}
Via Active questions tagged javascript - Stack Overflow https://ift.tt/CQ9FJRu
Comments
Post a Comment