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

View file

@ -46,7 +46,7 @@ async function runCommand(interaction, command) {
async function InteractionDispatcher(interaction) { async function InteractionDispatcher(interaction) {
const command = hf.interactionCommands.get(interaction.data.name); const command = hf.interactionCommands.get(interaction.data.name);
const shouldSend = getOption(interaction, command, "send"); const shouldSend = getOption(interaction, command, "send");
interaction.acknowledge(shouldSend ? null : MessageFlags.EPHEMERAL); interaction.acknowledge(shouldSend ? 0 : MessageFlags.EPHEMERAL);
try { try {
const response = await runCommand(interaction, command); const response = await runCommand(interaction, command);