Fetch all guild members
Hello! I want to fetch all members of my guild (around 40k) without blocking incoming interactions and without sending a request for every member.
Right now I use:
<Guild>.members.fetch()
.
What would be a better alternative? Can I somehow split up the requests?2 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!
- ✅
Marked as resolved by OPI mean it wouldn't be an issue if I kept my old instance running until the new one got the result right?
then I'll just keep it like that
oh yeah but I can avoid that
only respond when fully ready and then kill the other instance or something
yeah it's like 10s
not that long but still noticeable
I mean I always get some downtime when restarting my bot so it might be a good point to change that
will have to see if it's worth it
thank you for now :D