This commit is contained in:
iDutchy
2020-10-01 21:58:29 +00:00
parent e91a0d62f7
commit e6cf6c4b8c
2 changed files with 1 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ class Embed:
default_colour = kwargs.get('color', EmptyEmbed)
colour = os.getenv("DEFAULT_EMBED_COLOR", default=default_colour)
if isinstance(colour, str):
colour = int(colour, 16)
colour = int(colour.replace('#', '0x'), 16)
self.colour = colour