diff --git a/CHANGELOG.md b/CHANGELOG.md index d0fca146d8..3674d773d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -168,6 +168,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2191](https://github.com/Pycord-Development/pycord/pull/2191)) - Fixed a misplaced payload object inside of the thread creation payload. ([#2192](https://github.com/Pycord-Development/pycord/pull/2192)) +- Fixed `DMChannel.recipient` being None and consequently `User.dm_channel` also being + None. ([#2219](https://github.com/Pycord-Development/pycord/pull/2219)) ## [2.4.1] - 2023-03-20 diff --git a/discord/channel.py b/discord/channel.py index 076b2c704f..6121dd5890 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -2817,7 +2817,7 @@ def __init__( self._state: ConnectionState = state self.recipient: User | None = None if r := data.get("recipients"): - self.recipient: state.store_user(r[0]) + self.recipient = state.store_user(r[0]) self.me: ClientUser = me self.id: int = int(data["id"])