diff --git a/src/bot/events/compile.rs b/src/bot/events/compile.rs index 8be11a8..d721927 100644 --- a/src/bot/events/compile.rs +++ b/src/bot/events/compile.rs @@ -150,8 +150,8 @@ pub async fn message(ctx: &Context, msg: &Message) -> Result { } 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()))