commandDispatcher: attempt to mitigate reruns from embed loading
This commit is contained in:
		
							parent
							
								
									05c9d98575
								
							
						
					
					
						commit
						4c7b35b13c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -83,6 +83,7 @@ async function CommandDispatcher(msg) {
 | 
			
		|||
    const args = parseArguments(line);
 | 
			
		||||
 | 
			
		||||
    try {
 | 
			
		||||
      msg.hasRan = true;
 | 
			
		||||
      const response = await runCommand(msg, cmd, line, args);
 | 
			
		||||
      if (response != null) {
 | 
			
		||||
        let file;
 | 
			
		||||
| 
						 | 
				
			
			@ -136,7 +137,6 @@ async function CommandDispatcher(msg) {
 | 
			
		|||
            });
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
        msg.hasRan = true;
 | 
			
		||||
      }
 | 
			
		||||
    } catch (err) {
 | 
			
		||||
      msg.channel.createMessage({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue