added blacklist check
This commit is contained in:
		
							parent
							
								
									749f80ac9c
								
							
						
					
					
						commit
						5d3e7b4366
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -38,6 +38,10 @@ module.exports = class {
 | 
			
		|||
      message.prefix = prefix;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    // Naughty users can't run commands!
 | 
			
		||||
    if (message.guild && data.member.blacklisted === true) return;
 | 
			
		||||
    if (data.user.blacklisted === true) return;
 | 
			
		||||
 | 
			
		||||
    const args = message.content.slice(prefix.length).trim().split(/ +/g);
 | 
			
		||||
    const command = args.shift().toLowerCase();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue