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
commitec1af70ae508c2c2d0a0dbd4b704f70cd2993af9 (patch)
tree423b6fc802ed89ce9baac0d8d8fb7b38cfa741cd /src
parentRevert "Don't let users undisable their accounts" (diff)
downloadserver-ec1af70ae508c2c2d0a0dbd4b704f70cd2993af9.tar.xz
Only send public user details in GUILD_MEMBER_LIST_UPDATE
Diffstat (limited to 'src')
-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 || [],