ayn2op / discordo

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

Servers with weird permissions doesn't show channels correctly #449

Open Raph9213 opened 1 month ago

Raph9213 commented 1 month ago

Hello,

Thanks for making this app, it's been really great, but I’ve encountered a bug related to weird server permissions in some cases, where channels don’t show up in Discordo, even though they appear correctly in the official Discord client.

  1. Create a new Discord server and add an alt account.
  2. Set the @everyone role to disallow the "View Channel" permission.
  3. Create a new role with the "View Channel" permission also disallowed.
  4. Create a new channel where the new role you created does have the "View Channel" permission allowed.
  5. Create another channel where @everyone does have the "View Channel" permission allowed.
  6. Place both channels into a category, but do not assign any specific permissions to the category.

When you assign your alt account to the new role, the category and both channels will not be visible in Discordo, even though they are visible in the official Discord client (since the account does have "View Channel" permission).

Interestingly, the category and channels appear in Discordo if the category has permissions set, even when the individual channels' permissions are not synchronized with the category.

I have created a test server to demonstrate the bug. The role named "test" is the one affected by the issue to test it. If you'd like to check the permissions, you can find me as Raph9213 in the Discord server linked here: https://discord.gg/ZuWXx64wje

Additionally, I am using the latest Discordo prebuild, and the bug occurs on both the Windows and Linux versions.

Here’s an image illustrating the issue: image