#Find avatar by an ID

5 messages · Page 1 of 1 (latest)

shut brook
#

How could I told to used a specifical user ID (not the one who do the command but a specific ID set in the config before (so no option) and make it extract the avatar and name and other ?

somber barnBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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!
shut brook
feral locust
#

You can use <Client>.users.fetch("userId") to get a User object of someone with their ID, which includes avatar-related data, username, etc.

icy kettleBOT