ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.12k stars 66 forks source link

Channel categories without "view channel" permissions are hidden, even if there are viewable channels inside #368

Closed epetousis closed 6 months ago

epetousis commented 6 months ago

I'm in a Discord server for uni, and they have a system wherein you select a role, and you are granted access to channels for specific units. Rather than having all these units visible at the top-level, they organise these channels into categories based on the level of unit. They implement this by disabling "view channels" permissions on the channel category (so that you don't see an absolute ton of unrelated channels inside the category), but enabling explicit view permissions on the channels inside depending on which role you select. This works great, but Discordo doesn't support this, as it will not create the category node due to the lack of "view channel" permissions.

Discord's behaviour appears to be to show the channel category (and bypass the lack of category view perms) if there are viewable channels inside.

My hack fix is in the attached patch, obviously not a great long-term solution because now a whole bunch of unused categories will show up.

0001-Show-channel-categories-regardless-of-view-permissio.patch