aboutsummaryrefslogtreecommitdiff
path: root/examples/background_task.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-29 20:32:37 -0500
committerRapptz <[email protected]>2017-01-29 20:33:48 -0500
commit8c896e9fbc52cb46f0d789570d64aacd369ffa06 (patch)
tree3b10a7945613e6fca12478cb506dfbf5dd3089eb /examples/background_task.py
parentAllow removing an embed in Message.edit (diff)
downloaddiscord.py-8c896e9fbc52cb46f0d789570d64aacd369ffa06.tar.xz
discord.py-8c896e9fbc52cb46f0d789570d64aacd369ffa06.zip
Re-add Client.wait_until_ready
Diffstat (limited to 'examples/background_task.py')
-rw-r--r--examples/background_task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/background_task.py b/examples/background_task.py
index a7da6fc7..f6d7abcf 100644
--- a/examples/background_task.py
+++ b/examples/background_task.py
@@ -15,7 +15,7 @@ class MyClient(discord.Client):
print('------')
async def my_background_task(self):
- await self.wait_for('ready')
+ await self.wait_until_ready()
counter = 0
channel = self.get_channel(1234567) # channel ID goes here
while not self.is_closed: