oop
This commit is contained in:
parent
d79bc7c3c9
commit
0088ab589b
@ -191,7 +191,7 @@ class Client:
|
|||||||
|
|
||||||
If this is set to ``False`` then the following features will be disabled:
|
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.
|
- All member related events will be disabled.
|
||||||
- :func:`on_member_update`
|
- :func:`on_member_update`
|
||||||
- :func:`on_member_join`
|
- :func:`on_member_join`
|
||||||
@ -285,10 +285,10 @@ class Client:
|
|||||||
|
|
||||||
@embed_color.setter
|
@embed_color.setter
|
||||||
def embed_color(self, value):
|
def embed_color(self, value):
|
||||||
|
HEX = re.compile(r'^(0x)[A-Fa-f0-9]{6}$')
|
||||||
if isinstance(value, (Color, Colour)):
|
if isinstance(value, (Color, Colour)):
|
||||||
self._embed_color = hex(value)
|
self._embed_color = hex(value)
|
||||||
os.environ['DEFAULT_EMBED_COLOR'] = str(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))):
|
elif HEX.match(str(value))):
|
||||||
self._embed_color = value
|
self._embed_color = value
|
||||||
os.environ['DEFAULT_EMBED_COLOR'] = str(value)
|
os.environ['DEFAULT_EMBED_COLOR'] = str(value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user