potential fix to level 1

This commit is contained in:
2026-01-10 01:59:49 +05:30
parent 9d3e1b4bd7
commit da1846585d

View File

@@ -87,6 +87,12 @@ impl<'de> Deserialize<'de> for FluxU64 {
}
}
impl std::fmt::Display for FluxU64 {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}
#[derive(Deserialize, serde::Serialize, Debug)]
pub struct UserLevel {
pub xp: u64,
@@ -878,7 +884,7 @@ pub async fn on_guild_member_update(
"Bridging user {} from role {} to {}",
new.user.id,
in_role_id,
out_role_id
out_role_id.0
);
// Add out_role