fixed 'help
This commit is contained in:
parent
9cae3318f1
commit
e8d656143c
1 changed files with 2 additions and 4 deletions
|
@ -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 <command>\` 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)
|
||||
|
|
Loading…
Reference in a new issue