Undo coercion of partial DMChannel to PartialMessageable

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

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)