mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Undo coercion of partial DMChannel to PartialMessageable
This commit is contained in:
1 parent
1c40d43fd1
commit
dc9c224b54
2 files changed
+21
-5
No files matched your search
+1
-1
@@ -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