diff options
| author | Rapptz <[email protected]> | 2017-01-29 20:51:47 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-29 20:53:17 -0500 |
| commit | e77012f4d91dfdb45813fb9fe906a7f791ca4fcf (patch) | |
| tree | 16b2cd2fcaaea5f09c6c12b3d95bd6f3aac4018d /discord/client.py | |
| parent | Remove unused Message._handle_upgrades function. (diff) | |
| download | discord.py-e77012f4d91dfdb45813fb9fe906a7f791ca4fcf.tar.xz discord.py-e77012f4d91dfdb45813fb9fe906a7f791ca4fcf.zip | |
Make all public is_ functions into methods instead of properties.
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 6 |
1 files changed, 2 insertions, 4 deletions
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() |