How to cache and receive User Object
Hello,
I'm currently trying to cache users by using
and i log it by:
How can i get the User object back instead of IDs?
8 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!Latest discord.js version
wym?
Collection#forEach()
Executes a provided function once per each key/value pair in the Map, in insertion order.
Alright now i get a log, how can i make it random pick?
And how can i make it ignore user if its a bot
Alright thanks