discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Clarify that user object is partial for /oauth2/@me

Open wnelson03 opened this issue 3 months ago • 1 comments

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

image

wnelson03 avatar Mar 23 '24 15:03 wnelson03

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.

advaith1 avatar Apr 15 '24 07:04 advaith1

what advaith said

shaydewael avatar Apr 30 '24 17:04 shaydewael