Skip to content

Commit

Permalink
feat: Handle more interaction types
Browse files Browse the repository at this point in the history
  Convert BlockID to InteractionID field into the InteractionDefinition struct,
and add the necessary dispatch mechanisms to handle the following interactions:
- shortcut
- message_actions
- view_submission
- view_closed

Add Interaction type to interaction definition
  • Loading branch information
nicolas-carlier-ls authored and raed-shomali committed Nov 7, 2023
1 parent 18bf38b commit 948fbb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/interaction-view/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func moodCmdHandler(ctx *slacker.CommandContext) {
moodSurveyView,
)
if err != nil {
fmt.Printf("ERROR openEscalationModal: %v\n", err)
log.Printf("ERROR openEscalationModal: %v", err)
}
}

Expand All @@ -111,6 +111,8 @@ func moodViewHandler(ctx *slacker.InteractionContext) {
)
}
case slack.InteractionTypeViewClosed:
fmt.Print("Mood view closed.\n")
{
fmt.Print("Mood view closed.\n")
}
}
}

0 comments on commit 948fbb3

Please sign in to comment.