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 time: 60000
}); });
confirmation.deferUpdate();
queue.filters.ffmpeg.setInputArgs([ queue.filters.ffmpeg.setInputArgs([
'-threads', '-threads',
filterThreadAmount, filterThreadAmount,
@@ -164,16 +166,11 @@ module.exports = {
components: [] components: []
}); });
} catch (e) { } catch (e) {
return await interaction.editReply({ if (e.code === 'InteractionCollectorError') {
embeds: [ return;
new EmbedBuilder() }
.setDescription(
`**Cancelled**\nNo confirmation received within 1 minute.` throw e;
)
.setColor(embedColors.colorWarning)
],
components: []
});
} }
} }
}; };