Skip to content

Conversation

@ducktrshessami
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
#1290 accidentally stripped the guild_id from GatewayVoiceStateUpdateDispatchData. After re-adding this back, I noticed it loops back around to being 1:1 with APIVoiceState making the whole change to GatewayVoiceStateUpdateDispatchData unnecessary in the first place.

As for how GatewayVoiceStateUpdateDispatchData was used in GatewayGuildCreateDispatchData, I noticed the aforementioned PR already looped back around to APIVoiceStateMember#member being the same as it was originally as APIBaseVoiceState#member. So, the changes to GatewayGuildCreateDispatchData and APIBaseVoiceState were also unnecessary.

Therefore, this partially reverts #1290.

If applicable, please reference Discord API Docs PRs or commits that influenced this PR:

@vercel
Copy link

vercel bot commented Aug 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
discord-api-types Ready Ready Preview Comment Aug 29, 2025 5:04pm

Jiralite
Jiralite previously approved these changes Aug 28, 2025
/**
* The guild member this voice state is for
*
* @remarks The member field will have `joined_at` set to `null` if the member was invited as a guest.
Copy link
Member

Choose a reason for hiding this comment

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

This remark should be kept with the move back to APIBaseVoiceState, not removed.

Copy link
Contributor Author

@ducktrshessami ducktrshessami Aug 30, 2025

Choose a reason for hiding this comment

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

Actually upon further consideration, would it not make more sense to move this to APIGuildMemberJoined#joined_at itself? I figure it was originally added here due to the same misconception that created APIVoiceStateMember in the first place.

@vladfrangu vladfrangu merged commit e52ac85 into discordjs:main Sep 16, 2025
6 checks passed
@ducktrshessami ducktrshessami deleted the fix/voice-states branch September 26, 2025 19:44
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.

4 participants