Codebase list golang-github-nlopes-slack / 3e4a1aa
add support for app_home_opened event Artem Panko authored 4 years ago James committed 4 years ago
1 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1818 ThreadTimeStamp string `json:"thread_ts"`
1919 Channel string `json:"channel"`
2020 EventTimeStamp json.Number `json:"event_ts"`
21 }
22
23 // AppHomeOpenedEvent Your Slack app home was opened.
24 type AppHomeOpenedEvent struct {
25 Type string `json:"type"`
26 User string `json:"user"`
27 Channel string `json:"channel"`
28 EventTimeStamp json.Number `json:"event_ts"`
2129 }
2230
2331 // AppUninstalledEvent Your Slack app was uninstalled.
227235 const (
228236 // AppMention is an Events API subscribable event
229237 AppMention = "app_mention"
238 // AppHomeOpened Your Slack app home was opened
239 AppHomeOpened = "app_home_opened"
230240 // AppUninstalled Your Slack app was uninstalled.
231241 AppUninstalled = "app_uninstalled"
232242 // GridMigrationFinished An enterprise grid migration has finished on this workspace.
252262 // target for the matching event type.
253263 var EventsAPIInnerEventMapping = map[string]interface{}{
254264 AppMention: AppMentionEvent{},
265 AppHomeOpened: AppHomeOpenedEvent{},
255266 AppUninstalled: AppUninstalledEvent{},
256267 GridMigrationFinished: GridMigrationFinishedEvent{},
257268 GridMigrationStarted: GridMigrationStartedEvent{},