From 6c67cd5a791c11d08ad0d3043a67618ae1fe7324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Wed, 26 Jun 2019 04:21:28 +0200 Subject: [PATCH] send url to be sure it will always work --- commands/fun/reddit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/reddit.js b/commands/fun/reddit.js index e3d2f906..7dea010a 100644 --- a/commands/fun/reddit.js +++ b/commands/fun/reddit.js @@ -45,12 +45,12 @@ class RedditCommand extends Command { const redditEmbed = new MessageEmbed() .setColor('#ff9900') .setTitle(response.data.children[i].data.title) - .setImage(response.data.children[i].data.url) .setDescription(response.data.children[i].data.selftext) .setURL('https://reddit.com' + response.data.children[i].data.permalink) .setFooter(`/r/${response.data.children[i].data.subreddit} | ⬆ ${response.data.children[i].data.ups} ⬇ ${response.data.children[i].data.num_comments}`); message.channel.send(redditEmbed); + message.channel.send(response.data.children[i].data.url); }); } }