aboutsummaryrefslogtreecommitdiff
path: root/examples/background_task.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-29 20:51:47 -0500
committerRapptz <[email protected]>2017-01-29 20:53:17 -0500
commite77012f4d91dfdb45813fb9fe906a7f791ca4fcf (patch)
tree16b2cd2fcaaea5f09c6c12b3d95bd6f3aac4018d /examples/background_task.py
parentRemove unused Message._handle_upgrades function. (diff)
downloaddiscord.py-e77012f4d91dfdb45813fb9fe906a7f791ca4fcf.tar.xz
discord.py-e77012f4d91dfdb45813fb9fe906a7f791ca4fcf.zip
Make all public is_ functions into methods instead of properties.
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 f6d7abcf..a72862fb 100644
--- a/examples/background_task.py
+++ b/examples/background_task.py
@@ -18,7 +18,7 @@ class MyClient(discord.Client):
await self.wait_until_ready()
counter = 0
channel = self.get_channel(1234567) # channel ID goes here
- while not self.is_closed:
+ while not self.is_closed():
counter += 1
await channel.send(counter)
await asyncio.sleep(60) # task runs every 60 seconds