I need urgently help with this
Hi,
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.
Btw i want to do that with using break statement but still i don’t know why my if statement not working
@khalby786
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.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.