Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created August 11, 2021 06:50
Show Gist options
  • Save percybolmer/d87cf779ba7306df8ccc050c1c66c184 to your computer and use it in GitHub Desktop.
Save percybolmer/d87cf779ba7306df8ccc050c1c66c184 to your computer and use it in GitHub Desktop.
case socketmode.EventTypeInteractive:
interaction, ok := event.Data.(slack.InteractionCallback)
if !ok {
log.Printf("Could not type cast the message to a Interaction callback: %v\n", interaction)
continue
}
err := handleInteractionEvent(interaction, client)
if err != nil {
log.Fatal(err)
}
socketClient.Ack(*event.Request)
//end of switch
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment