GerevAI / gerev

🧠 AI-powered enterprise search engine 🔎
https://app.klu.so/signup?utm_source=github_gerevai
MIT License
2.71k stars 178 forks source link

fix crash on running into archived channels which are not joinable #26

Closed troy-f closed 1 year ago

Roey7 commented 1 year ago

Hey @troy-f Can you find evidence supporting the fact that you Cannot join archived channels at all? I think that sometimes you're actually able to join despite them being archived. Therefore I would suggest adding try...except on the join channel method for each channel so we join whatever we can, and when we can't it won't raise. What do you think? By the way are you on Discord? let's chat. https://discord.gg/wMFstnWp

troy-f commented 1 year ago

only a workspace owner can change settings to allow themselves to join an archived channel (meaning, temporarily un-archive it), you would need to have a whole lot more permissions for the bot to do that. for the moment this is the best solution until the error handling and configurability of data source plugins is made better.