slack-bot-api icon indicating copy to clipboard operation
slack-bot-api copied to clipboard

getChannels|Users|Groups return outdated data

Open Starfox64 opened this issue 9 years ago • 4 comments

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)

Starfox64 avatar Dec 03 '15 14:12 Starfox64

Thanks, I'll do it soon

mishk0 avatar Dec 14 '15 16:12 mishk0

Is this actually going to get fixed? It's become a problem for me.

imjoshdean avatar Oct 31 '16 20:10 imjoshdean

Bump.

imjoshdean avatar Nov 28 '16 03:11 imjoshdean

+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?

kratochj avatar Jan 15 '17 17:01 kratochj