Versions in this module Expand all Collapse all v0 v0.2.0 Feb 10, 2018 Changes in this version + const DEFAULT_FILES_CHANNEL + const DEFAULT_FILES_COUNT + const DEFAULT_FILES_PAGE + const DEFAULT_FILES_TS_FROM + const DEFAULT_FILES_TS_TO + const DEFAULT_FILES_TYPES + const DEFAULT_FILES_USER + const DEFAULT_HISTORY_COUNT + const DEFAULT_HISTORY_INCLUSIVE + const DEFAULT_HISTORY_LATEST + const DEFAULT_HISTORY_OLDEST + const DEFAULT_HISTORY_UNREADS + const DEFAULT_LOGINS_COUNT + const DEFAULT_LOGINS_PAGE + const DEFAULT_MESSAGE_ASUSER + const DEFAULT_MESSAGE_ESCAPE_TEXT + const DEFAULT_MESSAGE_ICON_EMOJI + const DEFAULT_MESSAGE_ICON_URL + const DEFAULT_MESSAGE_LINK_NAMES + const DEFAULT_MESSAGE_MARKDOWN + const DEFAULT_MESSAGE_PARSE + const DEFAULT_MESSAGE_REPLY_BROADCAST + const DEFAULT_MESSAGE_THREAD_TIMESTAMP + const DEFAULT_MESSAGE_UNFURL_LINKS + const DEFAULT_MESSAGE_UNFURL_MEDIA + const DEFAULT_MESSAGE_USERNAME + const DEFAULT_REACTIONS_COUNT + const DEFAULT_REACTIONS_FULL + const DEFAULT_REACTIONS_PAGE + const DEFAULT_REACTIONS_USER + const DEFAULT_SEARCH_COUNT + const DEFAULT_SEARCH_HIGHLIGHT + const DEFAULT_SEARCH_PAGE + const DEFAULT_SEARCH_SORT + const DEFAULT_SEARCH_SORT_DIR + const DEFAULT_STARS_COUNT + const DEFAULT_STARS_PAGE + const DEFAULT_STARS_USER + const DEFAULT_USER_PHOTO_CROP_W + const DEFAULT_USER_PHOTO_CROP_X + const DEFAULT_USER_PHOTO_CROP_Y + const MaxMessageTextLength + const TYPE_CHANNEL + const TYPE_FILE + const TYPE_FILE_COMMENT + const TYPE_GROUP + const TYPE_IM + const TYPE_MESSAGE + var HTTPClient = &http.Client + var SLACK_API string = "https://slack.com/api/" + var SLACK_WEB_API_FORMAT string = "https://%s.slack.com/api/users.admin.%s?t=%s" + func ApplyMsgOptions(token, channel string, options ...MsgOption) (string, url.Values, error) + func GetOAuthToken(clientID, clientSecret, code, redirectURI string, debug bool) (accessToken string, scope string, err error) + func GetOAuthTokenContext(ctx context.Context, clientID, clientSecret, code, redirectURI string, ...) (accessToken string, scope string, err error) + func OptionHTTPClient(c HTTPRequester) func(*Client) + func SetHTTPClient(client HTTPRequester) + func SetLogger(l logProvider) + type AccessLogParameters struct + Count int + Page int + func NewAccessLogParameters() AccessLogParameters + type AccountsChangedEvent struct + Type string + type AckErrorEvent struct + ErrorObj error + func (a *AckErrorEvent) Error() string + type AckMessage struct + ReplyTo int + Text string + Timestamp string + type Attachment struct + Actions []AttachmentAction + AuthorIcon string + AuthorLink string + AuthorName string + AuthorSubname string + CallbackID string + Color string + Fallback string + Fields []AttachmentField + Footer string + FooterIcon string + ID int + ImageURL string + MarkdownIn []string + Pretext string + Text string + ThumbURL string + Title string + TitleLink string + Ts json.Number + type AttachmentAction struct + Confirm *ConfirmationField + DataSource string + MinQueryLength int + Name string + OptionGroups []AttachmentActionOptionGroup + Options []AttachmentActionOption + SelectedOptions []AttachmentActionOption + Style string + Text string + Type string + URL string + Value string + type AttachmentActionCallback struct + ActionTs string + Actions []AttachmentAction + AttachmentID string + CallbackID string + Channel Channel + MessageTs string + Name string + OriginalMessage Message + ResponseURL string + Team Team + Token string + TriggerID string + User User + Value string + type AttachmentActionOption struct + Description string + Text string + Value string + type AttachmentActionOptionGroup struct + Options []AttachmentActionOption + Text string + type AttachmentField struct + Short bool + Title string + Value string + type AuthTestResponse struct + Team string + TeamID string + URL string + User string + UserID string + type BillableInfoResponse struct + BillableInfo map[string]BillingActive + type BillingActive struct + BillingActive bool + type Bot struct + Deleted bool + ID string + Icons Icons + Name string + type BotAddedEvent struct + Bot Bot + Type string + type BotChangedEvent struct + Bot Bot + Type string + type Channel struct + IsChannel bool + IsGeneral bool + IsMember bool + Locale string + type ChannelArchiveEvent ChannelInfoEvent + type ChannelCreatedEvent struct + Channel ChannelCreatedInfo + EventTimestamp string + Type string + type ChannelCreatedInfo struct + Created int + Creator string + ID string + IsChannel bool + Name string + type ChannelDeletedEvent ChannelInfoEvent + type ChannelHistoryChangedEvent struct + EventTimestamp string + Latest string + Timestamp string + Type string + type ChannelInfoEvent struct + Channel string + Timestamp string + Type string + User string + type ChannelJoinedEvent struct + Channel Channel + Type string + type ChannelLeftEvent ChannelInfoEvent + type ChannelMarkedEvent ChannelInfoEvent + type ChannelRenameEvent struct + Channel ChannelRenameInfo + Timestamp string + Type string + type ChannelRenameInfo struct + Created string + ID string + Name string + type ChannelUnarchiveEvent ChannelInfoEvent + type Client struct + func New(token string, options ...Option) *Client + func (api *Client) AddPin(channel string, item ItemRef) error + func (api *Client) AddPinContext(ctx context.Context, channel string, item ItemRef) error + func (api *Client) AddReaction(name string, item ItemRef) error + func (api *Client) AddReactionContext(ctx context.Context, name string, item ItemRef) error + func (api *Client) AddStar(channel string, item ItemRef) error + func (api *Client) AddStarContext(ctx context.Context, channel string, item ItemRef) error + func (api *Client) ArchiveChannel(channelID string) error + func (api *Client) ArchiveChannelContext(ctx context.Context, channelID string) (err error) + func (api *Client) ArchiveConversation(channelID string) error + func (api *Client) ArchiveConversationContext(ctx context.Context, channelID string) error + func (api *Client) ArchiveGroup(group string) error + func (api *Client) ArchiveGroupContext(ctx context.Context, group string) error + func (api *Client) AuthTest() (response *AuthTestResponse, error error) + func (api *Client) AuthTestContext(ctx context.Context) (response *AuthTestResponse, error error) + func (api *Client) CloseConversation(channelID string) (noOp bool, alreadyClosed bool, err error) + func (api *Client) CloseConversationContext(ctx context.Context, channelID string) (noOp bool, alreadyClosed bool, err error) + func (api *Client) CloseGroup(group string) (bool, bool, error) + func (api *Client) CloseGroupContext(ctx context.Context, group string) (bool, bool, error) + func (api *Client) CloseIMChannel(channel string) (bool, bool, error) + func (api *Client) CloseIMChannelContext(ctx context.Context, channel string) (bool, bool, error) + func (api *Client) ConnectRTM() (info *Info, websocketURL string, err error) + func (api *Client) ConnectRTMContext(ctx context.Context) (info *Info, websocketURL string, err error) + func (api *Client) CreateChannel(channelName string) (*Channel, error) + func (api *Client) CreateChannelContext(ctx context.Context, channelName string) (*Channel, error) + func (api *Client) CreateChildGroup(group string) (*Group, error) + func (api *Client) CreateChildGroupContext(ctx context.Context, group string) (*Group, error) + func (api *Client) CreateConversation(channelName string, isPrivate bool) (*Channel, error) + func (api *Client) CreateConversationContext(ctx context.Context, channelName string, isPrivate bool) (*Channel, error) + func (api *Client) CreateGroup(group string) (*Group, error) + func (api *Client) CreateGroupContext(ctx context.Context, group string) (*Group, error) + func (api *Client) CreateUserGroup(userGroup UserGroup) (UserGroup, error) + func (api *Client) CreateUserGroupContext(ctx context.Context, userGroup UserGroup) (UserGroup, error) + func (api *Client) Debugf(format string, v ...interface{}) + func (api *Client) Debugln(v ...interface{}) + func (api *Client) DeleteFile(fileID string) error + func (api *Client) DeleteFileComment(commentID, fileID string) error + func (api *Client) DeleteFileCommentContext(ctx context.Context, fileID, commentID string) (err error) + func (api *Client) DeleteFileContext(ctx context.Context, fileID string) (err error) + func (api *Client) DeleteMessage(channel, messageTimestamp string) (string, string, error) + func (api *Client) DeleteMessageContext(ctx context.Context, channel, messageTimestamp string) (string, string, error) + func (api *Client) DeleteUserPhoto() error + func (api *Client) DeleteUserPhotoContext(ctx context.Context) error + func (api *Client) DisableUser(teamName string, uid string) error + func (api *Client) DisableUserContext(ctx context.Context, teamName string, uid string) error + func (api *Client) DisableUserGroup(userGroup string) (UserGroup, error) + func (api *Client) DisableUserGroupContext(ctx context.Context, userGroup string) (UserGroup, error) + func (api *Client) EnableUserGroup(userGroup string) (UserGroup, error) + func (api *Client) EnableUserGroupContext(ctx context.Context, userGroup string) (UserGroup, error) + func (api *Client) EndDND() error + func (api *Client) EndDNDContext(ctx context.Context) error + func (api *Client) EndSnooze() (*DNDStatus, error) + func (api *Client) EndSnoozeContext(ctx context.Context) (*DNDStatus, error) + func (api *Client) GetAccessLogs(params AccessLogParameters) ([]Login, *Paging, error) + func (api *Client) GetAccessLogsContext(ctx context.Context, params AccessLogParameters) ([]Login, *Paging, error) + func (api *Client) GetBillableInfo(user string) (map[string]BillingActive, error) + func (api *Client) GetBillableInfoContext(ctx context.Context, user string) (map[string]BillingActive, error) + func (api *Client) GetBillableInfoForTeam() (map[string]BillingActive, error) + func (api *Client) GetBillableInfoForTeamContext(ctx context.Context) (map[string]BillingActive, error) + func (api *Client) GetBotInfo(bot string) (*Bot, error) + func (api *Client) GetBotInfoContext(ctx context.Context, bot string) (*Bot, error) + func (api *Client) GetChannelHistory(channelID string, params HistoryParameters) (*History, error) + func (api *Client) GetChannelHistoryContext(ctx context.Context, channelID string, params HistoryParameters) (*History, error) + func (api *Client) GetChannelInfo(channelID string) (*Channel, error) + func (api *Client) GetChannelInfoContext(ctx context.Context, channelID string) (*Channel, error) + func (api *Client) GetChannelReplies(channelID, thread_ts string) ([]Message, error) + func (api *Client) GetChannelRepliesContext(ctx context.Context, channelID, thread_ts string) ([]Message, error) + func (api *Client) GetChannels(excludeArchived bool) ([]Channel, error) + func (api *Client) GetChannelsContext(ctx context.Context, excludeArchived bool) ([]Channel, error) + func (api *Client) GetConversationHistory(params *GetConversationHistoryParameters) (*GetConversationHistoryResponse, error) + func (api *Client) GetConversationHistoryContext(ctx context.Context, params *GetConversationHistoryParameters) (*GetConversationHistoryResponse, error) + func (api *Client) GetConversationInfo(channelID string, includeLocale bool) (*Channel, error) + func (api *Client) GetConversationInfoContext(ctx context.Context, channelID string, includeLocale bool) (*Channel, error) + func (api *Client) GetConversationReplies(params *GetConversationRepliesParameters) (msgs []Message, hasMore bool, nextCursor string, err error) + func (api *Client) GetConversationRepliesContext(ctx context.Context, params *GetConversationRepliesParameters) (msgs []Message, hasMore bool, nextCursor string, err error) + func (api *Client) GetConversations(params *GetConversationsParameters) (channels []Channel, nextCursor string, err error) + func (api *Client) GetConversationsContext(ctx context.Context, params *GetConversationsParameters) (channels []Channel, nextCursor string, err error) + func (api *Client) GetDNDInfo(user *string) (*DNDStatus, error) + func (api *Client) GetDNDInfoContext(ctx context.Context, user *string) (*DNDStatus, error) + func (api *Client) GetDNDTeamInfo(users []string) (map[string]DNDStatus, error) + func (api *Client) GetDNDTeamInfoContext(ctx context.Context, users []string) (map[string]DNDStatus, error) + func (api *Client) GetEmoji() (map[string]string, error) + func (api *Client) GetEmojiContext(ctx context.Context) (map[string]string, error) + func (api *Client) GetFileInfo(fileID string, count, page int) (*File, []Comment, *Paging, error) + func (api *Client) GetFileInfoContext(ctx context.Context, fileID string, count, page int) (*File, []Comment, *Paging, error) + func (api *Client) GetFiles(params GetFilesParameters) ([]File, *Paging, error) + func (api *Client) GetFilesContext(ctx context.Context, params GetFilesParameters) ([]File, *Paging, error) + func (api *Client) GetGroupHistory(group string, params HistoryParameters) (*History, error) + func (api *Client) GetGroupHistoryContext(ctx context.Context, group string, params HistoryParameters) (*History, error) + func (api *Client) GetGroupInfo(group string) (*Group, error) + func (api *Client) GetGroupInfoContext(ctx context.Context, group string) (*Group, error) + func (api *Client) GetGroups(excludeArchived bool) ([]Group, error) + func (api *Client) GetGroupsContext(ctx context.Context, excludeArchived bool) ([]Group, error) + func (api *Client) GetIMChannels() ([]IM, error) + func (api *Client) GetIMChannelsContext(ctx context.Context) ([]IM, error) + func (api *Client) GetIMHistory(channel string, params HistoryParameters) (*History, error) + func (api *Client) GetIMHistoryContext(ctx context.Context, channel string, params HistoryParameters) (*History, error) + func (api *Client) GetReactions(item ItemRef, params GetReactionsParameters) ([]ItemReaction, error) + func (api *Client) GetReactionsContext(ctx context.Context, item ItemRef, params GetReactionsParameters) ([]ItemReaction, error) + func (api *Client) GetStarred(params StarsParameters) ([]StarredItem, *Paging, error) + func (api *Client) GetStarredContext(ctx context.Context, params StarsParameters) ([]StarredItem, *Paging, error) + func (api *Client) GetTeamInfo() (*TeamInfo, error) + func (api *Client) GetTeamInfoContext(ctx context.Context) (*TeamInfo, error) + func (api *Client) GetUserByEmail(email string) (*User, error) + func (api *Client) GetUserByEmailContext(ctx context.Context, email string) (*User, error) + func (api *Client) GetUserGroupMembers(userGroup string) ([]string, error) + func (api *Client) GetUserGroupMembersContext(ctx context.Context, userGroup string) ([]string, error) + func (api *Client) GetUserGroups() ([]UserGroup, error) + func (api *Client) GetUserGroupsContext(ctx context.Context) ([]UserGroup, error) + func (api *Client) GetUserIdentity() (*UserIdentityResponse, error) + func (api *Client) GetUserIdentityContext(ctx context.Context) (*UserIdentityResponse, error) + func (api *Client) GetUserInfo(user string) (*User, error) + func (api *Client) GetUserInfoContext(ctx context.Context, user string) (*User, error) + func (api *Client) GetUserPresence(user string) (*UserPresence, error) + func (api *Client) GetUserPresenceContext(ctx context.Context, user string) (*UserPresence, error) + func (api *Client) GetUsers() ([]User, error) + func (api *Client) GetUsersContext(ctx context.Context) ([]User, error) + func (api *Client) GetUsersInConversation(params *GetUsersInConversationParameters) ([]string, string, error) + func (api *Client) GetUsersInConversationContext(ctx context.Context, params *GetUsersInConversationParameters) ([]string, string, error) + func (api *Client) InviteGuest(teamName, channel, firstName, lastName, emailAddress string) error + func (api *Client) InviteGuestContext(ctx context.Context, ...) error + func (api *Client) InviteRestricted(teamName, channel, firstName, lastName, emailAddress string) error + func (api *Client) InviteRestrictedContext(ctx context.Context, ...) error + func (api *Client) InviteToTeam(teamName, firstName, lastName, emailAddress string) error + func (api *Client) InviteToTeamContext(ctx context.Context, teamName, firstName, lastName, emailAddress string) error + func (api *Client) InviteUserToChannel(channelID, user string) (*Channel, error) + func (api *Client) InviteUserToChannelContext(ctx context.Context, channelID, user string) (*Channel, error) + func (api *Client) InviteUserToGroup(group, user string) (*Group, bool, error) + func (api *Client) InviteUserToGroupContext(ctx context.Context, group, user string) (*Group, bool, error) + func (api *Client) InviteUsersToConversation(channelID string, users ...string) (*Channel, error) + func (api *Client) InviteUsersToConversationContext(ctx context.Context, channelID string, users ...string) (*Channel, error) + func (api *Client) JoinChannel(channelName string) (*Channel, error) + func (api *Client) JoinChannelContext(ctx context.Context, channelName string) (*Channel, error) + func (api *Client) JoinConversation(channelID string) (*Channel, string, []string, error) + func (api *Client) JoinConversationContext(ctx context.Context, channelID string) (*Channel, string, []string, error) + func (api *Client) KickUserFromChannel(channelID, user string) error + func (api *Client) KickUserFromChannelContext(ctx context.Context, channelID, user string) (err error) + func (api *Client) KickUserFromConversation(channelID string, user string) error + func (api *Client) KickUserFromConversationContext(ctx context.Context, channelID string, user string) error + func (api *Client) KickUserFromGroup(group, user string) error + func (api *Client) KickUserFromGroupContext(ctx context.Context, group, user string) (err error) + func (api *Client) LeaveChannel(channelID string) (bool, error) + func (api *Client) LeaveChannelContext(ctx context.Context, channelID string) (bool, error) + func (api *Client) LeaveConversation(channelID string) (bool, error) + func (api *Client) LeaveConversationContext(ctx context.Context, channelID string) (bool, error) + func (api *Client) LeaveGroup(group string) error + func (api *Client) LeaveGroupContext(ctx context.Context, group string) (err error) + func (api *Client) ListPins(channel string) ([]Item, *Paging, error) + func (api *Client) ListPinsContext(ctx context.Context, channel string) ([]Item, *Paging, error) + func (api *Client) ListReactions(params ListReactionsParameters) ([]ReactedItem, *Paging, error) + func (api *Client) ListReactionsContext(ctx context.Context, params ListReactionsParameters) ([]ReactedItem, *Paging, error) + func (api *Client) ListStars(params StarsParameters) ([]Item, *Paging, error) + func (api *Client) ListStarsContext(ctx context.Context, params StarsParameters) ([]Item, *Paging, error) + func (api *Client) MarkIMChannel(channel, ts string) (err error) + func (api *Client) MarkIMChannelContext(ctx context.Context, channel, ts string) (err error) + func (api *Client) NewRTM() *RTM + func (api *Client) NewRTMWithOptions(options *RTMOptions) *RTM + func (api *Client) OpenConversation(params *OpenConversationParameters) (*Channel, bool, bool, error) + func (api *Client) OpenConversationContext(ctx context.Context, params *OpenConversationParameters) (*Channel, bool, bool, error) + func (api *Client) OpenGroup(group string) (bool, bool, error) + func (api *Client) OpenGroupContext(ctx context.Context, group string) (bool, bool, error) + func (api *Client) OpenIMChannel(user string) (bool, bool, string, error) + func (api *Client) OpenIMChannelContext(ctx context.Context, user string) (bool, bool, string, error) + func (api *Client) PostEphemeral(channel, userID string, options ...MsgOption) (string, error) + func (api *Client) PostEphemeralContext(ctx context.Context, channel, userID string, options ...MsgOption) (string, error) + func (api *Client) PostMessage(channel, text string, params PostMessageParameters) (string, string, error) + func (api *Client) PostMessageContext(ctx context.Context, channel, text string, params PostMessageParameters) (string, string, error) + func (api *Client) RemovePin(channel string, item ItemRef) error + func (api *Client) RemovePinContext(ctx context.Context, channel string, item ItemRef) error + func (api *Client) RemoveReaction(name string, item ItemRef) error + func (api *Client) RemoveReactionContext(ctx context.Context, name string, item ItemRef) error + func (api *Client) RemoveStar(channel string, item ItemRef) error + func (api *Client) RemoveStarContext(ctx context.Context, channel string, item ItemRef) error + func (api *Client) RenameChannel(channelID, name string) (*Channel, error) + func (api *Client) RenameChannelContext(ctx context.Context, channelID, name string) (*Channel, error) + func (api *Client) RenameConversation(channelID, channelName string) (*Channel, error) + func (api *Client) RenameConversationContext(ctx context.Context, channelID, channelName string) (*Channel, error) + func (api *Client) RenameGroup(group, name string) (*Channel, error) + func (api *Client) RenameGroupContext(ctx context.Context, group, name string) (*Channel, error) + func (api *Client) RevokeFilePublicURL(fileID string) (*File, error) + func (api *Client) RevokeFilePublicURLContext(ctx context.Context, fileID string) (*File, error) + func (api *Client) Search(query string, params SearchParameters) (*SearchMessages, *SearchFiles, error) + func (api *Client) SearchContext(ctx context.Context, query string, params SearchParameters) (*SearchMessages, *SearchFiles, error) + func (api *Client) SearchFiles(query string, params SearchParameters) (*SearchFiles, error) + func (api *Client) SearchFilesContext(ctx context.Context, query string, params SearchParameters) (*SearchFiles, error) + func (api *Client) SearchMessages(query string, params SearchParameters) (*SearchMessages, error) + func (api *Client) SearchMessagesContext(ctx context.Context, query string, params SearchParameters) (*SearchMessages, error) + func (api *Client) SendMessage(channel string, options ...MsgOption) (string, string, string, error) + func (api *Client) SendMessageContext(ctx context.Context, channel string, options ...MsgOption) (string, string, string, error) + func (api *Client) SendSSOBindingEmail(teamName, user string) error + func (api *Client) SendSSOBindingEmailContext(ctx context.Context, teamName, user string) error + func (api *Client) SetChannelPurpose(channelID, purpose string) (string, error) + func (api *Client) SetChannelPurposeContext(ctx context.Context, channelID, purpose string) (string, error) + func (api *Client) SetChannelReadMark(channelID, ts string) error + func (api *Client) SetChannelReadMarkContext(ctx context.Context, channelID, ts string) (err error) + func (api *Client) SetChannelTopic(channelID, topic string) (string, error) + func (api *Client) SetChannelTopicContext(ctx context.Context, channelID, topic string) (string, error) + func (api *Client) SetDebug(debug bool) + func (api *Client) SetGroupPurpose(group, purpose string) (string, error) + func (api *Client) SetGroupPurposeContext(ctx context.Context, group, purpose string) (string, error) + func (api *Client) SetGroupReadMark(group, ts string) error + func (api *Client) SetGroupReadMarkContext(ctx context.Context, group, ts string) (err error) + func (api *Client) SetGroupTopic(group, topic string) (string, error) + func (api *Client) SetGroupTopicContext(ctx context.Context, group, topic string) (string, error) + func (api *Client) SetPurposeOfConversation(channelID, purpose string) (*Channel, error) + func (api *Client) SetPurposeOfConversationContext(ctx context.Context, channelID, purpose string) (*Channel, error) + func (api *Client) SetRegular(teamName, user string) error + func (api *Client) SetRegularContext(ctx context.Context, teamName, user string) error + func (api *Client) SetRestricted(teamName, uid string) error + func (api *Client) SetRestrictedContext(ctx context.Context, teamName, uid string) error + func (api *Client) SetSnooze(minutes int) (*DNDStatus, error) + func (api *Client) SetSnoozeContext(ctx context.Context, minutes int) (*DNDStatus, error) + func (api *Client) SetTopicOfConversation(channelID, topic string) (*Channel, error) + func (api *Client) SetTopicOfConversationContext(ctx context.Context, channelID, topic string) (*Channel, error) + func (api *Client) SetUltraRestricted(teamName, uid, channel string) error + func (api *Client) SetUltraRestrictedContext(ctx context.Context, teamName, uid, channel string) error + func (api *Client) SetUserAsActive() error + func (api *Client) SetUserAsActiveContext(ctx context.Context) (err error) + func (api *Client) SetUserCustomStatus(statusText, statusEmoji string) error + func (api *Client) SetUserCustomStatusContext(ctx context.Context, statusText, statusEmoji string) error + func (api *Client) SetUserPhoto(image string, params UserSetPhotoParams) error + func (api *Client) SetUserPhotoContext(ctx context.Context, image string, params UserSetPhotoParams) error + func (api *Client) SetUserPresence(presence string) error + func (api *Client) SetUserPresenceContext(ctx context.Context, presence string) error + func (api *Client) ShareFilePublicURL(fileID string) (*File, []Comment, *Paging, error) + func (api *Client) ShareFilePublicURLContext(ctx context.Context, fileID string) (*File, []Comment, *Paging, error) + func (api *Client) StartRTM() (info *Info, websocketURL string, err error) + func (api *Client) StartRTMContext(ctx context.Context) (info *Info, websocketURL string, err error) + func (api *Client) UnArchiveConversation(channelID string) error + func (api *Client) UnArchiveConversationContext(ctx context.Context, channelID string) error + func (api *Client) UnarchiveChannel(channelID string) error + func (api *Client) UnarchiveChannelContext(ctx context.Context, channelID string) (err error) + func (api *Client) UnarchiveGroup(group string) error + func (api *Client) UnarchiveGroupContext(ctx context.Context, group string) error + func (api *Client) UnsetUserCustomStatus() error + func (api *Client) UnsetUserCustomStatusContext(ctx context.Context) error + func (api *Client) UpdateMessage(channel, timestamp, text string) (string, string, string, error) + func (api *Client) UpdateMessageContext(ctx context.Context, channel, timestamp, text string) (string, string, string, error) + func (api *Client) UpdateUserGroup(userGroup UserGroup) (UserGroup, error) + func (api *Client) UpdateUserGroupContext(ctx context.Context, userGroup UserGroup) (UserGroup, error) + func (api *Client) UpdateUserGroupMembers(userGroup string, members string) (UserGroup, error) + func (api *Client) UpdateUserGroupMembersContext(ctx context.Context, userGroup string, members string) (UserGroup, error) + func (api *Client) UploadFile(params FileUploadParameters) (file *File, err error) + func (api *Client) UploadFileContext(ctx context.Context, params FileUploadParameters) (file *File, err error) + type CommandsChangedEvent struct + EventTimestamp string + Type string + type Comment struct + Comment string + Created JSONTime + ID string + Timestamp JSONTime + User string + type ConfirmationField struct + DismissText string + OkText string + Text string + Title string + type ConnectedEvent struct + ConnectionCount int + Info *Info + type ConnectingEvent struct + Attempt int + ConnectionCount int + type ConnectionErrorEvent struct + Attempt int + ErrorObj error + func (c *ConnectionErrorEvent) Error() string + type CtxChannel struct + ID string + Name string + type CtxMessage struct + Text string + Timestamp string + Type string + User string + Username string + type DNDStatus struct + Enabled bool + NextEndTimestamp int + NextStartTimestamp int + type DNDUpdatedEvent struct + Status DNDStatus + Type string + User string + type DisconnectedEvent struct + Intentional bool + type Edited struct + Timestamp string + User string + type EmailDomainChangedEvent struct + EmailDomain string + EventTimestamp string + Type string + type EmojiChangedEvent struct + EventTimestamp string + Name string + Names []string + SubType string + Type string + Value string + type Event struct + Type string + type File struct + Channels []string + CommentsCount int + Created JSONTime + EditLink string + Editable bool + ExternalType string + Filetype string + Groups []string + ID string + IMs []string + ImageExifRotation int + InitialComment Comment + IsExternal bool + IsPublic bool + IsStarred bool + Lines int + LinesMore int + Mimetype string + Mode string + Name string + NumStars int + OriginalH int + OriginalW int + Permalink string + PermalinkPublic string + PrettyType string + Preview string + PreviewHighlight string + PublicURLShared bool + Size int + Thumb1024 string + Thumb1024H int + Thumb1024W int + Thumb160 string + Thumb360 string + Thumb360Gif string + Thumb360H int + Thumb360W int + Thumb480 string + Thumb480H int + Thumb480W int + Thumb64 string + Thumb720 string + Thumb720H int + Thumb720W int + Thumb80 string + Thumb960 string + Thumb960H int + Thumb960W int + Timestamp JSONTime + Title string + URL string + URLDownload string + URLPrivate string + URLPrivateDownload string + User string + type FileChangeEvent fileActionEvent + type FileCommentAddedEvent struct + Comment Comment + type FileCommentDeletedEvent struct + Comment string + type FileCommentEditedEvent struct + Comment Comment + type FileCreatedEvent fileActionEvent + type FileDeletedEvent fileActionEvent + type FilePrivateEvent fileActionEvent + type FilePublicEvent fileActionEvent + type FileSharedEvent fileActionEvent + type FileUnsharedEvent fileActionEvent + type FileUploadParameters struct + Channels []string + Content string + File string + Filename string + Filetype string + InitialComment string + Reader io.Reader + Title string + type GetConversationHistoryParameters struct + ChannelID string + Cursor string + Inclusive bool + Latest string + Limit int + Oldest string + type GetConversationHistoryResponse struct + HasMore bool + Latest string + Messages []Message + PinCount int + ResponseMetaData struct{ ... } + type GetConversationRepliesParameters struct + ChannelID string + Cursor string + Inclusive bool + Latest string + Limit int + Oldest string + Timestamp string + type GetConversationsParameters struct + Cursor string + ExcludeArchived string + Limit int + Types []string + type GetFilesParameters struct + Channel string + Count int + Page int + TimestampFrom JSONTime + TimestampTo JSONTime + Types string + User string + func NewGetFilesParameters() GetFilesParameters + type GetReactionsParameters struct + Full bool + func NewGetReactionsParameters() GetReactionsParameters + type GetUsersInConversationParameters struct + ChannelID string + Cursor string + Limit int + type Group struct + IsGroup bool + type GroupArchiveEvent ChannelInfoEvent + type GroupCloseEvent ChannelInfoEvent + type GroupCreatedEvent struct + Channel ChannelCreatedInfo + Type string + User string + type GroupHistoryChangedEvent ChannelHistoryChangedEvent + type GroupJoinedEvent ChannelJoinedEvent + type GroupLeftEvent ChannelInfoEvent + type GroupMarkedEvent ChannelInfoEvent + type GroupOpenEvent ChannelInfoEvent + type GroupRenameEvent struct + Group GroupRenameInfo + Timestamp string + Type string + type GroupRenameInfo struct + Created string + ID string + Name string + type GroupUnarchiveEvent ChannelInfoEvent + type HTTPRequester interface + Do func(*http.Request) (*http.Response, error) + type HelloEvent struct + type History struct + HasMore bool + Latest string + Messages []Message + type HistoryParameters struct + Count int + Inclusive bool + Latest string + Oldest string + Unreads bool + func NewHistoryParameters() HistoryParameters + type IDGenerator interface + Next func() int + func NewSafeID(startID int) IDGenerator + type IM struct + IsIM bool + IsUserDeleted bool + User string + type IMCloseEvent ChannelInfoEvent + type IMCreatedEvent struct + Channel ChannelCreatedInfo + Type string + User string + type IMHistoryChangedEvent ChannelHistoryChangedEvent + type IMMarkedEvent ChannelInfoEvent + type IMMarkedHistoryChanged ChannelInfoEvent + type IMOpenEvent ChannelInfoEvent + type Icon struct + IconEmoji string + IconURL string + type Icons struct + Image36 string + Image48 string + Image72 string + type IncomingEventError struct + ErrorObj error + func (i *IncomingEventError) Error() string + type Info struct + Bots []Bot + Channels []Channel + Groups []Group + IMs []IM + Team *Team + URL string + User *UserDetails + Users []User + func (info Info) GetBotByID(botID string) *Bot + func (info Info) GetChannelByID(channelID string) *Channel + func (info Info) GetGroupByID(groupID string) *Group + func (info Info) GetIMByID(imID string) *IM + func (info Info) GetUserByID(userID string) *User + type InvalidAuthEvent struct + type Item struct + Channel string + Comment *Comment + File *File + Message *Message + Timestamp string + Type string + func NewChannelItem(ch string) Item + func NewFileCommentItem(f *File, c *Comment) Item + func NewFileItem(f *File) Item + func NewGroupItem(ch string) Item + func NewIMItem(ch string) Item + func NewMessageItem(ch string, m *Message) Item + type ItemReaction struct + Count int + Name string + Users []string + type ItemRef struct + Channel string + Comment string + File string + Timestamp string + func NewRefToComment(comment string) ItemRef + func NewRefToFile(file string) ItemRef + func NewRefToMessage(channel, timestamp string) ItemRef + type JSONTime int64 + func (t JSONTime) String() string + func (t JSONTime) Time() time.Time + type LatencyReport struct + Value time.Duration + type ListReactionsParameters struct + Count int + Full bool + Page int + User string + func NewListReactionsParameters() ListReactionsParameters + type Login struct + Count int + Country string + DateFirst int + DateLast int + IP string + ISP string + Region string + UserAgent string + UserID string + Username string + type LoginResponse struct + Logins []Login + type ManualPresenceChangeEvent struct + Presence string + Type string + type Message struct + SubMessage *Msg + type MessageEvent Message + type MessageTooLongEvent struct + MaxLength int + Message OutgoingMessage + func (m *MessageTooLongEvent) Error() string + type Msg struct + Attachments []Attachment + BotID string + Channel string + Comment *Comment + DeletedTimestamp string + Edited *Edited + EventTimestamp string + File *File + Hidden bool + Icons *Icon + Inviter string + IsStarred bool + ItemType string + LastRead string + Members []string + Name string + OldName string + ParentUserId string + PinnedTo []string + Purpose string + Reactions []ItemReaction + ReplaceOriginal bool + Replies []Reply + ReplyCount int + ReplyTo int + ResponseType string + SubType string + Subscribed bool + Team string + Text string + ThreadTimestamp string + Timestamp string + Topic string + Type string + UnreadCount int + Upload bool + User string + Username string + type MsgOption func(*sendConfig) error + func MsgOptionAsUser(b bool) MsgOption + func MsgOptionAttachments(attachments ...Attachment) MsgOption + func MsgOptionDelete(timestamp string) MsgOption + func MsgOptionDisableLinkUnfurl() MsgOption + func MsgOptionDisableMarkdown() MsgOption + func MsgOptionDisableMediaUnfurl() MsgOption + func MsgOptionEnableLinkUnfurl() MsgOption + func MsgOptionPost() MsgOption + func MsgOptionPostEphemeral() MsgOption + func MsgOptionPostMessageParameters(params PostMessageParameters) MsgOption + func MsgOptionText(text string, escape bool) MsgOption + func MsgOptionUpdate(timestamp string) MsgOption + type OAuthResponse struct + AccessToken string + Bot OAuthResponseBot + IncomingWebhook OAuthResponseIncomingWebhook + Scope string + TeamID string + TeamName string + UserID string + func GetOAuthResponse(clientID, clientSecret, code, redirectURI string, debug bool) (resp *OAuthResponse, err error) + func GetOAuthResponseContext(ctx context.Context, clientID, clientSecret, code, redirectURI string, ...) (resp *OAuthResponse, err error) + type OAuthResponseBot struct + BotAccessToken string + BotUserID string + type OAuthResponseIncomingWebhook struct + Channel string + ChannelID string + ConfigurationURL string + URL string + type OpenConversationParameters struct + ChannelID string + ReturnIM bool + Users []string + type Option func(*Client) + type OutgoingErrorEvent struct + ErrorObj error + Message OutgoingMessage + func (o OutgoingErrorEvent) Error() string + type OutgoingMessage struct + Channel string + ID int + Text string + ThreadTimestamp string + Type string + type Pagination struct + First int + Last int + Page int + PageCount int + PerPage int + TotalCount int + type Paging struct + Count int + Page int + Pages int + Total int + type PinAddedEvent pinEvent + type PinRemovedEvent pinEvent + type Ping struct + ID int + Type string + type Pong struct + ReplyTo int + Type string + type PostMessageParameters struct + AsUser bool + Attachments []Attachment + Channel string + EscapeText bool + IconEmoji string + IconURL string + LinkNames int + Markdown bool + Parse string + ReplyBroadcast bool + ThreadTimestamp string + UnfurlLinks bool + UnfurlMedia bool + User string + Username string + func NewPostMessageParameters() PostMessageParameters + type PrefChangeEvent struct + Name string + Type string + Value json.RawMessage + type PresenceChangeEvent struct + Presence string + Type string + User string + type Purpose struct + Creator string + LastSet JSONTime + Value string + type RTM struct + IncomingEvents chan RTMEvent + func (rtm *RTM) Disconnect() error + func (rtm *RTM) GetInfo() *Info + func (rtm *RTM) ManageConnection() + func (rtm *RTM) NewOutgoingMessage(text string, channelID string) *OutgoingMessage + func (rtm *RTM) NewTypingMessage(channelID string) *OutgoingMessage + func (rtm *RTM) Reconnect() error + func (rtm *RTM) SendMessage(msg *OutgoingMessage) + type RTMError struct + Code int + Msg string + func (s RTMError) Error() string + type RTMEvent struct + Data interface{} + Type string + type RTMOptions struct + UseRTMStart bool + type RTMResponse struct + Error *RTMError + Ok bool + type RateLimitEvent struct + func (e *RateLimitEvent) Error() string + type RateLimitedError struct + RetryAfter time.Duration + func (e *RateLimitedError) Error() string + type ReactedItem struct + Reactions []ItemReaction + type ReactionAddedEvent reactionEvent + type ReactionRemovedEvent reactionEvent + type ReconnectUrlEvent struct + Type string + URL string + type Reply struct + Timestamp string + User string + type SearchFiles struct + Matches []File + Total int + type SearchMessage struct + Channel CtxChannel + Next CtxMessage + Next2 CtxMessage + Permalink string + Previous CtxMessage + Previous2 CtxMessage + Text string + Timestamp string + Type string + User string + Username string + type SearchMessages struct + Matches []SearchMessage + Total int + type SearchParameters struct + Count int + Highlight bool + Page int + Sort string + SortDirection string + func NewSearchParameters() SearchParameters + type SlackResponse struct + Error string + Ok bool + type SlashCommand struct + ChannelID string + ChannelName string + Command string + ResponseURL string + TeamDomain string + TeamID string + Text string + Token string + TriggerID string + UserID string + UserName string + func SlashCommandParse(r *http.Request) (s SlashCommand, err error) + func (s SlashCommand) ValidateToken(verificationTokens ...string) bool + type SnoozeDebug struct + SnoozeEndDate string + type SnoozeInfo struct + SnoozeDebug SnoozeDebug + SnoozeEnabled bool + SnoozeEndTime int + SnoozeRemaining int + type StarAddedEvent starEvent + type StarRemovedEvent starEvent + type StarredItem Item + type StarsParameters struct + Count int + Page int + User string + func NewStarsParameters() StarsParameters + type Team struct + Domain string + ID string + Name string + type TeamDomainChangeEvent struct + Domain string + Type string + URL string + type TeamIdentity struct + Domain string + ID string + Image102 string + Image132 string + Image230 string + Image34 string + Image44 string + Image68 string + Image88 string + ImageDefault bool + ImageOriginal string + Name string + type TeamInfo struct + Domain string + EmailDomain string + ID string + Icon map[string]interface{} + Name string + type TeamJoinEvent struct + Type string + User User + type TeamMigrationStartedEvent struct + Type string + type TeamPrefChangeEvent struct + Name string + Type string + Value []string + type TeamRenameEvent struct + EventTimestamp string + Name string + Type string + type TeamResponse struct + Team TeamInfo + type Topic struct + Creator string + LastSet JSONTime + Value string + type UnmarshallingErrorEvent struct + ErrorObj error + func (u UnmarshallingErrorEvent) Error() string + type User struct + Color string + Deleted bool + Has2FA bool + HasFiles bool + ID string + IsAdmin bool + IsAppUser bool + IsBot bool + IsOwner bool + IsPrimaryOwner bool + IsRestricted bool + IsStranger bool + IsUltraRestricted bool + Locale string + Name string + Presence string + Profile UserProfile + RealName string + TZ string + TZLabel string + TZOffset int + TeamID string + type UserChangeEvent struct + Type string + User User + type UserDetails struct + Created JSONTime + ID string + ManualPresence string + Name string + Prefs UserPrefs + type UserGroup struct + AutoType string + CreatedBy string + DateCreate JSONTime + DateDelete JSONTime + DateUpdate JSONTime + DeletedBy string + Description string + Handle string + ID string + IsExternal bool + IsUserGroup bool + Name string + Prefs UserGroupPrefs + TeamID string + UpdatedBy string + UserCount int + type UserGroupPrefs struct + Channels []string + Groups []string + type UserIdentity struct + Email string + ID string + Image192 string + Image24 string + Image32 string + Image48 string + Image512 string + Image72 string + Name string + type UserIdentityResponse struct + Team TeamIdentity + User UserIdentity + type UserPrefs struct + type UserPresence struct + AutoAway bool + ConnectionCount int + LastActivity JSONTime + ManualAway bool + Online bool + Presence string + type UserProfile struct + ApiAppID string + BotID string + DisplayName string + DisplayNameNormalized string + Email string + FirstName string + Image192 string + Image24 string + Image32 string + Image48 string + Image72 string + ImageOriginal string + LastName string + Phone string + RealName string + RealNameNormalized string + Skype string + StatusEmoji string + StatusText string + Team string + Title string + type UserSetPhotoParams struct + CropW int + CropX int + CropY int + func NewUserSetPhotoParams() UserSetPhotoParams + type UserTypingEvent struct + Channel string + Type string + User string + type WebError string + func (s WebError) Error() string + type WebResponse struct + Error *WebError + Ok bool