Undo coercion of partial DMChannel to PartialMessageable

This commit is contained in:
Rapptz committed 2021-08-10 22:10:45 -04:00
1 parent 1c40d43fd1
commit dc9c224b54
2 files changed
+21 -5

No files matched your search

+1 -1
View File
@@ -405,7 +405,7 @@ class ConnectionState:
try:
guild = self._get_guild(int(data['guild_id']))
except KeyError:
channel = PartialMessageable(state=self, id=channel_id, type=ChannelType.private)
channel = DMChannel._from_message(self, channel_id)
guild = None
else:
channel = guild and guild._resolve_channel(channel_id)