From 77335e7468bcf58381aebb2d66e72520823cf36f Mon Sep 17 00:00:00 2001 From: valkyrie_pilot Date: Wed, 30 Oct 2024 09:14:01 -0600 Subject: [PATCH] Delete user levels in guild on ban --- xpd-gateway/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xpd-gateway/src/main.rs b/xpd-gateway/src/main.rs index a488f797..ca03fd27 100644 --- a/xpd-gateway/src/main.rs +++ b/xpd-gateway/src/main.rs @@ -290,6 +290,9 @@ async fn handle_event( .log_error("Failed to add guild to cleanup system"); } Event::InteractionCreate(interaction_create) => slash.execute(*interaction_create).await, + Event::BanAdd(ban) => { + xpd_database::delete_levels_user_guild(&db, ban.user.id, ban.guild_id).await? + } _ => {} }; Ok(())