diff options
| author | Rapptz <[email protected]> | 2015-12-29 01:20:36 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-29 01:20:36 -0500 |
| commit | 33dbd8439850dab4736d070b38c335828543c0d8 (patch) | |
| tree | 100174b686aa44a3b89a93cb82d8aaa368d55a54 /discord/message.py | |
| parent | Client.create_invite now works without a websocket connection (diff) | |
| download | discord.py-33dbd8439850dab4736d070b38c335828543c0d8.tar.xz discord.py-33dbd8439850dab4736d070b38c335828543c0d8.zip | |
Message no longer upgrades if the channel is an Object
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/message.py b/discord/message.py index 8981de2c..306e7c47 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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) |