From ec3c3eb4c68e8f4ae9f09d51d530cc33add7bef8 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 23 Jul 2020 00:17:22 -0400 Subject: Update message references in AutoShardedConnectionState Fixes #5133 --- discord/message.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'discord/message.py') diff --git a/discord/message.py b/discord/message.py index 5b4d79cb..a09c2d73 100644 --- a/discord/message.py +++ b/discord/message.py @@ -524,6 +524,14 @@ class Message: call['participants'] = participants self.call = CallMessage(message=self, **call) + def _rebind_channel_reference(self, new_channel): + self.channel = new_channel + + try: + del self._cs_guild + except AttributeError: + pass + @utils.cached_slot_property('_cs_guild') def guild(self): """Optional[:class:`Guild`]: The guild that the message belongs to, if applicable.""" -- cgit v1.2.3