fixed info command
This commit is contained in:
parent
bfe97a0acb
commit
3153ed2878
10
src/main.rs
10
src/main.rs
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user