Roxxers / roxbot

Roxbot: An inclusive modular multi-purpose Discord bot. Built with love (and discord.py)
MIT License
21 stars 5 forks source link

;roles command drops the last zeros in the color portion #68

Open hexedsilicon opened 4 years ago

hexedsilicon commented 4 years ago

Steps to reproduce: Make a role with a hex code color that ends in at least one 0 (such as #000000) Call ;role testRole See that it drops all the zeros at the end

Examples: Expected results:

Role 'Green'
ID
419553424158359562
Created at
Sat 2018/03/03 17:55:31 UTC
Colour
#2ecc61
Hoisted
False
Managed
False

Wrong Results(color is white/#000000):

Role 'Is Here'
ID
585538653929865220
Created at
Tue 2019/06/04 18:41:33 UTC
Colour
#
Hoisted
False
Managed
True

Role with 00 at the end of the hexcode

Role 'Summer'
ID
456105336890195979
Created at
Tue 2018/06/12 14:39:46 UTC
Colour
#f59d
Hoisted
False
Managed
False