From c9f87cecbdd6ee7492df9fc39b1139dbfee17e00 Mon Sep 17 00:00:00 2001 From: Carol Knieriem Date: Fri, 7 Feb 2020 12:49:04 -0500 Subject: [PATCH] adjust colon --- commands/Information/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Information/help.js b/commands/Information/help.js index 1c6ae8c..575138e 100644 --- a/commands/Information/help.js +++ b/commands/Information/help.js @@ -16,7 +16,7 @@ exports.run = async (client, message, args, level) => { commands = client.commands(args[1]); title = `== Commands under category ${args[1]} ==`; } else if(/^all|full|every$/i.test(args[0])) { - commands = message.guild ? client.commands ? client.commands.filter (cmd => cmd.conf.guildOnly !== true); + commands = message.guild ? client.commands : client.commands.filter (cmd => cmd.conf.guildOnly !== true); } else if(/^mine|usable$/i.test(args[0])) { commands = message.guild ? client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level) : client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level && cmd.conf.guildOnly !== true); }