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
commit2517c472e8784d2f845dcf97e0c1aa1bcf54b876 (patch)
tree0811c45e589b3d9b3c86ffcd0c71062e4093b30d
parentwhoops (diff)
downloadserver-2517c472e8784d2f845dcf97e0c1aa1bcf54b876.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),
 	};
 }