1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 18:56:00 +00:00

Updated command aliases

This commit is contained in:
MatteZ02
2020-05-15 19:05:39 +03:00
parent b76af649f2
commit 256585293e
33 changed files with 73 additions and 65 deletions

View File

@ -32,12 +32,11 @@ function getCommand(client, args, msg, Discord) {
const command =
client.commands.get(commandName) ||
client.commands.find(
(cmd) => cmd.aliases && cmd.aliases.includes(commandName)
) ||
client.commandAliases.get(commandName);
(cmd) => cmd.alias && cmd.alias.includes(commandName)
);
if (!command) return;
if (command.onlyDev && msg.author.id !== client.config.devId) return;
if (client.config.devMode && msg.member.id !== client.config.devId)
return msg.channel.send(client.messages.devMode);
client.funcs.exe(msg, args, client, Discord, command);
}
}