Fix minor things that broke in last commit

This commit is contained in:
2023-01-23 00:18:48 +01:00
parent 160cfdc401
commit 5a6482b583
6 changed files with 40 additions and 22 deletions

View File

@ -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: