Need Urgently help with a code

I need urgently help with this


According to this Discord.js article, it’s better to use “message collectors” rather than .awaitMessages() if you want to stop awaiting messages.

If you use message collectors, you can use the collector.stop() function which will do exactly what you desire. :wink:

@khalby786 how can i do that.

Btw i want to do that with using break statement but still i don’t know why my if statement not working


I think you should use return instead of break as break is used to exit from a loop and return is to exit the entire method you’re currently running.