diff options
| author | Saurabh Chaturvedi <[email protected]> | 2019-12-31 03:04:25 +0530 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-04-04 02:42:22 -0400 |
| commit | 3faa9799e3d33bb40455b90ac6cce009ed71f821 (patch) | |
| tree | 7454c0f40fc4cdb9c157d7fa9251c454b236657e | |
| parent | Version bump to v1.3.3 (diff) | |
| download | discord.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.py | 5 |
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): |