fix: Handle max queue size in /play command when adding large playlists.

This commit is contained in:
Marius Begby committed 2023-07-24 21:18:52 +02:00
1 parent d9d66449d1
commit 8e42f755e7
3 files changed
+25 -2

No files matched your search

@@ -23,6 +23,12 @@ module.exports = {
try {
await command.autocomplete({ interaction, client });
} catch (error) {
if (error.message === 'Unknown interaction') {
logger.debug(
`[Shard ${interaction.guild.shardId}] Autocomplete failed to be responded to, providing a response took too long.`
);
return;
}
logger.warn(error, `[Shard ${interaction.guild.shardId}] Autocomplete failed to execute.`);
return;
}