#Find avatar by an ID
5 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!
Discord.js : 14.15.2
Node : 20.12.1
You can use <Client>.users.fetch("userId") to get a User object of someone with their ID, which includes avatar-related data, username, etc.
UserManager#fetch @14.15.2
Obtains a user from Discord, or the user cache if it's already available.