Avatar error
TypeError: user.displayAvatarURL is not a function
at Object.execute (C:\Users\csc21\OneDrive\Desktop\soapjs\src\components\buttons\userinfo.js:20:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.execute (C:\Users\csc21\OneDrive\Desktop\soapjs\src\events\client\interactionCreate.js:30:9)
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.code:
user
is a string
and a string does not have this methodso what do i need to change
fetch the user with its id
i believe it does
split[1] gives a userid
and an ID is a string
^
wdum
tyy