Make all public is_ functions into methods instead of properties.

This commit is contained in:
Rapptz
2017-01-29 20:51:47 -05:00
parent 01c17704bc
commit e77012f4d9
6 changed files with 11 additions and 16 deletions

View File

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