From 3ed12d8a642b11d334de53c6b6d8988c4c355849 Mon Sep 17 00:00:00 2001 From: Bennett Amodio Date: Mon, 7 Oct 2024 14:30:21 -0700 Subject: [PATCH] add: slackevents channel_shared event --- slackevents/inner_events.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/slackevents/inner_events.go b/slackevents/inner_events.go index 553b465c7..8ce4bd872 100644 --- a/slackevents/inner_events.go +++ b/slackevents/inner_events.go @@ -100,6 +100,14 @@ type ChannelIDChangedEvent struct { EventTimestamp string `json:"event_ts"` } +// ChannelSharedEvent represents the Channel shared event +type ChannelSharedEvent struct { + Type string `json:"type"` + Channel string `json:"channel"` + EventTimestamp string `json:"event_ts"` + ConnectedTeamID string `json:"connected_team_id"` +} + // ChannelCreatedInfo represents the information associated with the Channel created event type ChannelCreatedInfo struct { ID string `json:"id"` @@ -673,6 +681,8 @@ const ( AppHomeOpened = EventsAPIType("app_home_opened") // AppUninstalled Your Slack app was uninstalled. AppUninstalled = EventsAPIType("app_uninstalled") + // ChannelShared is sent when a channel is shared. + ChannelShared = EventsAPIType("channel_shared") // ChannelCreated is sent when a new channel is created. ChannelCreated = EventsAPIType("channel_created") // ChannelDeleted is sent when a channel is deleted.