Link to the post
This commit is contained in:
parent
c159c4d38a
commit
1364ebdb6a
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue