SwiftcordApp / Swiftcord

A fully native Discord client for macOS built 100% in Swift!

Home Page:https://swiftcordapp.github.io/Swiftcord/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Channel visibility permissions are not respected

glacialvitality opened this issue · comments

Describe the Bug

Bug Description
On a discord server, even if you don't have the perms to see certain channels on a given server, they can still be shown.

Actual Behaviour
You can view the server's hidden channels, without perms.

Expected Behavior
If you do not have permission to view the channel, it should be hidden

Reproducing the Bug

1... Open Swiftcord
2... Join a server (any discord server)
3... look at the channels list

Version

0.5.0

Category

Other

Relevant Log Output

No response

Screenshots

No response

Additional Info

No response

@frozenfleris To be fair, Swiftcord is a client and it should be the servers responsibility to not disclose that information. I would say the bug lies with Discord. But.... I can see how the enduser might not want to see those servers

Even if the channels are hidden on the regular discord client, it shows up on swiftcord's end. That's where I'm getting at with this.

Sure, I get it.

Even if the channels are hidden on the regular discord client, it shows up on swiftcord's end. That's where I'm getting at with this.

Btw, this would be a duplicate of #26

Hi, thanks for reporting this. This isn't a bug, as Discord's API exposes all channels in the server, regardless if the user has permissions to view them. It's the responsibility of the client to hide those channels from the user, but that hasn't been implemented in Swiftcord yet.

@frozenfleris Looks like that's clarified, I'll be closing this issue then :D