| 1 | package slack |
| 2 | |
| 3 | // GroupCreatedEvent represents the Group created event |
| 4 | type GroupCreatedEvent struct { |
| 5 | Type string `json:"type"` |
| 6 | User string `json:"user"` |
| 7 | Channel ChannelCreatedInfo `json:"channel"` |
| 8 | } |
| 9 | |
| 10 | // XXX: Should we really do this? event.Group is probably nicer than event.Channel |
| 11 | // even though the api returns "channel" |
| 12 | |
| 13 | // GroupMarkedEvent represents the Group marked event |
| 14 | type GroupMarkedEvent ChannelInfoEvent |
| 15 | |
| 16 | // GroupOpenEvent represents the Group open event |
| 17 | type GroupOpenEvent ChannelInfoEvent |
| 18 | |
| 19 | // GroupCloseEvent represents the Group close event |
| 20 | type GroupCloseEvent ChannelInfoEvent |
| 21 | |
| 22 | // GroupArchiveEvent represents the Group archive event |
| 23 | type GroupArchiveEvent ChannelInfoEvent |
| 24 | |
| 25 | // GroupUnarchiveEvent represents the Group unarchive event |
| 26 | type GroupUnarchiveEvent ChannelInfoEvent |
| 27 | |
| 28 | // GroupLeftEvent represents the Group left event |
| 29 | type GroupLeftEvent ChannelInfoEvent |
| 30 | |
| 31 | // GroupJoinedEvent represents the Group joined event |
| 32 | type GroupJoinedEvent ChannelJoinedEvent |
| 33 | |
| 34 | // GroupRenameEvent represents the Group rename event |
| 35 | type GroupRenameEvent struct { |
| 36 | Type string `json:"type"` |
| 37 | Group GroupRenameInfo `json:"channel"` |
| 38 | Timestamp string `json:"ts"` |
| 39 | } |
| 40 | |
| 41 | // GroupRenameInfo represents the group info related to the renamed group |
| 42 | type GroupRenameInfo struct { |
| 43 | ID string `json:"id"` |
| 44 | Name string `json:"name"` |
| 45 | Created string `json:"created"` |
| 46 | } |
| 47 | |
| 48 | // GroupHistoryChangedEvent represents the Group history changed event |
| 49 | type GroupHistoryChangedEvent ChannelHistoryChangedEvent |