adjust colon
This commit is contained in:
parent
6068ee89e3
commit
c9f87cecbd
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ exports.run = async (client, message, args, level) => {
|
|||
commands = client.commands(args[1]);
|
||||
title = `== Commands under category ${args[1]} ==`;
|
||||
} else if(/^all|full|every$/i.test(args[0])) {
|
||||
commands = message.guild ? client.commands ? client.commands.filter (cmd => cmd.conf.guildOnly !== true);
|
||||
commands = message.guild ? client.commands : client.commands.filter (cmd => cmd.conf.guildOnly !== true);
|
||||
} else if(/^mine|usable$/i.test(args[0])) {
|
||||
commands = message.guild ? client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level) : client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level && cmd.conf.guildOnly !== true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue