Skip to content

Commit 405d15d

Browse files
RevnoplexLulalaby
andauthored
fix: deprecated use of dict methods on _PayloadLike classes (#3189)
* fix: deprecated use of dict methods on _PayloadLike classes * changelog entry for #3189 * fix: fkng precommit --------- Co-authored-by: Lala Sabathil <aiko@aitsys.dev>
1 parent 053aa22 commit 405d15d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ These changes are available on the `master` branch, but have not yet been releas
2020
([#3171](https://github.com/Pycord-Development/pycord/pull/3171))
2121
- Fixed `View.from_dict()` incorrectly returning `None`.
2222
([#3181](https://github.com/Pycord-Development/pycord/pull/3181))
23+
- Fixed internal use of deprecated _PayloadLike dict operations.
24+
([#3189](https://github.com/Pycord-Development/pycord/pull/3189))
2325

2426
### Deprecated
2527

discord/voice/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ async def voice_state_update(self, data: RawVoiceStateUpdateEvent) -> None:
346346
await self.disconnect()
347347
return
348348

349-
self.session_id = data["session_id"]
349+
self.session_id = data.session_id
350350

351351
if self.state in (
352352
ConnectionFlowState.set_guild_voice_state,

0 commit comments

Comments
 (0)