Versions in this module Expand all Collapse all v1 v1.0.4 Jun 21, 2023 v1.0.3 Jun 21, 2023 v1.0.2 Jun 4, 2022 v1.0.1 Jun 4, 2022 v1.0.0 Jun 4, 2022 Changes in this version + const SlackAPIEndpoint + type Attachment struct + Actions []slack.AttachmentAction + AuthorID string + AuthorIcon string + AuthorLink string + AuthorName string + AuthorSubname string + CallbackID string + Color string + Fallback string + Fields []slack.AttachmentField + Footer string + FooterIcon string + FromURL string + ID int + ImageURL string + MarkdownIn []string + OriginalURL string + Pretext string + ServiceIcon string + ServiceName string + Text string + ThumbURL string + Title string + TitleLink string + Ts json.Number + type BasicIdentity struct + Team string + TeamID string + User string + UserID string + WorkspaceURI string + type BlockBase struct + AltText string + Elements []BlockElement + ExternalID string + ImageURL string + Source string + Text BlockElement + Title BlockTitle + Type string + func ContextBlock(elements ...BlockElement) BlockBase + func DividerBlock() BlockBase + func FileBlock(ExternalID string) BlockBase + func ImageBlock(imageURL, altText string) BlockBase + func SectionBlock() BlockBase + func (b BlockBase) MarshalJSON() ([]byte, error) + type BlockElement struct + AltText string + ImageURL string + Text string + Type string + func ImageElement(imageURL, altText string) BlockElement + func MrkdwnElement(text string) BlockElement + type BlockTitle struct + Emoji bool + Text string + Type string + func ImageTitle(title string, emoji bool) BlockTitle + type File struct + FileName string + FileType string + InitialComment string + Reader io.Reader + ThreadTimestamp string + type FilesRemoteAddParameters struct + ExternalID string + ExternalURL string + File io.Reader + FileType string + IndexableFileContents io.Reader + PreviewImage io.Reader + Title string + type GetConversationHistoryParameters struct + ChannelID string + Cursor string + Inclusive bool + Latest string + Limit int + Oldest string + type Handler struct + Identity BasicIdentity + func New(token string) *Handler + func (s *Handler) ChatUnfURL(parameters UnfURLsParameters) error + func (s *Handler) FilesUpload(file File, channels ...string) (*slack.File, error) + func (s *Handler) GetMessage(channelID, timestamp string) (*Message, error) + func (s *Handler) GetMessages(channelID, timestamp string, limit int) ([]Message, error) + func (s *Handler) Send(message Message) (string, error) + func (s *Handler) Update(message Message) (string, error) + func (s Handler) AuthTest() (*BasicIdentity, error) + func (s Handler) GetUserIdentity() (identity *UserIdentity, err error) + func (s Handler) GetUserProfile(user string, includeLabels bool) (profile *UserProfile, err error) + func (s Handler) Remove(channel, ts string) (string, error) + func (s Handler) SetUserProfile(user string, name string, value string) (profile *UserProfile, err error) + type Message struct + AsUser bool + Attachments []Attachment + Blocks []BlockBase + Channel string + IconEmoji string + IconURL string + LinkNames bool + Parse string + ReplyBroadcast bool + TS string + Text string + ThreadTimestamp string + Type string + UnfurlLinks bool + UnfurlMedia bool + User string + Username string + type ProfileLabel struct + AltText string + Label string + Value string + type UnfURL struct + Blocks []BlockBase + HideColor bool + type UnfURLs map[string]UnfURL + type UnfURLsParameters struct + Channel string + Source string + TimeStamp string + UnfURLs UnfURLs + UnfUrlID string + UserAuthBlocks []BlockBase + UserAuthRequired bool + type UserIdentity struct + ID string + User string + type UserProfile struct + DisplayName string + DisplayNameNormalized string + Email string + Fields map[string]ProfileLabel + FirstName string + Image192 string + Image24 string + Image32 string + Image48 string + Image512 string + Image72 string + ImageOriginal string + LastName string + Phone string + RealName string + RealNameNormalized string + Skype string + StatusEmoji string + StatusExpiration int + StatusText string + Team string