mirror of
https://github.com/supleed2/nanobot.git
synced 2024-11-10 04:35:48 +00:00
Delete manual entry when denied
This commit is contained in:
parent
2dcc62aa26
commit
2e23cd3a01
|
@ -284,6 +284,7 @@ pub(crate) async fn manual_4(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
crate::db::delete_manual_by_id(&data.db, user.id.0 as i64).await?;
|
||||||
println!("{} ({}) denied via manual", user.name, user.id);
|
println!("{} ({}) denied via manual", user.name, user.id);
|
||||||
m.create_interaction_response(&ctx.http, |i| {
|
m.create_interaction_response(&ctx.http, |i| {
|
||||||
i.kind(serenity::InteractionResponseType::UpdateMessage)
|
i.kind(serenity::InteractionResponseType::UpdateMessage)
|
||||||
|
|
Loading…
Reference in a new issue