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);
 | 
					    const args = parseArguments(line);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
 | 
					      msg.hasRan = true;
 | 
				
			||||||
      const response = await runCommand(msg, cmd, line, args);
 | 
					      const response = await runCommand(msg, cmd, line, args);
 | 
				
			||||||
      if (response != null) {
 | 
					      if (response != null) {
 | 
				
			||||||
        let file;
 | 
					        let file;
 | 
				
			||||||
| 
						 | 
					@ -136,7 +137,6 @@ async function CommandDispatcher(msg) {
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        msg.hasRan = true;
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    } catch (err) {
 | 
					    } catch (err) {
 | 
				
			||||||
      msg.channel.createMessage({
 | 
					      msg.channel.createMessage({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue