Set Message.guild from guild_id if unavailable through Message.channel

This commit is contained in:
Lilly Rose Berner authored and GitHub committed 2021-06-28 19:03:59 -04:00
1 parent e96df33ce0
commit 6b1d46a1ea
2 files changed
+11 -13

No files matched your search

+1 -1
View File
@@ -1277,7 +1277,7 @@ class AutoShardedConnectionState(ConnectionState):
if new_guild is not None and new_guild is not msg.guild:
channel_id = msg.channel.id
channel = new_guild.get_channel(channel_id) or new_guild.get_thread(channel_id) or Object(id=channel_id)
msg._rebind_channel_reference(channel)
msg._rebind_cached_references(new_guild, channel)
async def chunker(self, guild_id, query='', limit=0, presences=False, *, shard_id=None, nonce=None):
ws = self._get_websocket(guild_id, shard_id=shard_id)