From 21ea6fe9ac211d775d7d58dd80aeea955a2f2903 Mon Sep 17 00:00:00 2001 From: iDutchy Date: Thu, 1 Oct 2020 22:16:05 +0000 Subject: [PATCH] hmm --- discord/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/client.py b/discord/client.py index 7c1899dc..954a24ba 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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.')