Guild member caching

What is the default behavior for guild member caching? Are guild members swept at all by default? Basically, if a bot had the presences intent and received all guild members that way, or didn't have the intent/the guild exceeded large_threshold members and guild.members.fetch() is called, is it guaranteed that all members in that guild are in the cache and will stay in the cache?
4 Replies
d.js toolkit
d.js toolkit4w ago
- 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 OP
nick.3w ago
Very helpful, thank you for the clarification. Out of curiosity do you know where in the source I can find the default sweeping behavior? By the way, congrats on becoming a mod here you deserve it :staffCat:
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
nick.3w ago
Yes thank you