diff options
| author | Rapptz <[email protected]> | 2017-01-29 20:41:53 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-29 20:41:53 -0500 |
| commit | 01c17704bc17600e4a0e32c3cc721968e01cb457 (patch) | |
| tree | 25ccb183d00d657276a74bc5d41cdc89db30c24d | |
| parent | Re-add Client.wait_until_ready (diff) | |
| download | discord.py-01c17704bc17600e4a0e32c3cc721968e01cb457.tar.xz discord.py-01c17704bc17600e4a0e32c3cc721968e01cb457.zip | |
Remove unused Message._handle_upgrades function.
| -rw-r--r-- | discord/message.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/discord/message.py b/discord/message.py index d4367f23..72a08c4f 100644 --- a/discord/message.py +++ b/discord/message.py @@ -333,23 +333,6 @@ class Message: pattern = re.compile('|'.join(transformations.keys())) return pattern.sub(repl2, result) - def _handle_upgrades(self, channel_id): - self.guild = None - if isinstance(self.channel, Object): - return - - if self.channel is None: - if channel_id is not None: - self.channel = Object(id=channel_id) - self.channel.is_private = True - return - - if isinstance(self.channel, discord.abc.GuildChannel): - self.guild = self.channel.guild - found = self.guild.get_member(self.author.id) - if found is not None: - self.author = found - @property def created_at(self): """Returns the message's creation time in UTC.""" |