Allow overriding the shard_ids used for initial shard launch.

This commit is contained in:
Rapptz
2017-01-08 02:05:21 -05:00
parent 4bc6625739
commit 92c1637921
3 changed files with 22 additions and 6 deletions

View File

@@ -406,7 +406,7 @@ class Client:
while not self.is_closed:
try:
yield from ws.poll_event()
yield from self.ws.poll_event()
except (ReconnectWebSocket, ResumeWebSocket) as e:
resume = type(e) is ResumeWebSocket
log.info('Got ' + type(e).__name__)