try 0 instead of null for ack

This commit is contained in:
Cynthia Foxwell 2024-05-17 15:25:53 -06:00
parent 1d44bac7ae
commit 9e210768fa
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 ? null : MessageFlags.EPHEMERAL);
interaction.acknowledge(shouldSend ? 0 : MessageFlags.EPHEMERAL);
try {
const response = await runCommand(interaction, command);