Created
April 8, 2021 01:28
-
-
Save xNok/d8a7d30432c568f5d5bb78b35eee0fd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func NewAppHomeController(eventhandler *socketmode.SocketmodeHandler) AppHomeController { | |
c := AppHomeController{ | |
EventHandler: eventhandler, | |
} | |
// App Home (2) | |
c.EventHandler.HandleEventsAPI( | |
slackevents.AppHomeOpened, | |
c.publishHomeTabView, | |
) | |
// Create Stickie note Triggered (12) | |
c.EventHandler.HandleInteractionBlockAction( | |
views.AddStockieNoteActionID, | |
c.openCreateStickieNoteModal, | |
) | |
// Create Stickie note Submitted (22) | |
c.EventHandler.HandleInteraction( | |
slack.InteractionTypeViewSubmission, | |
c.createStickieNote, | |
) | |
return c | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment