Add support for voice channel parties #33
@ -285,7 +285,6 @@ class Client:
|
||||
|
||||
@embed_color.setter
|
||||
def embed_color(self, value):
|
||||
|
||||
if isinstance(value, (Color, Colour)):
|
||||
self._embed_color = str(value)
|
||||
os.environ['DEFAULT_EMBED_COLOR'] = str(value)
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user