aboutsummaryrefslogtreecommitdiff
path: root/discord/colour.py
diff options
context:
space:
mode:
authorNCPlayz <[email protected]>2019-05-18 06:04:54 -0400
committerRapptz <[email protected]>2019-06-07 19:27:46 -0400
commit3c9bcc285147154a2980f6e661efdfa676672b6a (patch)
tree657bafa75e4e0d45361e394443ea932ad70e86a7 /discord/colour.py
parentAdded comment for/redo system information (diff)
downloaddiscord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.tar.xz
discord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.zip
Improve documentation
Diffstat (limited to 'discord/colour.py')
-rw-r--r--discord/colour.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/colour.py b/discord/colour.py
index 21344c47..1dc9662e 100644
--- a/discord/colour.py
+++ b/discord/colour.py
@@ -84,21 +84,21 @@ class Colour:
@property
def r(self):
- """Returns the red component of the colour."""
+ """:class:`int`: Returns the red component of the colour."""
return self._get_byte(2)
@property
def g(self):
- """Returns the green component of the colour."""
+ """:class:`int`: Returns the green component of the colour."""
return self._get_byte(1)
@property
def b(self):
- """Returns the blue component of the colour."""
+ """:class:`int`: Returns the blue component of the colour."""
return self._get_byte(0)
def to_rgb(self):
- """Returns an (r, g, b) tuple representing the colour."""
+ """Tuple[:class:`int`, :class:`int`, :class:`int`]: Returns an (r, g, b) tuple representing the colour."""
return (self.r, self.g, self.b)
@classmethod