Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants