discord-api-docs
discord-api-docs copied to clipboard
Clarify that user object is partial for /oauth2/@me
If you decide to fetch /oauth2/@me
with an access_token instead of /users/@me
, you will NOT get the email
field, the locale
field, the mfa_enabled
, verified
and maybe other fields as well.
This pull request aims to clarify that the user object is partial. Since that is only said for the application object right now.
Also, for other app developers reading, I see you can get the scope
field from /oauth2/token
, so I just changed back to using /users/@me
when I noticed all the missing fields from /oauth2/@me
no, it is not partial. all the fields you mentioned are optional fields, and they are usually not included in the user object. partial means that non-optional fields are missing, and that does not apply here.
what advaith said