Codebase list golang-github-nlopes-slack / 676c3c4 websocket_files.go
676c3c4

Tree @676c3c4 (Download .tar.gz)

websocket_files.go @676c3c4raw · history · blame

package slack

type fileActionEvent struct {
	Type           string         `json:"type"`
	EventTimestamp JSONTimeString `json:"event_ts"`
	File           File           `json:"file"`
	// FileId is used for FileDeletedEvent
	FileId string `json:"file_id,omitempty"`
}

type FileCreatedEvent fileActionEvent
type FileSharedEvent fileActionEvent
type FilePublicEvent fileActionEvent
type FileUnsharedEvent fileActionEvent
type FileChangeEvent fileActionEvent
type FileDeletedEvent fileActionEvent
type FilePrivateEvent fileActionEvent

type FileCommentAddedEvent struct {
	fileActionEvent
	Comment Comment `json:"comment"`
}

type FileCommentEditedEvent struct {
	fileActionEvent
	Comment Comment `json:"comment"`
}

type FileCommentDeletedEvent struct {
	fileActionEvent
	CommentId string `json:"comment"`
}