From be99b7d165ffe6b33f426fa302dbd6e73f93b926 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 10 Feb 2019 19:00:00 +0100 Subject: [PATCH] Allow nsfw in nsfw channel --- commands/general/reddit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/general/reddit.js b/commands/general/reddit.js index fd543b5..314f4e0 100644 --- a/commands/general/reddit.js +++ b/commands/general/reddit.js @@ -40,7 +40,7 @@ class RedditCommand extends Command { if (a == 5) return message.channel.send('Could not find any images'); } - if (response.data.children[i].data.over_18 == true) + if (response.data.children[i].data.over_18 == true && !message.channel.nsfw) return message.channel.send('No nsfw'); const redditEmbed = new MessageEmbed() .setColor('#ff9900')