Comments (4)
do you get everything you need back?
Yes! (probably...)
Adding this helped:
Slack::RealTime::Client.configure do |config|
config.store_class = Slack::RealTime::Stores::Store
config.store_options = { caches: :all }
end
I am still getting empty hashes for bots
, private_channels
and public_channels
- but this is probably a visibility issue for my token. Users list returns properly.
Thank you.
from slack-ruby-client.
I think you're looking for https://github.com/slack-ruby/slack-ruby-client/blob/master/UPGRADING.md#realtime-stores. Swap the store for https://github.com/slack-ruby/slack-ruby-client#slackrealtimestoresstore, do you get everything you need back?
from slack-ruby-client.
@DannyBen beware of how long these APIs take to return. If you have a large team this may be problematic. Curious how you use this?
from slack-ruby-client.
Thanks for engaging.
I am using it in my slacktail gem - which just shows every message posted in the terminal.
I will probably also add this extension, to bring back channels
:
class Slack::RealTime::Client
def channels
@channels ||= public_channels.merge(private_channels)
end
end
from slack-ruby-client.
Related Issues (20)
- chat postMessage via CLI with non-existent channel produces unhelpful error message HOT 2
- Automatically create and update running PR with changes from slack-api-ref HOT 2
- Can't send slack message - Faraday::SSLError ยท SSL_CTX_load_verify_file: system lib - Ubuntu 22.04 & OpenSSL 3.0.2 HOT 7
- chat post image HOT 3
- RealTime Client not working - getting not_allowed_token_type error HOT 4
- Integration tests often fail because of rate limits
- Faraday::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed HOT 5
- `files_upload` does nothing HOT 1
- Error details aren't passed through HOT 5
- client.on :message stops listening to new messages HOT 2
- Rate-limiting while trying to build RealTime::Stores::Store cache leads to keep_alive? failures HOT 7
- missing_scope error instead of channel_not_found HOT 4
- examples/hi_real_time_and_web/hi.rb does not work HOT 4
- CLI Doc in README.md is Outdated HOT 1
- `Slack::Events::Request#verify!` not working with Rack 3 HOT 11
- Does the library support replying in thread? HOT 1
- Slack::Event::Request#verify! should use secure_compare HOT 1
- classic Apps and legacy custom bots deprecated after 4th June 2024 HOT 4
- Remove files.upload in favor of files.getUploadURLExternal, etc. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-ruby-client.