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

6 messages · Page 1 of 1 (latest)

fervent iron
#

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.

sand bladeBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
dense drift
#

you'd be looking for <UsersAPI>.getCurrent(), not .get()

fervent iron
#

Yea just found that lol

#

haha thanks tho

fervent iron