From b7c4cb011e32f96173e41953fd7af60585146978 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Wed, 10 Aug 2022 22:27:17 -0500 Subject: [PATCH] Fix errors when running with arguments | I don't trust this to not break again, xD --- commands/help.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/help.js b/commands/help.js index 6b98b22..d8d9ce2 100644 --- a/commands/help.js +++ b/commands/help.js @@ -22,6 +22,7 @@ module.exports = { if (!command) { return { embeds: [{ + color: 9442302, title: `:question: SEYMOUR! THE ${client.user.username} IS ON FIRE!`, description: `Run ${config.prefix}help for more information on each command.`, footer: { @@ -35,12 +36,11 @@ module.exports = { }; } - // const cmdName = args[0].toLowerCase(); const cmdName = command; const cmd = client.commands.get(cmdName); - console.log(cmd.options.map(option => option.required)); + console.log(cmd.options.map); if (!cmd) { - return client.generateErrorMessage(`${cmdName} is not a valid command! Run ${config.prefix}help for a command list.`); + return client.generateErrorMessage(`${cmdName} is not a valid command. Run ${config.prefix}help for a command list!`); } return { embeds: [{ @@ -55,8 +55,8 @@ module.exports = { { name: 'Command Name', value: `${cmdName}`, inline: true }, { name: 'Command Description', value: cmd.description, inline: true }, { name: 'Command Options', value: cmd.options.map(option => option.name).join('\n') || 'None', inline: true }, - { name: 'Command Option Description', value: cmd.options.map(option => option.description) || 'None', inline: true } -// { name: 'Command Option Required?', value: cmd.options.map(option => option.required) ? 'Yes' : 'No' } + { name: 'Command Option Description', value: cmd.options.map(option => option.description).join('\n') || 'None', inline: true } + // { name: 'Command Option Required?', value: cmd.options.map(option => option.required) ? 'Yes' : 'No' } ] }] };