Fix stuff, test
parent
c3edc68a84
commit
d793731bc9
|
@ -52,7 +52,7 @@ export default class Help extends Command {
|
|||
let allowedUsers = cmd.permissions && cmd.permissions.users && cmd.permissions.users.map((u) => `<@${u}>`).join(', ');
|
||||
if (allowedUsers) { allowedUsers = `**Users:** ${allowedUsers}`; perms.push(allowedUsers); }
|
||||
const displayedPerms = perms.length ? `\n**Permissions:**\n${perms.join('\n')}` : '';
|
||||
const aliases = cmd.aliases.length ? `\n**Aliases:** ${cmd.aliases.map((alias) => `${this.client.config.prefix}${cmd.parentName ? `${cmd.parentName} ` : ''}${alias}`).join(', ')}` : '';
|
||||
const aliases = cmd.aliases.length ? `\n**Aliases:** ${cmd.aliases.map((alias) => `${this.client.config.prefix}${cmd.parentName}${alias}`).join(', ')}` : '';
|
||||
const subcommands = cmd.subcommands.size ? `\n**Subcommands:** ${cmd.subcommands.map((s) => `${cmd.name} ${s.name}`).join(', ')}` : '';
|
||||
const embed = new RichEmbed();
|
||||
embed.setTimestamp(); embed.setFooter(`Requested by ${message.author.username}#${message.author.discriminator}`, message.author.avatarURL);
|
||||
|
|
|
@ -24,7 +24,7 @@ export default class Load extends Command {
|
|||
this.client.config = require(`${corepath}/config.json`);
|
||||
delete require.cache[`${corepath}/config.json`];
|
||||
} else if (type === 'util') {
|
||||
const Util = require(`${corepath}/class/Util`);
|
||||
const Util = require(`${corepath}/class/Util`).default;
|
||||
this.client.util = new Util(this.client);
|
||||
delete require.cache[`${corepath}/class/Util.js`];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue