set_embed_color, embed_color and get_message added #23
Reference in New Issue
Block a user
No description provided.
Delete Branch "NightSlasher35/patch-4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Checklist
@ -244,0 +258,4 @@
def embed_color(self):
"""Optional[:class:`.Colour`]: The default embed colour that is
being used for all embed if no colour is passed."""
col = os.getenv("DEFAULT_EMBED_COLOR")
No, never use env vars like this, instead store this under
discord.Embed.default_colour
@ -244,0 +280,4 @@
"""
if isinstance(color, (Color, Colour)):
os.environ['DEFAULT_EMBED_COLOR'] = str(hex(color))
return color
Same here, do not use env vars
@ -244,0 +283,4 @@
return color
else:
try:
HEX = re.compile(r'^(#)[A-Fa-f0-9]{6}$')
Why are you compiling this regex per invoke, store global.
Going to go with Gnome here, fix these and you should be good.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.