Fix "thinking" message not getting deleted
This commit is contained in:
parent
89f00a2fcf
commit
e4b441e5f5
1 changed files with 8 additions and 2 deletions
|
@ -163,7 +163,10 @@ async function download(url, interaction, originalInteraction, format = undefine
|
|||
if (interactionMenu.customId === `preset${interaction.user.id}${interaction.id}`) {
|
||||
await interactionMenu.deferReply({ ephemeral: false });
|
||||
compress(file, interactionMenu, Embed);
|
||||
if (interaction.isMessage) interaction.cleanUp();
|
||||
if (interaction.isMessage) {
|
||||
interaction.deleteReply();
|
||||
interaction.cleanUp();
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
|
@ -216,7 +219,10 @@ async function download(url, interaction, originalInteraction, format = undefine
|
|||
await interaction.editReply({ embeds: [Embed], files: [output], ephemeral: false });
|
||||
}
|
||||
|
||||
if (interaction.isMessage) interaction.cleanUp();
|
||||
if (interaction.isMessage) {
|
||||
interaction.deleteReply();
|
||||
interaction.cleanUp();
|
||||
}
|
||||
})
|
||||
.catch(async err => {
|
||||
console.error(err);
|
||||
|
|
Loading…
Reference in a new issue