Comments (2)
Hey @SamirBoulil - I think there's some confusion about how route()
works. It's intended to route conversation flows, so when you call msg.route()
- that makes it so the next event that comes from that user, in that same channel will get sent to the handler you specify. It won't immediately execute that handler.
If you have some similar behavior you want to perform where you're currently calling msg.route()
- I've found encapsulating that in a function of it's own (perhaps taking the msg
object as a property) and then calling it in those places that need it to work well.
from bolt-js.
Okay I see.
If you have some similar behavior you want to perform where you're currently calling msg.route() - I've found encapsulating that in a function of it's own (perhaps taking the msg object as a property) and then calling it in those places that need it to work well.
That's what I ended up doing :D Perfect !
Thanks
from bolt-js.
Related Issues (20)
- Japanese document updates reflecting #2136
- Bug: Adding block elements through code make actions disable HOT 12
- How to handle errors with invalid signing secret? HOT 5
- link_shared does not seem to be automatically calling ack() HOT 11
- Event triggered by unknown workspace HOT 2
- Change dependencies -> peerDependencies HOT 2
- Getting We had some trouble connecting. Try again? after updating a view. Using aws lambda. HOT 5
- app.client.chat.postMessage not triggering message event HOT 2
- Cannot push modal view using `trigger_id` HOT 5
- Add invalidRequestSignatureHandler to HTTP/ExpressReceiver
- Intermittent UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'type' of undefined HOT 2
- How do you develop at 2 at the same time with Slack? HOT 2
- Incorrectly formatted threaded broadcast reply message will raise `thread_broadcast` event HOT 6
- `PinnedMessageItem` interface missing `ts` HOT 1
- Multiple fields missing in `ChannelCreatedEvent` interface
- (Set a clear title describing the issue) HOT 2
- `client.chat.postMessage` with a user token throws `invalid_auth` error HOT 3
- Allow in thread response in `respondFn` HOT 1
- How do I ignore threaded messages from within the message listener? HOT 3
- (developer api.slack forwarding issue) HOT 2
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 bolt-js.