mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
fix: defer confirmation on filters command
This commit is contained in:
1 parent
da0519319d
commit
7534322784
1 file changed
+7
-10
+7
-10
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user