From e77012f4d91dfdb45813fb9fe906a7f791ca4fcf Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 29 Jan 2017 20:51:47 -0500 Subject: Make all public is_ functions into methods instead of properties. --- discord/client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'discord/client.py') diff --git a/discord/client.py b/discord/client.py index 2e99b102..8cf5d00b 100644 --- a/discord/client.py +++ b/discord/client.py @@ -193,7 +193,6 @@ class Client: """List[:class:`VoiceClient`]: Represents a list of voice connections.""" return self.connection.voice_clients - @property def is_ready(self): """bool: Specifies if the client's internal cache is ready for use.""" return self._ready.is_set() @@ -359,7 +358,7 @@ class Client: """ self.ws = yield from DiscordWebSocket.from_client(self) - while not self.is_closed: + while not self.is_closed(): try: yield from self.ws.poll_event() except (ReconnectWebSocket, ResumeWebSocket) as e: @@ -384,7 +383,7 @@ class Client: Closes the connection to discord. """ - if self.is_closed: + if self.is_closed(): return for voice in list(self.voice_clients): @@ -458,7 +457,6 @@ class Client: # properties - @property def is_closed(self): """bool: Indicates if the websocket connection is closed.""" return self._closed.is_set() -- cgit v1.2.3