forked from Supositware/Haha-Yes
add the subreddit on embed
This commit is contained in:
parent
899b8f3ff2
commit
34e217a14c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue