Can I use the API to access /users/@me

I was looking at the documentation and was looking through the API class in core package, and noticed that it has a usersapi but no functon for /users/@me instead you must provide and ID, is there an alternative? I doing OAUTH stuff want to access user details on behalf of them.
3 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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! - Marked as resolved by OP
duck
duck8mo ago
you'd be looking for <UsersAPI>.getCurrent(), not .get()
Jpac14
Jpac14OP8mo ago
Yea just found that lol haha thanks tho Is there a route for this /users/@me/guilds/{guild.id}/member sorry i found it
Want results from more Discord servers?
Add your server