Renamed embed

This commit is contained in:
loicbersier 2018-09-27 19:11:14 +02:00
parent 8ab2125311
commit 9cb76393d7

View file

@ -29,11 +29,11 @@ module.exports = class redditCommand extends Command {
if (body.data.children[i].data.over_18 == true) { if (body.data.children[i].data.over_18 == true) {
return message.say("No nsfw") return message.say("No nsfw")
} }
const dogEmbed = new Discord.RichEmbed() const redditEmbed = new Discord.RichEmbed()
.setColor("#ff9900") .setColor("#ff9900")
.setTitle(body.data.children[i].data.title) .setTitle(body.data.children[i].data.title)
.setImage(body.data.children[i].data.preview.images[0].source.url) .setImage(body.data.children[i].data.preview.images[0].source.url)
message.say(dogEmbed); message.say(redditEmbed);
} }
} }