aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Chaturvedi <[email protected]>2019-12-31 03:04:25 +0530
committerRapptz <[email protected]>2020-04-04 02:42:22 -0400
commit3faa9799e3d33bb40455b90ac6cce009ed71f821 (patch)
tree7454c0f40fc4cdb9c157d7fa9251c454b236657e
parentVersion bump to v1.3.3 (diff)
downloaddiscord.py-3faa9799e3d33bb40455b90ac6cce009ed71f821.tar.xz
discord.py-3faa9799e3d33bb40455b90ac6cce009ed71f821.zip
Fix documentation problem with color
At readthedocs.io, for role `color`, it says "Returns the role colour. An alias exists under `color`". This PR fixes that to say "Returns the role color. An alias exists under `colour`".
-rw-r--r--discord/role.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/role.py b/discord/role.py
index 8d98d33a..08a17338 100644
--- a/discord/role.py
+++ b/discord/role.py
@@ -161,7 +161,10 @@ class Role(Hashable):
""":class:`Colour`: Returns the role colour. An alias exists under ``color``."""
return Colour(self._colour)
- color = colour
+ @property
+ def color(self):
+ """:class:`Colour`: Returns the role color. An alias exists under ``colour``."""
+ return self.colour
@property
def created_at(self):