diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c71fca881..386fe98414 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#3171](https://github.com/Pycord-Development/pycord/pull/3171)) - Fixed `View.from_dict()` incorrectly returning `None`. ([#3181](https://github.com/Pycord-Development/pycord/pull/3181)) +- Fixed internal use of deprecated _PayloadLike dict operations. + ([#3189](https://github.com/Pycord-Development/pycord/pull/3189)) ### Deprecated diff --git a/discord/voice/state.py b/discord/voice/state.py index 7f659899ad..8bb8af1478 100644 --- a/discord/voice/state.py +++ b/discord/voice/state.py @@ -346,7 +346,7 @@ async def voice_state_update(self, data: RawVoiceStateUpdateEvent) -> None: await self.disconnect() return - self.session_id = data["session_id"] + self.session_id = data.session_id if self.state in ( ConnectionFlowState.set_guild_voice_state,