Fix "thinking" message not getting deleted

Slash-V14
Supositware 3 months ago
parent 89f00a2fcf
commit e4b441e5f5

@ -163,7 +163,10 @@ async function download(url, interaction, originalInteraction, format = undefine
if (interactionMenu.customId === `preset${interaction.user.id}${interaction.id}`) { if (interactionMenu.customId === `preset${interaction.user.id}${interaction.id}`) {
await interactionMenu.deferReply({ ephemeral: false }); await interactionMenu.deferReply({ ephemeral: false });
compress(file, interactionMenu, Embed); compress(file, interactionMenu, Embed);
if (interaction.isMessage) interaction.cleanUp(); if (interaction.isMessage) {
interaction.deleteReply();
interaction.cleanUp();
}
} }
}); });
return; return;
@ -216,7 +219,10 @@ async function download(url, interaction, originalInteraction, format = undefine
await interaction.editReply({ embeds: [Embed], files: [output], ephemeral: false }); await interaction.editReply({ embeds: [Embed], files: [output], ephemeral: false });
} }
if (interaction.isMessage) interaction.cleanUp(); if (interaction.isMessage) {
interaction.deleteReply();
interaction.cleanUp();
}
}) })
.catch(async err => { .catch(async err => {
console.error(err); console.error(err);

Loading…
Cancel
Save