Package list golang-github-nlopes-slack / upstream/0.1.0 websocket_stars.go
upstream/0.1.0

Tree @upstream/0.1.0 (Download .tar.gz)

websocket_stars.go @upstream/0.1.0raw · history · blame

package slack

type starEvent struct {
	Type           string      `json:"type"`
	User           string      `json:"user"`
	Item           StarredItem `json:"item"`
	EventTimestamp string      `json:"event_ts"`
}

// StarAddedEvent represents the Star added event
type StarAddedEvent starEvent

// StarRemovedEvent represents the Star removed event
type StarRemovedEvent starEvent