summary refs log tree commit diff
path: root/src/gateway
diff options
context:
space:
mode:
Diffstat (limited to 'src/gateway')
-rw-r--r--src/gateway/opcodes/Identify.ts5
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.