hmm
This commit is contained in:
@ -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.')
|
||||
|
||||
|
Reference in New Issue
Block a user