Browse Source

Fix Colour.__str__ to actually pad zeroes.

pull/146/merge
Rapptz 9 years ago
parent
commit
07607060c1
  1. 2
      discord/colour.py

2
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)

Loading…
Cancel
Save