diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 5e2e28a2..9543a397 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -244,7 +244,10 @@ export async function onIdentify(this: WebSocket, data: Payload) { return [ { ...x, - roles: x.roles.map((x) => x.id), + // filter out @everyone role + roles: x.roles + .filter((r) => r.id !== x.guild.id) + .map((x) => x.id), // add back user, which we don't fetch from db // TODO: For guild profiles, this may need to be changed.