Preparing to make the huge overhaul
This commit is contained in:
parent
d8df28edbc
commit
e1ecadfc8e
|
@ -15,10 +15,11 @@ exports.run = async (client, message, args, level) => {
|
||||||
commands = client.commands.filter(cmd => cmd.help.category === args[1]);
|
commands = client.commands.filter(cmd => cmd.help.category === args[1]);
|
||||||
title = `== ${args[1]} commands ==`;
|
title = `== ${args[1]} commands ==`;
|
||||||
} else if(args[0] === "all" || args[0] === "full" || args[0] === "every") {
|
} else if(args[0] === "all" || args[0] === "full" || args[0] === "every") {
|
||||||
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);
|
commands = message.guild ? client.commands : client.commands.filter(cmd.conf.guildOnly !== true);
|
||||||
title = "== All Commands =="
|
title = "== All Commands =="
|
||||||
} else if(args[0] === "mine" || args[0] === "usable") {
|
} else if(args[0] === "mine" || args[0] === "usable") {
|
||||||
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);
|
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);
|
||||||
|
title = `== ${message.author.username}'s Usable Commands ==`
|
||||||
} else {
|
} else {
|
||||||
let command = args[0];
|
let command = args[0];
|
||||||
if (client.commands.has(command)) {
|
if (client.commands.has(command)) {
|
||||||
|
|
Loading…
Reference in New Issue