diff --git a/src/commands/level.rs b/src/commands/level.rs index 0727e79..c05d72a 100644 --- a/src/commands/level.rs +++ b/src/commands/level.rs @@ -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