Changed functions that return a constant value into properties.

This commit is contained in:
Rapptz
2015-12-13 20:05:58 -05:00
parent c52e552888
commit ab46afee1d
3 changed files with 4 additions and 0 deletions

View File

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