aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-08 02:05:21 -0500
committerRapptz <[email protected]>2017-01-08 02:05:21 -0500
commit92c1637921c13c092fa9b40e98c27605d2c32431 (patch)
tree3a7b2f0283ed35e833bcb1b2de30b45113907d13 /discord/client.py
parentAdd AutoShardedClient.change_presence. (diff)
downloaddiscord.py-92c1637921c13c092fa9b40e98c27605d2c32431.tar.xz
discord.py-92c1637921c13c092fa9b40e98c27605d2c32431.zip
Allow overriding the shard_ids used for initial shard launch.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 7f18effd..f7aa7641 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -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__)