Package list golang-github-nlopes-slack / 5f046818-5e83-4f73-a88b-e31de9bbd4e3/main websocket_stars.go
5f046818-5e83-4f73-a88b-e31de9bbd4e3/main

Tree @5f046818-5e83-4f73-a88b-e31de9bbd4e3/main (Download .tar.gz)

websocket_stars.go @5f046818-5e83-4f73-a88b-e31de9bbd4e3/mainraw · 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