fixed info command

This commit is contained in:
jellywx 2021-06-16 20:50:38 +01:00
parent bfe97a0acb
commit 3153ed2878

View File

@ -395,12 +395,8 @@ Please select a category from the following:
invoke invoke
.respond( .respond(
ctx.http.clone(), ctx.http.clone(),
CreateGenericResponse::new().embed(|e| { CreateGenericResponse::new()
e.title("Help") .embed(|e| e.title("Help").color(THEME_COLOR).description(body)),
.color(THEME_COLOR)
.description(body)
.footer(|f| f.text("Get slash command support! Reinvite from ?info"))
}),
) )
.await?; .await?;
} else { } else {
@ -705,7 +701,7 @@ async fn info(
) -> CommandResult { ) -> CommandResult {
let current_user = ctx.cache.current_user().await; 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 .embed(|e| e
.title("Info") .title("Info")
.color(THEME_COLOR) .color(THEME_COLOR)