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

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

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

package slack

// FileActionEvent represents the File action event
type fileActionEvent struct {
	Type           string `json:"type"`
	EventTimestamp string `json:"event_ts"`
	File           File   `json:"file"`
	// FileID is used for FileDeletedEvent
	FileID string `json:"file_id,omitempty"`

// FileCreatedEvent represents the File created event
type FileCreatedEvent fileActionEvent

// FileSharedEvent represents the File shared event
type FileSharedEvent fileActionEvent

// FilePublicEvent represents the File public event
type FilePublicEvent fileActionEvent

// FileUnsharedEvent represents the File unshared event
type FileUnsharedEvent fileActionEvent

// FileChangeEvent represents the File change event
type FileChangeEvent fileActionEvent

// FileDeletedEvent represents the File deleted event
type FileDeletedEvent fileActionEvent

// FilePrivateEvent represents the File private event
type FilePrivateEvent fileActionEvent

// FileCommentAddedEvent represents the File comment added event
type FileCommentAddedEvent struct {
	Comment Comment `json:"comment"`

// FileCommentEditedEvent represents the File comment edited event
type FileCommentEditedEvent struct {
	Comment Comment `json:"comment"`

// FileCommentDeletedEvent represents the File comment deleted event
type FileCommentDeletedEvent struct {
	Comment string `json:"comment"`