adjust colon

This commit is contained in:
Carol Knieriem 2020-02-07 12:49:04 -05:00
parent 6068ee89e3
commit c9f87cecbd
No known key found for this signature in database
GPG key ID: 932EC6A6BAEE122B

View file

@ -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);
}