This commit is contained in:
iDutchy 2020-10-01 22:16:05 +00:00
parent 291237bac9
commit 21ea6fe9ac

View File

@ -286,7 +286,7 @@ class Client:
@embed_color.setter
def embed_color(self, value):
if isinstance(value, (Color, Colour)):
self._embed_color = str(int(value))
self._embed_color = str(hex(value))
os.environ['DEFAULT_EMBED_COLOR'] = str(int(value))
else:
try:
@ -294,7 +294,7 @@ class Client:
col = Color(value)
if HEX.match(str(col)):
self._embed_color = str(int(col))
os.environ['DEFAULT_EMBED_COLOR'] = str(int(col))
os.environ['DEFAULT_EMBED_COLOR'] = str(hex(col))
except:
raise TypeError('embed_color must be an instance of discord.Colour or a valid 0x****** hex value.')