From e1ecadfc8ee21f829b41845f37e8849c84f2dd32 Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Sun, 9 Feb 2020 21:27:26 -0500 Subject: [PATCH] Preparing to make the huge overhaul --- commands/Information/help.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/Information/help.js b/commands/Information/help.js index 4219b61..a41fff7 100644 --- a/commands/Information/help.js +++ b/commands/Information/help.js @@ -15,10 +15,11 @@ exports.run = async (client, message, args, level) => { commands = client.commands.filter(cmd => cmd.help.category === args[1]); title = `== ${args[1]} commands ==`; } else if(args[0] === "all" || args[0] === "full" || args[0] === "every") { - 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); + commands = message.guild ? client.commands : client.commands.filter(cmd.conf.guildOnly !== true); title = "== All Commands ==" } else if(args[0] === "mine" || args[0] === "usable") { - 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); + 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); + title = `== ${message.author.username}'s Usable Commands ==` } else { let command = args[0]; if (client.commands.has(command)) {