From 88906b60eda295185443fa6981316ec3c91a19a0 Mon Sep 17 00:00:00 2001 From: Choco Date: Sun, 1 Mar 2026 22:26:08 +0800 Subject: [PATCH] Add channelId to voice state; upgrade discord.py for DAVE protocol Include channelId in the voice session payload to ensure correct voice state. Upgrade discord.py from 2.6.4 to 2.7.0 to comply with Discord's DAVE protocol requirements. --- requirements.txt | 2 +- voicelink/player.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 19417d4..c93bb82 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -discord.py==2.6.4 +discord.py==2.7.0 motor==3.6.0 dnspython==2.2.1 tldextract==3.2.1 diff --git a/voicelink/player.py b/voicelink/player.py index e79e137..c54626c 100644 --- a/voicelink/player.py +++ b/voicelink/player.py @@ -350,6 +350,7 @@ class Player(VoiceProtocol): "token": state['event']['token'], "endpoint": state['event']['endpoint'], "sessionId": state['sessionId'], + "channelId": str(self.channel.id), } await self.send(method=RequestMethod.PATCH, data={"voice": data})