add the subreddit on embed

This commit is contained in:
Loïc Bersier 2019-05-03 22:43:23 +02:00
parent 899b8f3ff2
commit 34e217a14c

View file

@ -47,7 +47,7 @@ class RedditCommand extends Command {
.setTitle(response.data.children[i].data.title) .setTitle(response.data.children[i].data.title)
.setImage(response.data.children[i].data.url) .setImage(response.data.children[i].data.url)
.setURL('https://reddit.com' + response.data.children[i].data.permalink) .setURL('https://reddit.com' + response.data.children[i].data.permalink)
.setFooter(`${response.data.children[i].data.ups}${response.data.children[i].data.num_comments}`); .setFooter(`/r/${args.sub} | ${response.data.children[i].data.ups}${response.data.children[i].data.num_comments}`);
message.channel.send(redditEmbed); message.channel.send(redditEmbed);
}); });