diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-02 13:16:16 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-02 13:16:16 +1100 |
commit | ec1af70ae508c2c2d0a0dbd4b704f70cd2993af9 (patch) | |
tree | 423b6fc802ed89ce9baac0d8d8fb7b38cfa741cd /src | |
parent | Revert "Don't let users undisable their accounts" (diff) | |
download | server-ec1af70ae508c2c2d0a0dbd4b704f70cd2993af9.tar.xz |
Only send public user details in GUILD_MEMBER_LIST_UPDATE
Diffstat (limited to 'src')
-rw-r--r-- | src/gateway/opcodes/LazyRequest.ts | 2 |
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 || [], |