Re-add Client.wait_until_ready

This commit is contained in:
Rapptz
2017-01-29 20:32:37 -05:00
parent b27fab09eb
commit 8c896e9fbc
2 changed files with 23 additions and 1 deletions

View File

@ -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: