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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle state in interaction callback #820

Merged
merged 2 commits into from
Oct 11, 2020
Merged

Handle state in interaction callback #820

merged 2 commits into from
Oct 11, 2020

Conversation

kanata2
Copy link
Member

@kanata2 kanata2 commented Oct 9, 2020

The type of state field in a Slack response to interactons now depends
on the type of interaction. Specifically, the correspondence is as
follows.

  • type: dialog_submisson -> state: string
  • type: block_actions -> state: dictionary array

This commit is trying to handle these properly while maintaining backwards
compatibility, so futureversions may change to a more approproate design.

See Also: https://api.slack.com/changelog/2020-09-full-state-on-view-submisson-and-block-actions

resolved: #816

@ollieparsley What do you think? Please review this PR 馃檹

@kanata2 kanata2 requested a review from a team October 9, 2020 20:20
The type of state field in a Slack response to interactons now depends
on the type of interaction. Specifically, the correspondence is as
follows.

- type: dialog_submisson -> state: string
- type: block_actions -> state: dictionary array

This commit is trying to handle these properly while maintaining backwards
compatibility, so futureversions may change to a more approproate design.

See Also: https://api.slack.com/changelog/2020-09-full-state-on-view-submisson-and-block-actions

resolved: #816
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.

cannot unmarshal object into Go struct field InteractionCallback.state of type string
1 participant