aboutsummaryrefslogtreecommitdiff
path: root/discord/colour.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-16 22:49:34 -0400
committerRapptz <[email protected]>2016-06-16 22:49:34 -0400
commit07607060c1ce07c613552a0233d53a1e821a0c31 (patch)
tree3efb76520198b20ba07903de0f8d4626a3084eb5 /discord/colour.py
parentAttempt resume when we receive a 1001. (diff)
downloaddiscord.py-07607060c1ce07c613552a0233d53a1e821a0c31.tar.xz
discord.py-07607060c1ce07c613552a0233d53a1e821a0c31.zip
Fix Colour.__str__ to actually pad zeroes.
Diffstat (limited to 'discord/colour.py')
-rw-r--r--discord/colour.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/colour.py b/discord/colour.py
index 37346e89..76b8bf06 100644
--- a/discord/colour.py
+++ b/discord/colour.py
@@ -65,7 +65,7 @@ class Colour:
return not self.__eq__(other)
def __str__(self):
- return '#' + format(self.value, 'x')
+ return '#{:0>6x}'.format(self.value)
def __hash__(self):
return hash(self.value)