slack-bot-api
slack-bot-api copied to clipboard
getChannels|Users|Groups return outdated data
getChannels, getUsers and getGroups always return cached data meaning that said data will, at some point, become outdated.
Solutions:
- Make slackbots listen to update events and keep the cached data updated (optional)
- Prevent the getChannels|Users|Groups methods from using cached data and instead call the Slack API (or add an argument to force a new API call)
Thanks, I'll do it soon
Is this actually going to get fixed? It's become a problem for me.
Bump.
+1 - although there is a workaround by calling login()
method it would be great to have that automated.
Proposed quick solution - when user/channel etc. is not found try to reload cache and perform search again? Would it work?