From c6f0bee5dba2aa3c90e3fdca2c7106cee20cd6c3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 21 Sep 2018 11:08:16 +0000 Subject: [PATCH] Fix --- structures/commands/Subreddit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/commands/Subreddit.js b/structures/commands/Subreddit.js index 3c9e7c56..7eec3d94 100644 --- a/structures/commands/Subreddit.js +++ b/structures/commands/Subreddit.js @@ -12,7 +12,7 @@ module.exports = class SubredditCommand extends Command { async run(msg, { subreddit }) { if (!subreddit) subreddit = typeof this.subreddit === 'function' ? this.subreddit() : this.subreddit; try { - const { post, subreddit } = await this.random(msg.channel.nsfw); + const { post, subreddit } = await this.random(subreddit, msg.channel.nsfw); if (!post) return msg.reply(`I couldn't fetch anything from r/${subreddit}...`); return msg.say(this.generateText(post, subreddit)); } catch (err) {