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:
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user