aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-16 05:51:11 -0400
committerRapptz <[email protected]>2017-03-16 05:51:11 -0400
commitdf0f1bfbdf96b2aa98fe761e7b98ead87acb7ed5 (patch)
treea49dc8e82ddd8808fbe9bdecb7c383b04999fa7c
parentHandle case when guild owner somehow doesn't exist in permissions_for (diff)
downloaddiscord.py-df0f1bfbdf96b2aa98fe761e7b98ead87acb7ed5.tar.xz
discord.py-df0f1bfbdf96b2aa98fe761e7b98ead87acb7ed5.zip
Fix Client inability to shard by actually propagating the shard_id
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index c1080876..2f2da043 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -344,7 +344,7 @@ class Client:
@asyncio.coroutine
def _connect(self):
- self.ws = yield from DiscordWebSocket.from_client(self)
+ self.ws = yield from DiscordWebSocket.from_client(self, shard_id=self.shard_id)
while True:
try: