user data

can you get users data like their username and using their userid if they don't share a server with the bot?
3 Replies
d.js docs
d.js docs2y ago
• 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.
zackie
zackie2y ago
and how do you do this ^
chewie 🌈
chewie 🌈2y ago
client.users.fetch('userid') returns a promise.