summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-28 18:11:01 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-28 18:11:01 +1000
commit2ccfd82de73359de92793863342cc69b3e0ebf7e (patch)
treeecf4cd78eeadea1d44e0180c882fe1cec52d8b5f
parentwhoops (diff)
downloadserver-2ccfd82de73359de92793863342cc69b3e0ebf7e.tar.xz
Remove user settings from GUILD_MEMBER_LIST_UPDATE response
-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 f5bbad14..69952c7f 100644
--- a/src/gateway/opcodes/LazyRequest.ts
+++ b/src/gateway/opcodes/LazyRequest.ts
@@ -159,7 +159,7 @@ async function getMembers(guild_id: string, range: [number, number]) {
 		groups,
 		range,
 		members: items
-			.map((x) => ("member" in x ? x.member : undefined))
+			.map((x) => ("member" in x ? { ...x.member, settings: undefined } : undefined))
 			.filter((x) => !!x),
 	};
 }