Attempted fix at help

merge-requests/1/merge
Bsian 2019-11-01 00:17:57 +00:00
parent f92245b843
commit 5076b7deef
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ export default class Help extends Command {
if (cmdPages.length === 1) return message.channel.createMessage({ embed: cmdPages[0] }); if (cmdPages.length === 1) return message.channel.createMessage({ embed: cmdPages[0] });
return createPaginationEmbed(message, this.client, cmdPages); 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!**`); if (!cmd) return message.channel.createMessage(`${this.client.stores.emojis.error} **Command not found!**`);
const perms: string[] = []; const perms: string[] = [];
let allowedRoles = cmd.permissions && cmd.permissions.roles && cmd.permissions.roles.map((r) => `<@&${r}>`).join(', '); let allowedRoles = cmd.permissions && cmd.permissions.roles && cmd.permissions.roles.map((r) => `<@&${r}>`).join(', ');