InteractionCollectorError ignores try/catch block

I'm trying to cover some edge cases of my project, one of those being that the message is deleted by a moderator before the bot's awaitMessageComponent has expired. Of course this throws an error, but for some reason, not even the global try catch block I have manages to detect it. Is there any explanation to that?
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Luca | LeCarbonator
else reject(new DiscordjsError(ErrorCodes.InteractionCollectorError, reason));
^
Error [InteractionCollectorError]: Collector received no interactions before ending with reason: messageDelete
else reject(new DiscordjsError(ErrorCodes.InteractionCollectorError, reason));
^
Error [InteractionCollectorError]: Collector received no interactions before ending with reason: messageDelete
Want results from more Discord servers?
Add your server