Skip to content

Commit

Permalink
Delete user levels in guild on ban
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Oct 30, 2024
1 parent b3cd1e0 commit 77335e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xpd-gateway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 77335e7

Please sign in to comment.