add commands to cooldown collection
This commit is contained in:
		
							parent
							
								
									d214791a1f
								
							
						
					
					
						commit
						f6a1a854ca
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -20,6 +20,8 @@ class CommandHandler {
 | 
			
		|||
      }
 | 
			
		||||
 | 
			
		||||
      this.client.commands.set(props.help.name, props);
 | 
			
		||||
      
 | 
			
		||||
      this.client.cooldown.set(props.help.name, new Map());
 | 
			
		||||
 | 
			
		||||
      props.conf.aliases.forEach(alias => {
 | 
			
		||||
        this.client.aliases.set(alias, props.help.name);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue