Embed not sending


#1

if (command === ‘help’) {
let sicon = bot.user.displayAvatarURL;
const hembed = new discord.RichEmbed()

.setDescription(‘Help’)
.setTile(“Help!”)
.setColor("#15f153")
.setThumbnail(sicon)
.addField(“Fun”)
.addField(“Utility”)
.addField(“Anime”);

return msg.author.send(hembed);

}

I have this command in a bot i’m making but it’s not sending it, and i can’t figure out why. I’ve made an embed in a command before but for some reason it’s not working. I’ve been comparing it to my other command with the embed but I don’t see why it won’t work. Help is appreciated.

Here’s my project: https://glitch.com/~smeargle-bot


#2

Nvm, it was a spelling mistake in the .setTitle


#3

Use: if (command === ‘help’) {
let sicon = bot.user.displayAvatarURL;
const hembed = new discord.RichEmbed()

.setDescription(‘Help’)
.setTitle(“Help!”)
.setColor(#15f153)
.setThumbnail(sicon)
.addField(“Fun”,“Content of this field”,true)
.addField(“Utility”,“Content”,true)
.addField(“Anime”,“Content”,true);

msg.channel.send(“See your DM!”);
msg.author.send({hembed});

}