From d5fefcdbbc1ae5ca733cdc9357a23f8dc66b16fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 5 Sep 2021 02:12:10 +0300 Subject: [PATCH] Removed commandAliases collection in messageCreate.js --- src/client/events/messageCreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/events/messageCreate.js b/src/client/events/messageCreate.js index ecc09aa..ccd314f 100644 --- a/src/client/events/messageCreate.js +++ b/src/client/events/messageCreate.js @@ -22,7 +22,7 @@ module.exports = { if (!args[0]) return; const commandName = args[0].toLowerCase(); if (commandName === 'none') return; - const command = client.commands.get(commandName) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName)) || client.commandAliases.get(commandName); + const command = client.commands.get(commandName) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName)); if (!command && message.content !== `${prefix}`) return; const permissions = message.channel.permissionsFor(message.client.user); if (!permissions.has('EMBED_LINKS')) return message.channel.send(client.messages.noPermsEmbed);