fix send false for ack
This commit is contained in:
parent
462763060b
commit
3988f45797
1 changed files with 1 additions and 1 deletions
|
@ -44,9 +44,9 @@ async function runCommand(interaction, command) {
|
|||
}
|
||||
|
||||
async function InteractionDispatcher(interaction) {
|
||||
interaction.acknowledge();
|
||||
const command = hf.interactionCommands.get(interaction.data.name);
|
||||
const shouldSend = getOption(interaction, command, "send");
|
||||
interaction.acknowledge(shouldSend ? null : MessageFlags.EPHEMERAL);
|
||||
|
||||
try {
|
||||
const response = await runCommand(interaction, command);
|
||||
|
|
Loading…
Reference in a new issue