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
- 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 OPyou'd be looking for
<UsersAPI>.getCurrent()
, not .get()
Yea just found that lol
haha thanks tho
Is there a route for this /users/@me/guilds/{guild.id}/member
sorry i found it