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 docs3y 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
zackieOP3y ago
and how do you do this ^
chewie
chewie3y ago
client.users.fetch('userid') returns a promise.
Want results from more Discord servers?
Add your server