| 1 | package slack |
| 2 | |
| 3 | type pinEvent struct { |
| 4 | Type string `json:"type"` |
| 5 | User string `json:"user"` |
| 6 | Item Item `json:"item"` |
| 7 | Channel string `json:"channel_id"` |
| 8 | EventTimestamp string `json:"event_ts"` |
| 9 | HasPins bool `json:"has_pins,omitempty"` |
| 10 | } |
| 11 | |
| 12 | // PinAddedEvent represents the Pin added event |
| 13 | type PinAddedEvent pinEvent |
| 14 | |
| 15 | // PinRemovedEvent represents the Pin removed event |
| 16 | type PinRemovedEvent pinEvent |