summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-02 13:16:16 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-02 13:16:16 +1100
commitd7460a198a13078e279a0769867277b0db6f60b0 (patch)
treeb82e9988a41609506c3721bad1fe1afcc5c52445 /src
parentRevert "Don't let users undisable their accounts" (diff)
downloadserver-d7460a198a13078e279a0769867277b0db6f60b0.tar.xz
Only send public user details in GUILD_MEMBER_LIST_UPDATE
Diffstat (limited to '')
-rw-r--r--src/gateway/opcodes/LazyRequest.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts
index 69952c7f..e54f64a6 100644
--- a/src/gateway/opcodes/LazyRequest.ts
+++ b/src/gateway/opcodes/LazyRequest.ts
@@ -118,7 +118,7 @@ async function getMembers(guild_id: string, range: [number, number]) {
 				member: {
 					...member,
 					roles,
-					user: { ...member.user, sessions: undefined },
+					user: member.user.toPublicUser(),
 					presence: {
 						...session,
 						activities: session?.activities || [],