diff --git a/src/lib.rs b/src/lib.rs index 59dc03c..c85200c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -349,7 +349,7 @@ pub async fn get_server_member(db: &Pool, server: &GuildId, member: &gui "#, ) .bind(*server.as_u64() as i64) - .bind(&member.user.name) + .bind(*member.user.id.as_u64() as i64) .fetch_one(db) .await }