This commit is contained in:
iDutchy 2020-10-01 21:42:00 +00:00
parent d79bc7c3c9
commit 0088ab589b

View File

@ -191,7 +191,7 @@ class Client:
If this is set to ``False`` then the following features will be disabled:
- No user related updates (:func:`on_user_update` will not dispatch)
- No user related updates (:func:`on_user_update` will not dispatch)EmptyEmbed
- All member related events will be disabled.
- :func:`on_member_update`
- :func:`on_member_join`
@ -285,10 +285,10 @@ class Client:
@embed_color.setter
def embed_color(self, value):
HEX = re.compile(r'^(0x)[A-Fa-f0-9]{6}$')
if isinstance(value, (Color, Colour)):
self._embed_color = hex(value)
os.environ['DEFAULT_EMBED_COLOR'] = str(hex(value))
HEX = re.compile(r'^(0x)[A-Fa-f0-9]{6}$')
elif HEX.match(str(value))):
self._embed_color = value
os.environ['DEFAULT_EMBED_COLOR'] = str(value)