Undo coercion of partial DMChannel to PartialMessageable
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user