mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Message no longer upgrades if the channel is an Object
This commit is contained in:
parent
2cd1ec3066
commit
33dbd84398
@ -172,6 +172,9 @@ class Message:
|
||||
|
||||
def _handle_upgrades(self, channel_id):
|
||||
self.server = None
|
||||
if isinstance(self.channel, Object):
|
||||
return
|
||||
|
||||
if self.channel is None:
|
||||
if channel_id is not None:
|
||||
self.channel = Object(id=channel_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user