Delete manual entry when denied

This commit is contained in:
Aadi Desai 2023-09-24 16:05:28 +01:00
parent 2dcc62aa26
commit 2e23cd3a01
Signed by: supleed2
SSH key fingerprint: SHA256:CkbNRs0yVzXEiUp2zd0PSxsfRUMFF9bLlKXtE1xEbKM

View file

@ -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)