#TypeError help

2 messages · Page 1 of 1 (latest)

subtle cairn
#

I keep getting the error "TypeError: Cannot read properties of undefined (reading 'tag')" I have tried for some time now but I just can't solve it even the code it is in is
"let user = client.users.cache.find(user => user.id === 'USER-ID');

    console.log(user.tag);"
placid wing
#

• 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.