await ack
This commit is contained in:
		
							parent
							
								
									ecef440d73
								
							
						
					
					
						commit
						80833c60a2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -46,7 +46,7 @@ async function runCommand(interaction, command) {
 | 
			
		|||
async function InteractionDispatcher(interaction) {
 | 
			
		||||
  const command = hf.interactionCommands.get(interaction.data.name);
 | 
			
		||||
  const shouldSend = getOption(interaction, command, "send");
 | 
			
		||||
  interaction.acknowledge(shouldSend ? 0 : MessageFlags.EPHEMERAL);
 | 
			
		||||
  await interaction.acknowledge(shouldSend ? 0 : MessageFlags.EPHEMERAL);
 | 
			
		||||
 | 
			
		||||
  try {
 | 
			
		||||
    const response = await runCommand(interaction, command);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue