summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/slack-go/slack/dialog.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/slack-go/slack/dialog.go')
-rw-r--r--vendor/github.com/slack-go/slack/dialog.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/slack-go/slack/dialog.go b/vendor/github.com/slack-go/slack/dialog.go
index 376cd9e6..f94113f4 100644
--- a/vendor/github.com/slack-go/slack/dialog.go
+++ b/vendor/github.com/slack-go/slack/dialog.go
@@ -54,7 +54,9 @@ type DialogCallback InteractionCallback
// DialogSubmissionCallback is sent from Slack when a user submits a form from within a dialog
type DialogSubmissionCallback struct {
- State string `json:"state,omitempty"`
+ // NOTE: State is only used with the dialog_submission type.
+ // You should use InteractionCallback.BlockActionsState for block_actions type.
+ State string `json:"-"`
Submission map[string]string `json:"submission"`
}