diff options
author | Puyodead1 <puyodead@proton.me> | 2023-12-23 22:55:37 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-12-23 22:55:37 -0500 |
commit | 105b3de19ec5cd8521945c1672c060c1c5708683 (patch) | |
tree | e69b077970d84fbbc000f4f4d0179ad81514d521 /src/gateway/opcodes/Identify.ts | |
parent | fix merged_members roles having everyone id (diff) | |
download | server-105b3de19ec5cd8521945c1672c060c1c5708683.tar.xz |
Revert "fix merged_members roles having everyone id"
This reverts commit ae5c71f39bf61da5c1d7fb9d9c75f11d6ce11d85.
Diffstat (limited to '')
-rw-r--r-- | src/gateway/opcodes/Identify.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 8e4fe049..330ce561 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -235,10 +235,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { return [ { ...x, - roles: x.roles - .map((role) => role.id) - // filter out the @everyone role - .filter((role) => role !== x.guild_id), + roles: x.roles.map((x) => x.id), // add back user, which we don't fetch from db // TODO: For guild profiles, this may need to be changed. |