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

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

websocket_pins.go @5f046818-5e83-4f73-a88b-e31de9bbd4e3/mainraw · history · blame

package slack

type pinEvent struct {
	Type           string `json:"type"`
	User           string `json:"user"`
	Item           Item   `json:"item"`
	Channel        string `json:"channel_id"`
	EventTimestamp string `json:"event_ts"`
	HasPins        bool   `json:"has_pins,omitempty"`
}

// PinAddedEvent represents the Pin added event
type PinAddedEvent pinEvent

// PinRemovedEvent represents the Pin removed event
type PinRemovedEvent pinEvent