From 3153ed2878586434be92b920d4b011fbea0427e8 Mon Sep 17 00:00:00 2001 From: jellywx Date: Wed, 16 Jun 2021 20:50:38 +0100 Subject: [PATCH] fixed info command --- src/main.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index b374b1c..2872ce1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -395,12 +395,8 @@ Please select a category from the following: invoke .respond( ctx.http.clone(), - CreateGenericResponse::new().embed(|e| { - e.title("Help") - .color(THEME_COLOR) - .description(body) - .footer(|f| f.text("Get slash command support! Reinvite from ?info")) - }), + CreateGenericResponse::new() + .embed(|e| e.title("Help").color(THEME_COLOR).description(body)), ) .await?; } else { @@ -705,7 +701,7 @@ async fn info( ) -> CommandResult { let current_user = ctx.cache.current_user().await; - invoke.channel_id().send_message(&ctx, |m| m + invoke.respond(ctx.http.clone(), CreateGenericResponse::new() .embed(|e| e .title("Info") .color(THEME_COLOR)