Skip to content

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
@vercel
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