Is having too many awaitMessageComponent/createMessageComponentCollector bad?
Hey, I have a Discord bot with around 50k guilds.
It is a verification bot. I use awaitMessageComponent/createMessageComponentCollector to mostly handle multiple steps in the verification flow eg: Read Rules, Enter Captcha, Done. So I was wondering is doing it using
client.on(createInteraction, (fun))
is any way better in terms of memory/heap usage?4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!The problem is I am getting
Javascript heap out of memory
error on few shards when tons of people starts verifying at once.Technically not really
Collectors attaches listener to that event and listen to them
Yeah, so it shouldn't really have that much effect on the heap right?
Also I always use 10mins timeout as well
I am not sure what is causing that heap error. I am not sure how I can debug this issue properly.