mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 22:15:29 +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
|
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: []
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user