Browse Source

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`".
pull/2634/head
Saurabh Chaturvedi 5 years ago
committed by Rapptz
parent
commit
3faa9799e3
  1. 5
      discord/role.py

5
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):

Loading…
Cancel
Save