mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 11:29:33 +00:00 
			
		
		
		
	Fixed bug that came from previous commit
This commit is contained in:
		@@ -3,7 +3,11 @@ module.exports = {
 | 
				
			|||||||
    async execute(client, msg, Discord) {
 | 
					    async execute(client, msg, Discord) {
 | 
				
			||||||
        if (msg.author.bot || !msg.guild) return;
 | 
					        if (msg.author.bot || !msg.guild) return;
 | 
				
			||||||
        let prefix = client.config.prefix;
 | 
					        let prefix = client.config.prefix;
 | 
				
			||||||
        if(msg.mentions.members.first().user.id === client.user.id){ prefix = "<@!" + client.user.id + "> "; }
 | 
					        if(msg.mentions.members.first()){
 | 
				
			||||||
 | 
					            if(msg.mentions.members.first().user.id === client.user.id){
 | 
				
			||||||
 | 
					                prefix = "<@!" + client.user.id + "> ";
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        const args = msg.content.slice(prefix.length).split(' ');
 | 
					        const args = msg.content.slice(prefix.length).split(' ');
 | 
				
			||||||
        if (!msg.content.startsWith(prefix)) return;
 | 
					        if (!msg.content.startsWith(prefix)) return;
 | 
				
			||||||
        if (!args[0]) return;
 | 
					        if (!args[0]) return;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user