diff options
| author | Rapptz <[email protected]> | 2017-01-26 04:30:26 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-26 04:30:47 -0500 |
| commit | 1e09432c45054d0bef7a0fd4d2158d4e14f8f657 (patch) | |
| tree | 4d89938b3f3cfbcd0449098afb91e5817bfae99f /examples/background_task.py | |
| parent | Replace wait_for_* with a generic Client.wait_for (diff) | |
| download | discord.py-1e09432c45054d0bef7a0fd4d2158d4e14f8f657.tar.xz discord.py-1e09432c45054d0bef7a0fd4d2158d4e14f8f657.zip | |
Update examples to use the new generic wait_for.
Diffstat (limited to 'examples/background_task.py')
| -rw-r--r-- | examples/background_task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/background_task.py b/examples/background_task.py index f6d7abcf..a7da6fc7 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_until_ready() + await self.wait_for('ready') counter = 0 channel = self.get_channel(1234567) # channel ID goes here while not self.is_closed: |