await ack

This commit is contained in:
Cynthia Foxwell 2024-05-18 19:08:16 -06:00
parent ecef440d73
commit 80833c60a2
1 changed files with 1 additions and 1 deletions

View File

@ -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);