How can discord.js cache all users, channels, guilds into Collection?
Title
10 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Please elaborate your question a bit more
Like how discord.js does so that instead of fetching data, users can use cache instead? Like guilds.cache for example?
The client receives the data based on intents
If you have the Guilds intent, channels will be sent at the startup
Same for roles etc., but not for users
so users need to be fetched before?
you cannot fetch all users
yeah ik, but how
users.cache
work?
is that members data from the guilds?thats just cached users
not members
That contains users your bot interacted with in any way, like receiving events from them
ty