1
0
Fork 0

Link to the post

Commando
loicbersier 6 years ago
parent c159c4d38a
commit 1364ebdb6a

@ -34,7 +34,8 @@ module.exports = class redditCommand extends Command {
const redditEmbed = new Discord.RichEmbed()
.setColor("#ff9900")
.setTitle(body.data.children[i].data.title)
.setImage(body.data.children[i].data.preview.images[0].source.url)
.setImage(body.data.children[i].data.url)
.setURL('https://reddit.com' + body.data.children[i].data.permalink)
.setFooter(`${body.data.children[i].data.ups} 💬 ${body.data.children[i].data.num_comments}`)
message.say(redditEmbed);

Loading…
Cancel
Save