8000 fix(member): allow disconnecting a member from voice with MemberUpdate by yokkkoso · Pull Request #629 · disgoorg/disgo · GitHub
[go: up one dir, main page]

Skip to content

fix(member): allow disconnecting a member from voice with MemberUpdate - #629

Merged
topi314 merged 1 commit into
disgoorg:masterfrom
yokkkoso:fix/member-update-disconnect
Oct 20, 2026
Merged

topi314 merged 1 commit into
disgoorg:masterfrom
yokkkoso:fix/member-update-disconnect

Conversation

@yokkkoso
Copy link
Copy Markdown
Contributor

Discord disconnects a member from voice when channel_id is sent as null, but MemberUpdate.ChannelID was a *snowflake.ID with omitempty, so nil was dropped and a disconnect could not be expressed. ChannelID is now an omit.Omit[*snowflake.ID] like currently works CommunicationDisabledUntil: omit.NewPtr(channelID) moves the member, omit.NewNilPtrsnowflake.ID disconnects it

@topi314
topi314 merged commit cb21f26 into disgoorg:master Oct 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants

0