Getting a user’s Discord AvatarURL
Hey! I’m trying to make a slash-command which will reply with the user’s AvatarURL
3 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 staffdocumentation suggestion for @leafisnothere:
:method: User#displayAvatarURL()
[email protected]
A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned.Appreciate that