Skip to content

Commit

Permalink
add: slackevents channel_shared event
Browse files Browse the repository at this point in the history
  • Loading branch information
bamo committed Oct 7, 2024
1 parent 26f6c99 commit 3ed12d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions slackevents/inner_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3ed12d8

Please sign in to comment.