mirror of
https://github.com/supleed2/nanobot.git
synced 2024-12-22 22:25:51 +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 {
|
||||
crate::db::delete_manual_by_id(&data.db, user.id.0 as i64).await?;
|
||||
println!("{} ({}) denied via manual", user.name, user.id);
|
||||
m.create_interaction_response(&ctx.http, |i| {
|
||||
i.kind(serenity::InteractionResponseType::UpdateMessage)
|
||||
|
|
Loading…
Reference in a new issue