diff --git a/src/commands/role_adder.rs b/src/commands/role_adder.rs index a740194..bb33667 100644 --- a/src/commands/role_adder.rs +++ b/src/commands/role_adder.rs @@ -201,7 +201,7 @@ pub mod tools { pub async fn on_role_change(db: &Pool, ctx: &Context, mut new_data: Member) { // check if the role changed is part of the oens for this server - if let Some(role_adders) = sqlx::query_as::<_, RoleAdder>( + if let Ok(role_adders) = sqlx::query_as::<_, RoleAdder>( r#" SELECT * FROM roles_adder @@ -211,7 +211,6 @@ pub mod tools { .bind(*new_data.guild_id.as_u64() as i64) .fetch_all(db) .await - .ok() { let mut roles_add = vec![]; let mut roles_remove = vec![];