Skip to content

Commit

Permalink
Fix embed_color parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jadelily18 committed Nov 2, 2023
1 parent 7897029 commit 523394e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/discord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 523394e

Please sign in to comment.