-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As of 1bb57f0d640431598da043edb8, channels requiring special access are hidden #33
Comments
Actually it's weirder than that. Some channels that I should have access to are hidden, while some nonpublic ones but that I have access to aren't. |
Please paste commit hashes in the main message, and not the title, and if you do so, please decribe what the commit is so that all information is gathed in one place. It makes reading titles of issues much easier, and allows git to link to the commit diff. This would be a discord-rs bug if so. The only logic in weechat-discord is these lines weechat-discord/src/connection.rs Line 96 in 15b2bd8
(I have double-checked the Please make sure that this is indeed the reason why the channels are not showing up, and not because you have them muted (as was also introduced in that commit). If so, I'm going to need more information on what exactly these channels you do/don't have access to, as I can't fix a vague "it doesn't work". |
OK, I got some time to look a bit into this. Basically this may or may not be a bug in the discord library you depend on. I added 'MAIN_BUFFER.print(&format!("perms for {}: {}", channel.id(), permissions.bits()))' for blocking and it lists the permissions for a known good channel as 67108864, or 0x4000000 which seems to be "change nickname". This also happens to a fair share of channels I don't have access to. I have currently no way to use an official Discord client or webchat, so I cannot try to figure out what's going on that way. As a temporary measure I special cased the channel ID in the function and it allowed me to read/write things correctly, see nicknames, etc, so I clearly have access to it. I will see if I can investigate this further in a week-ish when I'm back home and can use the official webchat. |
Something is horribly wrong. See #33
That makes me really really sad :( - I ripped it out for now (revering to old behavior), until we figure something out. A workaround right now would be to mute the channels you don't have access to. Thank you so much for the research. |
...even if you actually should have access to them.
The text was updated successfully, but these errors were encountered: