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 | d7460a198a13078e279a0769867277b0db6f60b0 (patch) | |
tree | b82e9988a41609506c3721bad1fe1afcc5c52445 | |
parent | Revert "Don't let users undisable their accounts" (diff) | |
download | server-d7460a198a13078e279a0769867277b0db6f60b0.tar.xz |
Only send public user details in GUILD_MEMBER_LIST_UPDATE
Diffstat (limited to '')
-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 || [], |