ACTUALLY fixed cooldown
This commit is contained in:
		
							parent
							
								
									3589373ce9
								
							
						
					
					
						commit
						2408257b44
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -154,8 +154,9 @@ module.exports = async (client, message) => {
 | 
				
			||||||
  if (cooldown.has(message.author.id)) {
 | 
					  if (cooldown.has(message.author.id)) {
 | 
				
			||||||
    return message.channel.send(
 | 
					    return message.channel.send(
 | 
				
			||||||
      `⏱️ You are being ratelimited. Please try again in 2 seconds.`
 | 
					      `⏱️ You are being ratelimited. Please try again in 2 seconds.`
 | 
				
			||||||
      )
 | 
					    ).then(msg => {
 | 
				
			||||||
      .then(m => m.delete(5000));
 | 
					      msg.delete({timeout: 2000});
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (message.guild && !perms.has('SEND_MESSAGES')) {
 | 
					  if (message.guild && !perms.has('SEND_MESSAGES')) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue