summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMathium05 <73901602+MathMan05@users.noreply.github.com>2025-09-09 09:31:34 -0500
committerGitHub <noreply@github.com>2025-09-09 09:31:34 -0500
commitdd3a97f056acb35ddda30dee48574da9ef51e3b7 (patch)
tree91ff4c2ae0298cc706c8c20f0a632187c7fbc7c6 /src
parentprevent re-verifying email (diff)
downloadserver-ts-dd3a97f056acb35ddda30dee48574da9ef51e3b7.tar.xz
don't filter channels
Diffstat (limited to 'src')
-rw-r--r--src/gateway/opcodes/Identify.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index 6f2ca79fe..9f0ed34ba 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -271,18 +271,6 @@ export async function onIdentify(this: WebSocket, data: Payload) { // filter guild channels we don't have permission to view // TODO: check if this causes issues when the user is granted other roles? member.guild.channels = member.guild.channels - .filter((channel) => { - const perms = Permissions.finalPermission({ - user: { - id: member.id, - roles: member.roles.map((x) => x.id), - }, - guild: member.guild, - channel, - }); - - return perms.has("VIEW_CHANNEL"); - }) .map((channel) => { channel.position = member.guild.channel_ordering.indexOf( channel.id,