Skip to content

Commit

Permalink
try fix fail compile
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera authored Oct 11, 2024
1 parent 1d894f6 commit b017adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot/events/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ pub async fn message(ctx: &Context, msg: &Message) -> Result<bool, bot::Error> {
}

let content = match &msg.referenced_message {
Some(reference) => &format!("&compile\n{}", &reference.content),
None => &msg.content
Some(reference) => format!("&compile\n{}", reference.content),
None => msg.content.clone()
};

msg.react(ctx, ReactionType::Unicode("🫡".to_string()))
Expand Down

0 comments on commit b017adf

Please sign in to comment.