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.
@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 is used to exit from a loop and
return is to exit the entire method you’re currently running.