Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing fields for Guild Member / User object #6117

Closed
mobolo723 opened this issue Apr 28, 2023 · 2 comments
Closed

Missing fields for Guild Member / User object #6117

mobolo723 opened this issue Apr 28, 2023 · 2 comments
Labels

Comments

@mobolo723
Copy link

Description

While using the API to retrieve user and member from a guild, i saw that some fields in the online documentation are missing.

path : docs/resources/user#user-object-user-structure
missing : avatar_decoration, display_name, global_name

path : docs/resources/guild#guild-member-object-guild-member-structure
missing : is_pending

Steps to Reproduce

  • HTTP GET on /guilds/{guild.id}/members/{user.id}
  • Parse JSON response
  • Missing fields on Member
  • Access user field in JSON
  • Missing fields on User

Expected Behavior

Documentation may have deprecated or future fields mentioned as it is easier to construct classes of data and see which field is optional or nullable

Current Behavior

Missing fields making parsing data harder

Screenshots/Videos

No response

Client and System Information

API version : 10

@mobolo723 mobolo723 added the bug label Apr 28, 2023
@jaw0r3k
Copy link
Contributor

jaw0r3k commented Apr 28, 2023

decorations - #5723

Um there is the same pending property

Display / global name - i dont think it should be there

@advaith1
Copy link
Contributor

is_pending is deprecated and should not be used
display_name is deprecated and should not be used
global_name is not released yet and should not be used

you are expected to only read known fields and ignore unknown/undocumented fields, as new fields can be added at any time.

@devsnek devsnek closed this as completed Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants