Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportMessage ¶
type ExportMessage struct {
*slack.Msg
// additional fields not defined by the slack library, but present
// in slack exports
UserTeam string `json:"user_team,omitempty"`
SourceTeam string `json:"source_team,omitempty"`
UserProfile *ExportUserProfile `json:"user_profile,omitempty"`
ReplyUsersCount int `json:"reply_users_count,omitempty"`
// contains filtered or unexported fields
}
ExportMessage is the slack.Message with additional fields usually found in slack exports.
func (*ExportMessage) PopulateReplyFields ¶
func (em *ExportMessage) PopulateReplyFields(thread []slack.Message)
func (*ExportMessage) SlackMessage ¶
func (em *ExportMessage) SlackMessage() *slack.Message
SlackMessage returns the slack.Message.
func (*ExportMessage) Time ¶
func (em *ExportMessage) Time() time.Time
type ExportUserProfile ¶
type ExportUserProfile struct {
AvatarHash string `json:"avatar_hash"`
Image72 string `json:"image_72"`
FirstName string `json:"first_name"`
RealName string `json:"real_name"`
DisplayName string `json:"display_name"`
Team string `json:"team"`
Name string `json:"name"`
IsRestricted bool `json:"is_restricted"`
IsUltraRestricted bool `json:"is_ultra_restricted"`
}
Click to show internal directories.
Click to hide internal directories.