Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Handle block_actions FIXES #1595 #1596

Merged
merged 2 commits into from
Feb 25, 2019

Conversation

makstaks
Copy link
Contributor

No description provided.

@msftclas
Copy link

msftclas commented Feb 22, 2019

CLA assistant check
All CLA requirements met.

lib/SlackBot.js Outdated

if (message.type == 'block_actions') {
message.text = message.actions[0].value;
message.type = 'block_actions_callback';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just leave the type as is -- less to understand!

@benbrown
Copy link
Contributor

@makstaks Thanks for the contribution.

We should add a section about handling this new event in the docs. Would you be willing to do that as well? The docs are in a separate repo

@makstaks
Copy link
Contributor Author

makstaks commented Feb 23, 2019

@benbrown updated docs (howdyai/botkit-docs#30) and made suggested code fix. I didn't have time to come up with more detailed examples using blocks, I will do so next week. Hopefully, the docs are adequate for now. Thanks.

@benbrown benbrown merged commit 22390b5 into howdyai:master Feb 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants