Update examples to use the new generic wait_for.

This commit is contained in:
Rapptz
2017-01-26 04:30:26 -05:00
parent e5cb7d295c
commit 1e09432c45
2 changed files with 10 additions and 6 deletions

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: