fix: defer confirmation on filters command

This commit is contained in:
Marius Begby committed 2023-07-12 22:45:21 +02:00
1 parent da0519319d
commit 7534322784
1 file changed
+7 -10
+7 -10
View File
@@ -99,6 +99,8 @@ module.exports = {
time: 60000
});
confirmation.deferUpdate();
queue.filters.ffmpeg.setInputArgs([
'-threads',
filterThreadAmount,
@@ -164,16 +166,11 @@ module.exports = {
components: []
});
} catch (e) {
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
`**Cancelled**\nNo confirmation received within 1 minute.`
)
.setColor(embedColors.colorWarning)
],
components: []
});
if (e.code === 'InteractionCollectorError') {
return;
}
throw e;
}
}
};