diff options
| author | Rapptz <[email protected]> | 2015-12-13 20:05:58 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-13 20:05:58 -0500 |
| commit | ab46afee1db869046375f3e1c26b0cdb4dfdb3b7 (patch) | |
| tree | f29aa1bef8f2c409d6bc53c46e9b91032bb339ad /discord/server.py | |
| parent | Editing profile now writes to the cache. (diff) | |
| download | discord.py-ab46afee1db869046375f3e1c26b0cdb4dfdb3b7.tar.xz discord.py-ab46afee1db869046375f3e1c26b0cdb4dfdb3b7.zip | |
Changed functions that return a constant value into properties.
Diffstat (limited to 'discord/server.py')
| -rw-r--r-- | discord/server.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/server.py b/discord/server.py index 9e0a796f..456f4ca9 100644 --- a/discord/server.py +++ b/discord/server.py @@ -141,6 +141,7 @@ class Server: """Gets the default :class:`Channel` for the server.""" return utils.find(lambda c: c.is_default_channel(), self.channels) + @property def icon_url(self): """Returns the URL version of the server's icon. Returns an empty string if it has no icon.""" if self.icon is None: |