mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 15:59:32 +00:00 
			
		
		
		
	Removed commandAliases collection in messageCreate.js
This commit is contained in:
		@@ -22,7 +22,7 @@ module.exports = {
 | 
				
			|||||||
        if (!args[0]) return;
 | 
					        if (!args[0]) return;
 | 
				
			||||||
        const commandName = args[0].toLowerCase();
 | 
					        const commandName = args[0].toLowerCase();
 | 
				
			||||||
        if (commandName === 'none') return;
 | 
					        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;
 | 
					        if (!command && message.content !== `${prefix}`) return;
 | 
				
			||||||
        const permissions = message.channel.permissionsFor(message.client.user);
 | 
					        const permissions = message.channel.permissionsFor(message.client.user);
 | 
				
			||||||
        if (!permissions.has('EMBED_LINKS')) return message.channel.send(client.messages.noPermsEmbed);
 | 
					        if (!permissions.has('EMBED_LINKS')) return message.channel.send(client.messages.noPermsEmbed);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user