Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

Commit 32f227e

Browse files
committed
Include channelId in voice state payload
Add the channelId field to the voice state payload sent by Player, serializing it to a string when present and using None otherwise. This ensures voice session updates include the target channel and fixes payload formatting (added trailing comma) for consistency. (Dave Support)
1 parent 3ef66da commit 32f227e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wavelink/player.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ async def _dispatch_voice_update(self) -> None:
314314
"voice": {
315315
"sessionId": self._voice_state["sessionId"],
316316
"token": self._voice_state["event"]["token"],
317-
"endpoint": self._voice_state["event"]["endpoint"]
318-
317+
"endpoint": self._voice_state["event"]["endpoint"],
318+
"channelId": str(self.channel_id) if self.channel_id else None
319319
}
320320
}
321321
except KeyError:

0 commit comments

Comments
 (0)