Fix minor things that broke in last commit
This commit is contained in:
parent
160cfdc401
commit
5a6482b583
6 changed files with 40 additions and 22 deletions
|
|
@ -69,6 +69,10 @@ def create_embed_webhook(webhook_url: str, entry: Entry) -> DiscordWebhook:
|
|||
|
||||
discord_embed: DiscordEmbed = DiscordEmbed()
|
||||
|
||||
# Remove # from the color if it exists.
|
||||
if type(custom_embed.color) is str and custom_embed.color.startswith("#"):
|
||||
custom_embed.color = custom_embed.color[1:]
|
||||
|
||||
if custom_embed.title:
|
||||
discord_embed.set_title(custom_embed.title)
|
||||
if custom_embed.description:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue