From 523394eca2826e1f87f46617ed38518b7fb6afea Mon Sep 17 00:00:00 2001 From: Jade Date: Wed, 1 Nov 2023 19:17:21 -0500 Subject: [PATCH] Fix embed_color parsing --- src/discord.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/discord.rs b/src/discord.rs index 3ac4a62..b4c64db 100644 --- a/src/discord.rs +++ b/src/discord.rs @@ -63,15 +63,15 @@ pub async fn send_discord_webhook( ); let embed_color = match discord_config.embed_color { - Some(color) => color as i32, + Some(color) => color, None => match discord_config.embed_color { Some(color) => color, None => match modrinth_project.color { - Some(color) => color, + Some(color) => color as u32, None => 0x232634 } } - }; + } as i32; let release_time = Utc::now().format("%b, %d %Y %r");