From e8d656143cf71f55e52eeae80b41a02463f21491 Mon Sep 17 00:00:00 2001 From: codepupper Date: Sat, 16 Nov 2019 17:56:02 +0100 Subject: [PATCH] fixed 'help --- DiscordModules/General/help.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DiscordModules/General/help.js b/DiscordModules/General/help.js index 33fdcc4..7e064b2 100755 --- a/DiscordModules/General/help.js +++ b/DiscordModules/General/help.js @@ -65,7 +65,7 @@ module.exports = class Help extends Command { return ctx.send({ embed: { - description: `Use \`'help command\` to get help on a specific command`, + description: `Use \`'help \` to get help on a specific command`, fields: commands.map((group) => { return new Object({ name: group[0], @@ -80,7 +80,7 @@ module.exports = class Help extends Command { (c) => c.name == ctx.args[0].toLowerCase() || (c.aliases && c.aliases.includes(ctx.args[0].toLowerCase())) ); - console.log(command); + if (!command) return ctx.send(`That command couldn't be found. Use \`'help\` to see all commands.`); let fields = [ { @@ -109,8 +109,6 @@ module.exports = class Help extends Command { inline: true } ]; - if (!command) - return ctx.send(`That command couldn't be found. See the \`help\` command for valid commands.`); let embed = new MessageEmbed() .setTitle(command.name)