Update examples to use the new generic wait_for.

This commit is contained in:
Rapptz committed 2017-01-26 04:30:47 -05:00
1 parent e5cb7d295c
commit 1e09432c45
2 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ class MyClient(discord.Client):
print('------')
async def my_background_task(self):
await self.wait_until_ready()
await self.wait_for('ready')
counter = 0
channel = self.get_channel(1234567) # channel ID goes here
while not self.is_closed: