Filter execution fails

Hey, does someone know why my <TextChannel>.awaitMessages() collector filter won't get executed if the message content contains a channel mention? Code: https://sourceb.in/8A7sVxOADZ Intents: https://sourceb.in/KYKxHox7hG
2 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Fllooo
Fllooo2y ago
Current debugging info: -the filter will get executed if the message content contains no channel mention -if the message content contains a channel mention, the bot freezes and everything is dead(no event listeners, cron jobs etc. will get executed), but the bot won't crash Versions: discord.js -> 14.2.0 node -> 16.17.0. yarn(pnp) -> 3.2.2 typescript -> 4.7.4 That is correct, however I have already fixed that. The filter itself can be ignored, regardless of whether it performs its purpose or not. The point is that it is not even executed if the message content contains a Channel Mention. (I tested this with a debugger and Console.log() statements). Hmm I have no clue why this isn't working I'm absolutely confused Yeah, maybe I should refactor that. My code gets the channel afterwards, but I didn't post that I believe it doesn't But the code will be reached it the message content contains no channel mention Command: https://sourceb.in/hTTWkRxiPR InteractionUtils: https://sourceb.in/YQISE1aAsA The whole code isn't finished yet, the problem is that the filter itself won't get executed if the content contains a message mention. My console.logs only log something if the message content doesn't contain a channel mention Okay, i'm now very confused I've tried doing the same thing while using the most basic setup i could think of and it works...