From 7303b5782c3173142df5af2a48c639de363e332c Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 23 Nov 2023 22:23:31 +0000 Subject: [PATCH] fix: wasnt giving users role on joining. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }