From a810bd793c258ddf9d0a54a6579ab220dd670cb4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 2 Nov 2020 11:56:13 -0500 Subject: [PATCH] Hide NSFW in the help Command --- commands/util-public/help.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/util-public/help.js b/commands/util-public/help.js index 79bc9dc8..24356d92 100644 --- a/commands/util-public/help.js +++ b/commands/util-public/help.js @@ -41,6 +41,7 @@ module.exports = class HelpCommand extends Command { const commands = group.commands.filter(cmd => { if (owner) return true; if (cmd.ownerOnly || cmd.hidden) return false; + if (cmd.nsfw && !msg.channel.nsfw) return false; return true; }); if (!commands.size) continue; diff --git a/package.json b/package.json index 12a023a3..0aa4d7c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "119.37.1", + "version": "119.37.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {