From 73604461ce4dd83c26f2521c15084cdce5518f60 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 31 Mar 2024 00:48:53 -0400 Subject: [PATCH] Fix --- commands/random-res/chuck-norris.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-res/chuck-norris.js b/commands/random-res/chuck-norris.js index d8d59d6f..92279c51 100644 --- a/commands/random-res/chuck-norris.js +++ b/commands/random-res/chuck-norris.js @@ -31,7 +31,7 @@ module.exports = class ChuckNorrisCommand extends Command { async run(msg) { if (!this.categories) await this.fetchCategories(); const categories = msg.channel.nsfw - ? 'explicit' + ? ['explicit'] : this.categories.filter(cat => !nsfwCategories.includes(cat)); const { body } = await request .get('https://api.chucknorris.io/jokes/random')