Maybe fix test?

This commit is contained in:
2023-01-23 19:09:10 +01:00
parent 90f64a968e
commit 8d56acdbd8

View File

@ -74,7 +74,7 @@ def create_embed_webhook(webhook_url: str, entry: Entry) -> DiscordWebhook:
if custom_embed.description:
discord_embed.set_description(custom_embed.description)
if custom_embed.color:
discord_embed.set_color(custom_embed.color)
discord_embed.set_color(str(custom_embed.color))
if custom_embed.author_name and not custom_embed.author_url and not custom_embed.author_icon_url:
discord_embed.set_author(name=custom_embed.author_name)
if custom_embed.author_name and custom_embed.author_url and not custom_embed.author_icon_url: