summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-12-23 22:16:34 -0500
committerPuyodead1 <puyodead@proton.me>2023-12-23 22:16:34 -0500
commitae5c71f39bf61da5c1d7fb9d9c75f11d6ce11d85 (patch)
treeabc14975541819bbc2e160af981bce69eeef5d07 /src
parentupdate schemas.json and openapi.json (diff)
downloadserver-ae5c71f39bf61da5c1d7fb9d9c75f11d6ce11d85.tar.xz
fix merged_members roles having everyone id
Diffstat (limited to 'src')
-rw-r--r--src/gateway/opcodes/Identify.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts
index 330ce561..8e4fe049 100644
--- a/src/gateway/opcodes/Identify.ts
+++ b/src/gateway/opcodes/Identify.ts
@@ -235,7 +235,10 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 		return [
 			{
 				...x,
-				roles: x.roles.map((x) => x.id),
+				roles: x.roles
+					.map((role) => role.id)
+					// filter out the @everyone role
+					.filter((role) => role !== x.guild_id),
 
 				// add back user, which we don't fetch from db
 				// TODO: For guild profiles, this may need to be changed.