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

fix(APIGuildMember): make user required and omit in messages #998

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

advaith1
Copy link
Contributor

@advaith1 advaith1 commented Jun 4, 2024

Currently user is optional on APIGuildMember, but the only case it isn't present is in the message gateway events, because those have message.author so message.member.user would be redundant. This leads to a bad experience when using other member objects, since user will be there but the optionality needs to be handled.

This PR sets user required in APIGuildMember, and omits it where it is not present (GatewayMessageEventExtraFields).

@advaith1 advaith1 requested review from a team as code owners June 4, 2024 23:03
Copy link

vercel bot commented Jun 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discord-api-types ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 5:45pm

Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please name the test file in the same pattern as the other files (so name.test-d.ts)

@advaith1
Copy link
Contributor Author

advaith1 commented Jun 5, 2024

oops i thought i did that. fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants