From 5076b7deefcdac030af3f6090ba02a0a5146e5e4 Mon Sep 17 00:00:00 2001 From: Bsian Date: Fri, 1 Nov 2019 00:17:57 +0000 Subject: [PATCH] Attempted fix at help --- src/commands/help.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/help.ts b/src/commands/help.ts index 7ffdcdf..d8da7ea 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -44,7 +44,7 @@ export default class Help extends Command { if (cmdPages.length === 1) return message.channel.createMessage({ embed: cmdPages[0] }); return createPaginationEmbed(message, this.client, cmdPages); } - const { cmd } = await this.client.util.resolveCommand(args[0], args, message); + const { cmd } = await this.client.util.resolveCommand(args[0], args.slice(1), message); if (!cmd) return message.channel.createMessage(`${this.client.stores.emojis.error} **Command not found!**`); const perms: string[] = []; let allowedRoles = cmd.permissions && cmd.permissions.roles && cmd.permissions.roles.map((r) => `<@&${r}>`).join(', ');