From 6ca6eb0173c93b03c6c5cfbc57599cc807c2c7e5 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Wed, 10 Aug 2022 22:22:32 +0200 Subject: [PATCH] Hide those navs, boi! --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 839067b..ba61e29 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,7 +58,7 @@ impl EventHandler for Handler if &text.to_lowercase() == "pls embed fr fr" { - embedded_message(&ctx,&msg,"Wowowowow","Twitch sub notif!","woolHehe woolHoho","!momentummod"); + embedded_message(&ctx,&msg,"Wowowowow","Twitch sub notif!","woolHehe woolHoho","!momentummod"); } @@ -107,7 +107,7 @@ async fn embedded_message(ctx:&Context, msg: &Message,title: &str, description: if let Err(why) = msg.channel_id.send_message(&ctx.http,|m| { - m.content("").tts(false).embed( |e| e.title(&title).description(&description).field(&field1,&field2,false,)) + m.content("").tts(false).embed( |e| e.title(&title.to_string()).description(&description.to_string()).field(&field1.to_string(),&field2.to_string(),false,)) }).await{ println!("hello {:?}",why); } }