Hide NSFW in the help Command

This commit is contained in:
Dragon Fire
2020-11-02 11:56:13 -05:00
parent 0275c7c23c
commit a810bd793c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.37.1",
"version": "119.37.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {