README

Slack API in Go GoDoc Build Status

This is the original Slack library for Go created by Norberto Lopez, transferred to a Github organization.

logo

This library supports most if not all of the api.slack.com REST calls, as well as the Real-Time Messaging protocol over websocket, in a fully managed way.

Project Status

There is currently no major version released. Therefore, minor version releases may include backward incompatible changes.

See CHANGELOG.md for more information about the changes.

Installing

go get
$ go get -u github.com/slack-go/slack

Example

Getting all groups
import (
	"fmt"

	"github.com/slack-go/slack"
)

func main() {
	api := slack.New("YOUR_TOKEN_HERE")
	// If you set debugging, it will log all requests to the console
	// Useful when encountering issues
	// slack.New("YOUR_TOKEN_HERE", slack.OptionDebug(true))
	groups, err := api.GetGroups(false)
	if err != nil {
		fmt.Printf("%s\n", err)
		return
	}
	for _, group := range groups {
		fmt.Printf("ID: %s, Name: %s\n", group.ID, group.Name)
	}
}
Getting User Information
import (
    "fmt"

    "github.com/slack-go/slack"
)

func main() {
    api := slack.New("YOUR_TOKEN_HERE")
    user, err := api.GetUserInfo("U023BECGF")
    if err != nil {
	    fmt.Printf("%s\n", err)
	    return
    }
    fmt.Printf("ID: %s, Fullname: %s, Email: %s\n", user.ID, user.Profile.RealName, user.Profile.Email)
}

Minimal RTM usage:

See https://github.com/slack-go/slack/blob/master/examples/websocket/websocket.go

Minimal EventsAPI usage:

See https://github.com/slack-go/slack/blob/master/examples/eventsapi/events.go

Contributing

You are more than welcome to contribute to this project. Fork and make a Pull Request, or create an Issue if you see any problem.

Before making any Pull Request please run the following:

make pr-prep

This will check/update code formatting, linting and then run all tests

License

BSD 2 Clause license

Expand ▾ Collapse ▴

Documentation

Index

Examples

Constants

View Source
const (
	METCheckboxGroups MessageElementType = "checkboxes"
	METImage          MessageElementType = "image"
	METButton         MessageElementType = "button"
	METOverflow       MessageElementType = "overflow"
	METDatepicker     MessageElementType = "datepicker"
	METTimepicker     MessageElementType = "timepicker"
	METPlainTextInput MessageElementType = "plain_text_input"
	METRadioButtons   MessageElementType = "radio_buttons"

	MixedElementImage MixedElementType = "mixed_image"
	MixedElementText  MixedElementType = "mixed_text"

	OptTypeStatic        string = "static_select"
	OptTypeExternal      string = "external_select"
	OptTypeUser          string = "users_select"
	OptTypeConversations string = "conversations_select"
	OptTypeChannels      string = "channels_select"

	MultiOptTypeStatic        string = "multi_static_select"
	MultiOptTypeExternal      string = "multi_external_select"
	MultiOptTypeUser          string = "multi_users_select"
	MultiOptTypeConversations string = "multi_conversations_select"
	MultiOptTypeChannels      string = "multi_channels_select"
)
View Source
const (
	MarkdownType  = "mrkdwn"
	PlainTextType = "plain_text"
)

    blockObject object types

    View Source
    const (
    	DEFAULT_MESSAGE_USERNAME         = ""
    	DEFAULT_MESSAGE_REPLY_BROADCAST  = false
    	DEFAULT_MESSAGE_ASUSER           = false
    	DEFAULT_MESSAGE_PARSE            = ""
    	DEFAULT_MESSAGE_THREAD_TIMESTAMP = ""
    	DEFAULT_MESSAGE_LINK_NAMES       = 0
    	DEFAULT_MESSAGE_UNFURL_LINKS     = false
    	DEFAULT_MESSAGE_UNFURL_MEDIA     = true
    	DEFAULT_MESSAGE_ICON_URL         = ""
    	DEFAULT_MESSAGE_ICON_EMOJI       = ""
    	DEFAULT_MESSAGE_MARKDOWN         = true
    	DEFAULT_MESSAGE_ESCAPE_TEXT      = true
    )
    View Source
    const (
    	ErrAlreadyDisconnected  = errorsx.String("Invalid call to Disconnect - Slack API is already disconnected")
    	ErrRTMDisconnected      = errorsx.String("disconnect received while trying to connect")
    	ErrRTMGoodbye           = errorsx.String("goodbye detected")
    	ErrRTMDeadman           = errorsx.String("deadman switch triggered")
    	ErrParametersMissing    = errorsx.String("received empty parameters")
    	ErrBlockIDNotUnique     = errorsx.String("Block ID needs to be unique")
    	ErrInvalidConfiguration = errorsx.String("invalid configuration")
    	ErrMissingHeaders       = errorsx.String("missing headers")
    	ErrExpiredTimestamp     = errorsx.String("timestamp is too old")
    )

      Errors returned by various methods.

      View Source
      const (
      	// Add here the defaults in the siten
      	DEFAULT_FILES_USER        = ""
      	DEFAULT_FILES_CHANNEL     = ""
      	DEFAULT_FILES_TS_FROM     = 0
      	DEFAULT_FILES_TS_TO       = -1
      	DEFAULT_FILES_TYPES       = "all"
      	DEFAULT_FILES_COUNT       = 100
      	DEFAULT_FILES_PAGE        = 1
      	DEFAULT_FILES_SHOW_HIDDEN = false
      )
      View Source
      const (
      	DEFAULT_HISTORY_LATEST    = ""
      	DEFAULT_HISTORY_OLDEST    = "0"
      	DEFAULT_HISTORY_COUNT     = 100
      	DEFAULT_HISTORY_INCLUSIVE = false
      	DEFAULT_HISTORY_UNREADS   = false
      )
      View Source
      const (
      	InteractionTypeDialogCancellation = InteractionType("dialog_cancellation")
      	InteractionTypeDialogSubmission   = InteractionType("dialog_submission")
      	InteractionTypeDialogSuggestion   = InteractionType("dialog_suggestion")
      	InteractionTypeInteractionMessage = InteractionType("interactive_message")
      	InteractionTypeMessageAction      = InteractionType("message_action")
      	InteractionTypeBlockActions       = InteractionType("block_actions")
      	InteractionTypeBlockSuggestion    = InteractionType("block_suggestion")
      	InteractionTypeViewSubmission     = InteractionType("view_submission")
      	InteractionTypeViewClosed         = InteractionType("view_closed")
      	InteractionTypeShortcut           = InteractionType("shortcut")
      )

        Types of interactions that can be received.

        View Source
        const (
        	TYPE_MESSAGE      = "message"
        	TYPE_FILE         = "file"
        	TYPE_FILE_COMMENT = "file_comment"
        	TYPE_CHANNEL      = "channel"
        	TYPE_IM           = "im"
        	TYPE_GROUP        = "group"
        )
        View Source
        const (
        	// ResponseTypeInChannel in channel response for slash commands.
        	ResponseTypeInChannel = "in_channel"
        	// ResponseTypeEphemeral ephemeral response for slash commands.
        	ResponseTypeEphemeral = "ephemeral"
        )
        View Source
        const (
        	DEFAULT_REACTIONS_USER  = ""
        	DEFAULT_REACTIONS_COUNT = 100
        	DEFAULT_REACTIONS_PAGE  = 1
        	DEFAULT_REACTIONS_FULL  = false
        )
        View Source
        const (
        	DEFAULT_SEARCH_SORT      = "score"
        	DEFAULT_SEARCH_SORT_DIR  = "desc"
        	DEFAULT_SEARCH_HIGHLIGHT = false
        	DEFAULT_SEARCH_COUNT     = 20
        	DEFAULT_SEARCH_PAGE      = 1
        )
        View Source
        const (
        	// APIURL of the slack api.
        	APIURL = "https://slack.com/api/"
        	// WEBAPIURLFormat ...
        	WEBAPIURLFormat = "https://%s.slack.com/api/users.admin.%s?t=%d"
        )
        View Source
        const (
        	DEFAULT_STARS_USER  = ""
        	DEFAULT_STARS_COUNT = 100
        	DEFAULT_STARS_PAGE  = 1
        )
        View Source
        const (
        	DEFAULT_LOGINS_COUNT = 100
        	DEFAULT_LOGINS_PAGE  = 1
        )
        View Source
        const (
        	DEFAULT_USER_PHOTO_CROP_X = -1
        	DEFAULT_USER_PHOTO_CROP_Y = -1
        	DEFAULT_USER_PHOTO_CROP_W = -1
        )
        View Source
        const (
        	// MaxMessageTextLength is the current maximum message length in number of characters as defined here
        	// https://api.slack.com/rtm#limits
        	MaxMessageTextLength = 4000
        )

        Variables

        View Source
        var EventMapping = map[string]interface{}{
        	"message":         MessageEvent{},
        	"presence_change": PresenceChangeEvent{},
        	"user_typing":     UserTypingEvent{},
        
        	"channel_marked":          ChannelMarkedEvent{},
        	"channel_created":         ChannelCreatedEvent{},
        	"channel_joined":          ChannelJoinedEvent{},
        	"channel_left":            ChannelLeftEvent{},
        	"channel_deleted":         ChannelDeletedEvent{},
        	"channel_rename":          ChannelRenameEvent{},
        	"channel_archive":         ChannelArchiveEvent{},
        	"channel_unarchive":       ChannelUnarchiveEvent{},
        	"channel_history_changed": ChannelHistoryChangedEvent{},
        
        	"dnd_updated":      DNDUpdatedEvent{},
        	"dnd_updated_user": DNDUpdatedEvent{},
        
        	"im_created":         IMCreatedEvent{},
        	"im_open":            IMOpenEvent{},
        	"im_close":           IMCloseEvent{},
        	"im_marked":          IMMarkedEvent{},
        	"im_history_changed": IMHistoryChangedEvent{},
        
        	"group_marked":          GroupMarkedEvent{},
        	"group_open":            GroupOpenEvent{},
        	"group_joined":          GroupJoinedEvent{},
        	"group_left":            GroupLeftEvent{},
        	"group_close":           GroupCloseEvent{},
        	"group_rename":          GroupRenameEvent{},
        	"group_archive":         GroupArchiveEvent{},
        	"group_unarchive":       GroupUnarchiveEvent{},
        	"group_history_changed": GroupHistoryChangedEvent{},
        
        	"file_created":         FileCreatedEvent{},
        	"file_shared":          FileSharedEvent{},
        	"file_unshared":        FileUnsharedEvent{},
        	"file_public":          FilePublicEvent{},
        	"file_private":         FilePrivateEvent{},
        	"file_change":          FileChangeEvent{},
        	"file_deleted":         FileDeletedEvent{},
        	"file_comment_added":   FileCommentAddedEvent{},
        	"file_comment_edited":  FileCommentEditedEvent{},
        	"file_comment_deleted": FileCommentDeletedEvent{},
        
        	"pin_added":   PinAddedEvent{},
        	"pin_removed": PinRemovedEvent{},
        
        	"star_added":   StarAddedEvent{},
        	"star_removed": StarRemovedEvent{},
        
        	"reaction_added":   ReactionAddedEvent{},
        	"reaction_removed": ReactionRemovedEvent{},
        
        	"pref_change": PrefChangeEvent{},
        
        	"team_join":              TeamJoinEvent{},
        	"team_rename":            TeamRenameEvent{},
        	"team_pref_change":       TeamPrefChangeEvent{},
        	"team_domain_change":     TeamDomainChangeEvent{},
        	"team_migration_started": TeamMigrationStartedEvent{},
        
        	"manual_presence_change": ManualPresenceChangeEvent{},
        
        	"user_change": UserChangeEvent{},
        
        	"emoji_changed": EmojiChangedEvent{},
        
        	"commands_changed": CommandsChangedEvent{},
        
        	"email_domain_changed": EmailDomainChangedEvent{},
        
        	"bot_added":   BotAddedEvent{},
        	"bot_changed": BotChangedEvent{},
        
        	"accounts_changed": AccountsChangedEvent{},
        
        	"reconnect_url": ReconnectUrlEvent{},
        
        	"member_joined_channel": MemberJoinedChannelEvent{},
        	"member_left_channel":   MemberLeftChannelEvent{},
        
        	"subteam_created":         SubteamCreatedEvent{},
        	"subteam_members_changed": SubteamMembersChangedEvent{},
        	"subteam_self_added":      SubteamSelfAddedEvent{},
        	"subteam_self_removed":    SubteamSelfRemovedEvent{},
        	"subteam_updated":         SubteamUpdatedEvent{},
        
        	"desktop_notification":       DesktopNotificationEvent{},
        	"mobile_in_app_notification": MobileInAppNotificationEvent{},
        }

          EventMapping holds a mapping of event names to their corresponding struct implementations. The structs should be instances of the unmarshalling target for the matching event type.

          Functions

          func GetOAuthToken

          func GetOAuthToken(client httpClient, clientID, clientSecret, code, redirectURI string) (accessToken string, scope string, err error)

            GetOAuthToken retrieves an AccessToken

            func GetOAuthTokenContext

            func GetOAuthTokenContext(ctx context.Context, client httpClient, clientID, clientSecret, code, redirectURI string) (accessToken string, scope string, err error)

              GetOAuthTokenContext retrieves an AccessToken with a custom context

              func OptionAPIURL

              func OptionAPIURL(u string) func(*Client)

                OptionAPIURL set the url for the client. only useful for testing.

                func OptionAppLevelToken

                func OptionAppLevelToken(token string) func(*Client)

                  OptionAppLevelToken sets an app-level token for the client.

                  func OptionDebug

                  func OptionDebug(b bool) func(*Client)

                    OptionDebug enable debugging for the client

                    func OptionHTTPClient

                    func OptionHTTPClient(client httpClient) func(*Client)

                      OptionHTTPClient - provide a custom http client to the slack client.

                      func OptionLog

                      func OptionLog(l logger) func(*Client)

                        OptionLog set logging for client.

                        func PostWebhook

                        func PostWebhook(url string, msg *WebhookMessage) error

                        func PostWebhookContext

                        func PostWebhookContext(ctx context.Context, url string, msg *WebhookMessage) error

                        func PostWebhookCustomHTTP

                        func PostWebhookCustomHTTP(url string, httpClient *http.Client, msg *WebhookMessage) error

                        func PostWebhookCustomHTTPContext

                        func PostWebhookCustomHTTPContext(ctx context.Context, url string, httpClient *http.Client, msg *WebhookMessage) error

                        func UnsafeApplyMsgOptions

                        func UnsafeApplyMsgOptions(token, channel, apiurl string, options ...MsgOption) (string, url.Values, error)

                          UnsafeApplyMsgOptions utility function for debugging/testing chat requests. NOTE: USE AT YOUR OWN RISK: No issues relating to the use of this function will be supported by the library.

                          func ValidateUniqueBlockID

                          func ValidateUniqueBlockID(view ModalViewRequest) bool

                            ValidateUniqueBlockID will verify if each input block has a unique block ID if set

                            Types

                            type AccessLogParameters

                            type AccessLogParameters struct {
                            	Count int
                            	Page  int
                            }

                              AccessLogParameters contains all the parameters necessary (including the optional ones) for a GetAccessLogs() request

                              func NewAccessLogParameters

                              func NewAccessLogParameters() AccessLogParameters

                                NewAccessLogParameters provides an instance of AccessLogParameters with all the sane default values set

                                type Accessory

                                type Accessory struct {
                                	ImageElement               *ImageBlockElement
                                	ButtonElement              *ButtonBlockElement
                                	OverflowElement            *OverflowBlockElement
                                	DatePickerElement          *DatePickerBlockElement
                                	TimePickerElement          *TimePickerBlockElement
                                	PlainTextInputElement      *PlainTextInputBlockElement
                                	RadioButtonsElement        *RadioButtonsBlockElement
                                	SelectElement              *SelectBlockElement
                                	MultiSelectElement         *MultiSelectBlockElement
                                	CheckboxGroupsBlockElement *CheckboxGroupsBlockElement
                                	UnknownElement             *UnknownBlockElement
                                }

                                func NewAccessory

                                func NewAccessory(element BlockElement) *Accessory

                                  NewAccessory returns a new Accessory for a given block element

                                  func (*Accessory) MarshalJSON

                                  func (a *Accessory) MarshalJSON() ([]byte, error)

                                    MarshalJSON implements the Marshaller interface for Accessory so that any JSON marshalling is delegated and proper type determination can be made before marshal

                                    func (*Accessory) UnmarshalJSON

                                    func (a *Accessory) UnmarshalJSON(data []byte) error

                                      UnmarshalJSON implements the Unmarshaller interface for Accessory, so that any JSON unmarshalling is delegated and proper type determination can be made before unmarshal

                                      type AccountsChangedEvent

                                      type AccountsChangedEvent struct {
                                      	Type string `json:"type"`
                                      }

                                        AccountsChangedEvent represents the accounts changed event

                                        type AckErrorEvent

                                        type AckErrorEvent struct {
                                        	ErrorObj error
                                        }

                                          AckErrorEvent i

                                          func (*AckErrorEvent) Error

                                          func (a *AckErrorEvent) Error() string

                                          type AckMessage

                                          type AckMessage struct {
                                          	ReplyTo   int    `json:"reply_to"`
                                          	Timestamp string `json:"ts"`
                                          	Text      string `json:"text"`
                                          	RTMResponse
                                          }

                                            AckMessage is used for messages received in reply to other messages

                                            type ActionBlock

                                            type ActionBlock struct {
                                            	Type     MessageBlockType `json:"type"`
                                            	BlockID  string           `json:"block_id,omitempty"`
                                            	Elements *BlockElements   `json:"elements"`
                                            }

                                              ActionBlock defines data that is used to hold interactive elements.

                                              More Information: https://api.slack.com/reference/messaging/blocks#actions

                                              func NewActionBlock

                                              func NewActionBlock(blockID string, elements ...BlockElement) *ActionBlock

                                                NewActionBlock returns a new instance of an Action Block

                                                func (ActionBlock) BlockType

                                                func (s ActionBlock) BlockType() MessageBlockType

                                                  BlockType returns the type of the block

                                                  type ActionCallbacks

                                                  type ActionCallbacks struct {
                                                  	AttachmentActions []*AttachmentAction
                                                  	BlockActions      []*BlockAction
                                                  }

                                                    ActionCallback is a convenience struct defined to allow dynamic unmarshalling of the "actions" value in Slack's JSON response, which varies depending on block type

                                                    func (ActionCallbacks) MarshalJSON

                                                    func (a ActionCallbacks) MarshalJSON() ([]byte, error)

                                                      MarshalJSON implements the Marshaller interface in order to combine both action callback types back into a single array, like how the api responds. This makes Marshaling and Unmarshaling an InteractionCallback symmetrical

                                                      func (*ActionCallbacks) UnmarshalJSON

                                                      func (a *ActionCallbacks) UnmarshalJSON(data []byte) error

                                                        UnmarshalJSON implements the Marshaller interface in order to delegate marshalling and allow for proper type assertion when decoding the response

                                                        type Attachment

                                                        type Attachment struct {
                                                        	Color    string `json:"color,omitempty"`
                                                        	Fallback string `json:"fallback,omitempty"`
                                                        
                                                        	CallbackID string `json:"callback_id,omitempty"`
                                                        	ID         int    `json:"id,omitempty"`
                                                        
                                                        	AuthorID      string `json:"author_id,omitempty"`
                                                        	AuthorName    string `json:"author_name,omitempty"`
                                                        	AuthorSubname string `json:"author_subname,omitempty"`
                                                        	AuthorLink    string `json:"author_link,omitempty"`
                                                        	AuthorIcon    string `json:"author_icon,omitempty"`
                                                        
                                                        	Title     string `json:"title,omitempty"`
                                                        	TitleLink string `json:"title_link,omitempty"`
                                                        	Pretext   string `json:"pretext,omitempty"`
                                                        	Text      string `json:"text,omitempty"`
                                                        
                                                        	ImageURL string `json:"image_url,omitempty"`
                                                        	ThumbURL string `json:"thumb_url,omitempty"`
                                                        
                                                        	Fields     []AttachmentField  `json:"fields,omitempty"`
                                                        	Actions    []AttachmentAction `json:"actions,omitempty"`
                                                        	MarkdownIn []string           `json:"mrkdwn_in,omitempty"`
                                                        
                                                        	Blocks Blocks `json:"blocks,omitempty"`
                                                        
                                                        	Footer     string `json:"footer,omitempty"`
                                                        	FooterIcon string `json:"footer_icon,omitempty"`
                                                        
                                                        	Ts json.Number `json:"ts,omitempty"`
                                                        }

                                                          Attachment contains all the information for an attachment

                                                          type AttachmentAction

                                                          type AttachmentAction struct {
                                                          	Name            string                        `json:"name"`                       // Required.
                                                          	Text            string                        `json:"text"`                       // Required.
                                                          	Style           string                        `json:"style,omitempty"`            // Optional. Allowed values: "default", "primary", "danger".
                                                          	Type            actionType                    `json:"type"`                       // Required. Must be set to "button" or "select".
                                                          	Value           string                        `json:"value,omitempty"`            // Optional.
                                                          	DataSource      string                        `json:"data_source,omitempty"`      // Optional.
                                                          	MinQueryLength  int                           `json:"min_query_length,omitempty"` // Optional. Default value is 1.
                                                          	Options         []AttachmentActionOption      `json:"options,omitempty"`          // Optional. Maximum of 100 options can be provided in each menu.
                                                          	SelectedOptions []AttachmentActionOption      `json:"selected_options,omitempty"` // Optional. The first element of this array will be set as the pre-selected option for this menu.
                                                          	OptionGroups    []AttachmentActionOptionGroup `json:"option_groups,omitempty"`    // Optional.
                                                          	Confirm         *ConfirmationField            `json:"confirm,omitempty"`          // Optional.
                                                          	URL             string                        `json:"url,omitempty"`              // Optional.
                                                          }

                                                            AttachmentAction is a button or menu to be included in the attachment. Required when using message buttons or menus and otherwise not useful. A maximum of 5 actions may be provided per attachment.

                                                            type AttachmentActionCallback

                                                            type AttachmentActionCallback InteractionCallback

                                                              AttachmentActionCallback is sent from Slack when a user clicks a button in an interactive message (aka AttachmentAction) DEPRECATED: use InteractionCallback

                                                              type AttachmentActionOption

                                                              type AttachmentActionOption struct {
                                                              	Text        string `json:"text"`                  // Required.
                                                              	Value       string `json:"value"`                 // Required.
                                                              	Description string `json:"description,omitempty"` // Optional. Up to 30 characters.
                                                              }

                                                                AttachmentActionOption the individual option to appear in action menu.

                                                                type AttachmentActionOptionGroup

                                                                type AttachmentActionOptionGroup struct {
                                                                	Text    string                   `json:"text"`    // Required.
                                                                	Options []AttachmentActionOption `json:"options"` // Required.
                                                                }

                                                                  AttachmentActionOptionGroup is a semi-hierarchal way to list available options to appear in action menu.

                                                                  type AttachmentField

                                                                  type AttachmentField struct {
                                                                  	Title string `json:"title"`
                                                                  	Value string `json:"value"`
                                                                  	Short bool   `json:"short"`
                                                                  }

                                                                    AttachmentField contains information for an attachment field An Attachment can contain multiple of these

                                                                    type AuthRevokeResponse

                                                                    type AuthRevokeResponse struct {
                                                                    	SlackResponse      // Contains the "ok", and "Error", if any
                                                                    	Revoked       bool `json:"revoked,omitempty"`
                                                                    }

                                                                      AuthRevokeResponse contains our Auth response from the auth.revoke endpoint

                                                                      type AuthTestResponse

                                                                      type AuthTestResponse struct {
                                                                      	URL    string `json:"url"`
                                                                      	Team   string `json:"team"`
                                                                      	User   string `json:"user"`
                                                                      	TeamID string `json:"team_id"`
                                                                      	UserID string `json:"user_id"`
                                                                      	// EnterpriseID is only returned when an enterprise id present
                                                                      	EnterpriseID string `json:"enterprise_id,omitempty"`
                                                                      	BotID        string `json:"bot_id"`
                                                                      }

                                                                        AuthTestResponse ...

                                                                        type BillableInfoResponse

                                                                        type BillableInfoResponse struct {
                                                                        	BillableInfo map[string]BillingActive `json:"billable_info"`
                                                                        	SlackResponse
                                                                        }

                                                                        type BillingActive

                                                                        type BillingActive struct {
                                                                        	BillingActive bool `json:"billing_active"`
                                                                        }

                                                                        type Block

                                                                        type Block interface {
                                                                        	BlockType() MessageBlockType
                                                                        }

                                                                          Block defines an interface all block types should implement to ensure consistency between blocks.

                                                                          type BlockAction

                                                                          type BlockAction struct {
                                                                          	ActionID              string              `json:"action_id"`
                                                                          	BlockID               string              `json:"block_id"`
                                                                          	Type                  actionType          `json:"type"`
                                                                          	Text                  TextBlockObject     `json:"text"`
                                                                          	Value                 string              `json:"value"`
                                                                          	ActionTs              string              `json:"action_ts"`
                                                                          	SelectedOption        OptionBlockObject   `json:"selected_option"`
                                                                          	SelectedOptions       []OptionBlockObject `json:"selected_options"`
                                                                          	SelectedUser          string              `json:"selected_user"`
                                                                          	SelectedUsers         []string            `json:"selected_users"`
                                                                          	SelectedChannel       string              `json:"selected_channel"`
                                                                          	SelectedChannels      []string            `json:"selected_channels"`
                                                                          	SelectedConversation  string              `json:"selected_conversation"`
                                                                          	SelectedConversations []string            `json:"selected_conversations"`
                                                                          	SelectedDate          string              `json:"selected_date"`
                                                                          	SelectedTime          string              `json:"selected_time"`
                                                                          	InitialOption         OptionBlockObject   `json:"initial_option"`
                                                                          	InitialUser           string              `json:"initial_user"`
                                                                          	InitialChannel        string              `json:"initial_channel"`
                                                                          	InitialConversation   string              `json:"initial_conversation"`
                                                                          	InitialDate           string              `json:"initial_date"`
                                                                          	InitialTime           string              `json:"initial_time"`
                                                                          }

                                                                            BlockAction is the action callback sent when a block is interacted with

                                                                            type BlockActionStates

                                                                            type BlockActionStates struct {
                                                                            	Values map[string]map[string]BlockAction `json:"values"`
                                                                            }

                                                                            type BlockElement

                                                                            type BlockElement interface {
                                                                            	ElementType() MessageElementType
                                                                            }

                                                                              BlockElement defines an interface that all block element types should implement.

                                                                              type BlockElements

                                                                              type BlockElements struct {
                                                                              	ElementSet []BlockElement `json:"elements,omitempty"`
                                                                              }

                                                                                BlockElements is a convenience struct defined to allow dynamic unmarshalling of the "elements" value in Slack's JSON response, which varies depending on BlockElement type

                                                                                func (*BlockElements) MarshalJSON

                                                                                func (b *BlockElements) MarshalJSON() ([]byte, error)

                                                                                  MarshalJSON implements the Marshaller interface for BlockElements so that any JSON marshalling is delegated and proper type determination can be made before marshal

                                                                                  func (*BlockElements) UnmarshalJSON

                                                                                  func (b *BlockElements) UnmarshalJSON(data []byte) error

                                                                                    UnmarshalJSON implements the Unmarshaller interface for BlockElements, so that any JSON unmarshalling is delegated and proper type determination can be made before unmarshal

                                                                                    type BlockObjects

                                                                                    type BlockObjects struct {
                                                                                    	TextObjects         []*TextBlockObject
                                                                                    	ConfirmationObjects []*ConfirmationBlockObject
                                                                                    	OptionObjects       []*OptionBlockObject
                                                                                    	OptionGroupObjects  []*OptionGroupBlockObject
                                                                                    }

                                                                                    func (*BlockObjects) UnmarshalJSON

                                                                                    func (b *BlockObjects) UnmarshalJSON(data []byte) error

                                                                                      UnmarshalJSON implements the Unmarshaller interface for BlockObjects, so that any JSON unmarshalling is delegated and proper type determination can be made before unmarshal

                                                                                      type Blocks

                                                                                      type Blocks struct {
                                                                                      	BlockSet []Block `json:"blocks,omitempty"`
                                                                                      }

                                                                                        Blocks is a convenience struct defined to allow dynamic unmarshalling of the "blocks" value in Slack's JSON response, which varies depending on block type

                                                                                        func (Blocks) MarshalJSON

                                                                                        func (b Blocks) MarshalJSON() ([]byte, error)

                                                                                          MarshalJSON implements the Marshaller interface for Blocks so that any JSON marshalling is delegated and proper type determination can be made before marshal

                                                                                          func (*Blocks) UnmarshalJSON

                                                                                          func (b *Blocks) UnmarshalJSON(data []byte) error

                                                                                            UnmarshalJSON implements the Unmarshaller interface for Blocks, so that any JSON unmarshalling is delegated and proper type determination can be made before unmarshal

                                                                                            type Bot

                                                                                            type Bot struct {
                                                                                            	ID      string   `json:"id"`
                                                                                            	Name    string   `json:"name"`
                                                                                            	Deleted bool     `json:"deleted"`
                                                                                            	UserID  string   `json:"user_id"`
                                                                                            	AppID   string   `json:"app_id"`
                                                                                            	Updated JSONTime `json:"updated"`
                                                                                            	Icons   Icons    `json:"icons"`
                                                                                            }

                                                                                              Bot contains information about a bot

                                                                                              type BotAddedEvent

                                                                                              type BotAddedEvent struct {
                                                                                              	Type string `json:"type"`
                                                                                              	Bot  Bot    `json:"bot"`
                                                                                              }

                                                                                                BotAddedEvent represents the bot added event

                                                                                                type BotChangedEvent

                                                                                                type BotChangedEvent struct {
                                                                                                	Type string `json:"type"`
                                                                                                	Bot  Bot    `json:"bot"`
                                                                                                }

                                                                                                  BotChangedEvent represents the bot changed event

                                                                                                  type BotProfile

                                                                                                  type BotProfile struct {
                                                                                                  	AppID   string `json:"app_id,omitempty"`
                                                                                                  	Deleted bool   `json:"deleted,omitempty"`
                                                                                                  	Icons   *Icons `json:"icons,omitempty"`
                                                                                                  	ID      string `json:"id,omitempty"`
                                                                                                  	Name    string `json:"name,omitempty"`
                                                                                                  	TeamID  string `json:"team_id,omitempty"`
                                                                                                  	Updated int64  `json:"updated,omitempty"`
                                                                                                  }

                                                                                                    BotProfile contains information about a bot

                                                                                                    type ButtonBlockElement

                                                                                                    type ButtonBlockElement struct {
                                                                                                    	Type     MessageElementType       `json:"type,omitempty"`
                                                                                                    	Text     *TextBlockObject         `json:"text"`
                                                                                                    	ActionID string                   `json:"action_id,omitempty"`
                                                                                                    	URL      string                   `json:"url,omitempty"`
                                                                                                    	Value    string                   `json:"value,omitempty"`
                                                                                                    	Confirm  *ConfirmationBlockObject `json:"confirm,omitempty"`
                                                                                                    	Style    Style                    `json:"style,omitempty"`
                                                                                                    }

                                                                                                      ButtonBlockElement defines an interactive element that inserts a button. The button can be a trigger for anything from opening a simple link to starting a complex workflow.

                                                                                                      More Information: https://api.slack.com/reference/messaging/block-elements#button

                                                                                                      func NewButtonBlockElement

                                                                                                      func NewButtonBlockElement(actionID, value string, text *TextBlockObject) *ButtonBlockElement

                                                                                                        NewButtonBlockElement returns an instance of a new button element to be used within a block

                                                                                                        func (ButtonBlockElement) ElementType

                                                                                                        func (s ButtonBlockElement) ElementType() MessageElementType

                                                                                                          ElementType returns the type of the element

                                                                                                          func (*ButtonBlockElement) WithStyle

                                                                                                          func (s *ButtonBlockElement) WithStyle(style Style) *ButtonBlockElement

                                                                                                            WithStyle adds styling to the button object and returns the modified ButtonBlockElement

                                                                                                            type Channel

                                                                                                            type Channel struct {
                                                                                                            	GroupConversation
                                                                                                            	IsChannel bool   `json:"is_channel"`
                                                                                                            	IsGeneral bool   `json:"is_general"`
                                                                                                            	IsMember  bool   `json:"is_member"`
                                                                                                            	Locale    string `json:"locale"`
                                                                                                            }

                                                                                                              Channel contains information about the channel

                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                              type ChannelArchiveEvent

                                                                                                              type ChannelArchiveEvent ChannelInfoEvent

                                                                                                                ChannelArchiveEvent represents the Channel archive event

                                                                                                                type ChannelCreatedEvent

                                                                                                                type ChannelCreatedEvent struct {
                                                                                                                	Type           string             `json:"type"`
                                                                                                                	Channel        ChannelCreatedInfo `json:"channel"`
                                                                                                                	EventTimestamp string             `json:"event_ts"`
                                                                                                                }

                                                                                                                  ChannelCreatedEvent represents the Channel created event

                                                                                                                  type ChannelCreatedInfo

                                                                                                                  type ChannelCreatedInfo struct {
                                                                                                                  	ID        string `json:"id"`
                                                                                                                  	IsChannel bool   `json:"is_channel"`
                                                                                                                  	Name      string `json:"name"`
                                                                                                                  	Created   int    `json:"created"`
                                                                                                                  	Creator   string `json:"creator"`
                                                                                                                  }

                                                                                                                    ChannelCreatedInfo represents the information associated with the Channel created event

                                                                                                                    type ChannelDeletedEvent

                                                                                                                    type ChannelDeletedEvent ChannelInfoEvent

                                                                                                                      ChannelDeletedEvent represents the Channel deleted event

                                                                                                                      type ChannelHistoryChangedEvent

                                                                                                                      type ChannelHistoryChangedEvent struct {
                                                                                                                      	Type           string `json:"type"`
                                                                                                                      	Latest         string `json:"latest"`
                                                                                                                      	Timestamp      string `json:"ts"`
                                                                                                                      	EventTimestamp string `json:"event_ts"`
                                                                                                                      }

                                                                                                                        ChannelHistoryChangedEvent represents the Channel history changed event

                                                                                                                        type ChannelInfoEvent

                                                                                                                        type ChannelInfoEvent struct {
                                                                                                                        	// channel_left
                                                                                                                        	// channel_deleted
                                                                                                                        	// channel_archive
                                                                                                                        	// channel_unarchive
                                                                                                                        	Type      string `json:"type"`
                                                                                                                        	Channel   string `json:"channel"`
                                                                                                                        	User      string `json:"user,omitempty"`
                                                                                                                        	Timestamp string `json:"ts,omitempty"`
                                                                                                                        }

                                                                                                                          ChannelInfoEvent represents the Channel info event

                                                                                                                          type ChannelJoinedEvent

                                                                                                                          type ChannelJoinedEvent struct {
                                                                                                                          	Type    string  `json:"type"`
                                                                                                                          	Channel Channel `json:"channel"`
                                                                                                                          }

                                                                                                                            ChannelJoinedEvent represents the Channel joined event

                                                                                                                            type ChannelLeftEvent

                                                                                                                            type ChannelLeftEvent ChannelInfoEvent

                                                                                                                              ChannelLeftEvent represents the Channel left event

                                                                                                                              type ChannelMarkedEvent

                                                                                                                              type ChannelMarkedEvent ChannelInfoEvent

                                                                                                                                ChannelMarkedEvent represents the Channel marked event

                                                                                                                                type ChannelPagination

                                                                                                                                type ChannelPagination struct {
                                                                                                                                	Channels []Channel
                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                }

                                                                                                                                  ChannelPagination allows for paginating over the channels

                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                  func (ChannelPagination) Done

                                                                                                                                  func (ChannelPagination) Done(err error) bool

                                                                                                                                    Done checks if the pagination has completed

                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                    func (ChannelPagination) Failure

                                                                                                                                    func (t ChannelPagination) Failure(err error) error

                                                                                                                                      Failure checks if pagination failed.

                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                      func (ChannelPagination) Next

                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                        type ChannelRenameEvent

                                                                                                                                        type ChannelRenameEvent struct {
                                                                                                                                        	Type      string            `json:"type"`
                                                                                                                                        	Channel   ChannelRenameInfo `json:"channel"`
                                                                                                                                        	Timestamp string            `json:"event_ts"`
                                                                                                                                        }

                                                                                                                                          ChannelRenameEvent represents the Channel rename event

                                                                                                                                          type ChannelRenameInfo

                                                                                                                                          type ChannelRenameInfo struct {
                                                                                                                                          	ID      string `json:"id"`
                                                                                                                                          	Name    string `json:"name"`
                                                                                                                                          	Created int    `json:"created"`
                                                                                                                                          }

                                                                                                                                            ChannelRenameInfo represents the information associated with a Channel rename event

                                                                                                                                            type ChannelUnarchiveEvent

                                                                                                                                            type ChannelUnarchiveEvent ChannelInfoEvent

                                                                                                                                              ChannelUnarchiveEvent represents the Channel unarchive event

                                                                                                                                              type CheckboxGroupsBlockElement

                                                                                                                                              type CheckboxGroupsBlockElement struct {
                                                                                                                                              	Type           MessageElementType       `json:"type"`
                                                                                                                                              	ActionID       string                   `json:"action_id,omitempty"`
                                                                                                                                              	Options        []*OptionBlockObject     `json:"options"`
                                                                                                                                              	InitialOptions []*OptionBlockObject     `json:"initial_options,omitempty"`
                                                                                                                                              	Confirm        *ConfirmationBlockObject `json:"confirm,omitempty"`
                                                                                                                                              }

                                                                                                                                                CheckboxGroupsBlockElement defines an element which allows users to choose one or more items from a list of possible options.

                                                                                                                                                More Information: https://api.slack.com/reference/block-kit/block-elements#checkboxes

                                                                                                                                                func NewCheckboxGroupsBlockElement

                                                                                                                                                func NewCheckboxGroupsBlockElement(actionID string, options ...*OptionBlockObject) *CheckboxGroupsBlockElement

                                                                                                                                                  NewCheckboxGroupsBlockElement returns an instance of a checkbox-group block element

                                                                                                                                                  func (CheckboxGroupsBlockElement) ElementType

                                                                                                                                                    ElementType returns the type of the Element

                                                                                                                                                    type Client

                                                                                                                                                    type Client struct {
                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                    }

                                                                                                                                                    func New

                                                                                                                                                    func New(token string, options ...Option) *Client

                                                                                                                                                      New builds a slack client from the provided token and options.

                                                                                                                                                      func (*Client) AddChannelReminder

                                                                                                                                                      func (api *Client) AddChannelReminder(channelID, text, time string) (*Reminder, error)

                                                                                                                                                        AddChannelReminder adds a reminder for a channel.

                                                                                                                                                        See https://api.slack.com/methods/reminders.add (NOTE: the ability to set reminders on a channel is currently undocumented but has been tested to work)

                                                                                                                                                        func (*Client) AddPin

                                                                                                                                                        func (api *Client) AddPin(channel string, item ItemRef) error

                                                                                                                                                          AddPin pins an item in a channel

                                                                                                                                                          func (*Client) AddPinContext

                                                                                                                                                          func (api *Client) AddPinContext(ctx context.Context, channel string, item ItemRef) error

                                                                                                                                                            AddPinContext pins an item in a channel with a custom context

                                                                                                                                                            func (*Client) AddReaction

                                                                                                                                                            func (api *Client) AddReaction(name string, item ItemRef) error

                                                                                                                                                              AddReaction adds a reaction emoji to a message, file or file comment.

                                                                                                                                                              func (*Client) AddReactionContext

                                                                                                                                                              func (api *Client) AddReactionContext(ctx context.Context, name string, item ItemRef) error

                                                                                                                                                                AddReactionContext adds a reaction emoji to a message, file or file comment with a custom context.

                                                                                                                                                                func (*Client) AddStar

                                                                                                                                                                func (api *Client) AddStar(channel string, item ItemRef) error

                                                                                                                                                                  AddStar stars an item in a channel

                                                                                                                                                                  func (*Client) AddStarContext

                                                                                                                                                                  func (api *Client) AddStarContext(ctx context.Context, channel string, item ItemRef) error

                                                                                                                                                                    AddStarContext stars an item in a channel with a custom context

                                                                                                                                                                    func (*Client) AddUserReminder

                                                                                                                                                                    func (api *Client) AddUserReminder(userID, text, time string) (*Reminder, error)

                                                                                                                                                                      AddUserReminder adds a reminder for a user.

                                                                                                                                                                      See https://api.slack.com/methods/reminders.add (NOTE: the ability to set reminders on a channel is currently undocumented but has been tested to work)

                                                                                                                                                                      func (*Client) ArchiveChannel

                                                                                                                                                                      func (api *Client) ArchiveChannel(channelID string) error

                                                                                                                                                                        ArchiveChannel archives the given channel see https://api.slack.com/methods/channels.archive

                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                        func (*Client) ArchiveChannelContext

                                                                                                                                                                        func (api *Client) ArchiveChannelContext(ctx context.Context, channelID string) (err error)

                                                                                                                                                                          ArchiveChannelContext archives the given channel with a custom context see https://api.slack.com/methods/channels.archive

                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                          func (*Client) ArchiveConversation

                                                                                                                                                                          func (api *Client) ArchiveConversation(channelID string) error

                                                                                                                                                                            ArchiveConversation archives a conversation

                                                                                                                                                                            func (*Client) ArchiveConversationContext

                                                                                                                                                                            func (api *Client) ArchiveConversationContext(ctx context.Context, channelID string) error

                                                                                                                                                                              ArchiveConversationContext archives a conversation with a custom context

                                                                                                                                                                              func (*Client) ArchiveGroup

                                                                                                                                                                              func (api *Client) ArchiveGroup(group string) error

                                                                                                                                                                                ArchiveGroup archives a private group

                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                func (*Client) ArchiveGroupContext

                                                                                                                                                                                func (api *Client) ArchiveGroupContext(ctx context.Context, group string) error

                                                                                                                                                                                  ArchiveGroupContext archives a private group

                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                  func (*Client) AuthTest

                                                                                                                                                                                  func (api *Client) AuthTest() (response *AuthTestResponse, error error)

                                                                                                                                                                                    AuthTest tests if the user is able to do authenticated requests or not

                                                                                                                                                                                    func (*Client) AuthTestContext

                                                                                                                                                                                    func (api *Client) AuthTestContext(ctx context.Context) (response *AuthTestResponse, err error)

                                                                                                                                                                                      AuthTestContext tests if the user is able to do authenticated requests or not with a custom context

                                                                                                                                                                                      func (*Client) CloseConversation

                                                                                                                                                                                      func (api *Client) CloseConversation(channelID string) (noOp bool, alreadyClosed bool, err error)

                                                                                                                                                                                        CloseConversation closes a direct message or multi-person direct message

                                                                                                                                                                                        func (*Client) CloseConversationContext

                                                                                                                                                                                        func (api *Client) CloseConversationContext(ctx context.Context, channelID string) (noOp bool, alreadyClosed bool, err error)

                                                                                                                                                                                          CloseConversationContext closes a direct message or multi-person direct message with a custom context

                                                                                                                                                                                          func (*Client) CloseIMChannel

                                                                                                                                                                                          func (api *Client) CloseIMChannel(channel string) (bool, bool, error)

                                                                                                                                                                                            CloseIMChannel closes the direct message channel

                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                            func (*Client) CloseIMChannelContext

                                                                                                                                                                                            func (api *Client) CloseIMChannelContext(ctx context.Context, channel string) (bool, bool, error)

                                                                                                                                                                                              CloseIMChannelContext closes the direct message channel with a custom context

                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                              func (*Client) ConnectRTM

                                                                                                                                                                                              func (api *Client) ConnectRTM() (info *Info, websocketURL string, err error)

                                                                                                                                                                                                ConnectRTM calls the "rtm.connect" endpoint and returns the provided URL and the compact Info block.

                                                                                                                                                                                                To have a fully managed Websocket connection, use `NewRTM`, and call `ManageConnection()` on it.

                                                                                                                                                                                                func (*Client) ConnectRTMContext

                                                                                                                                                                                                func (api *Client) ConnectRTMContext(ctx context.Context) (info *Info, websocketURL string, err error)

                                                                                                                                                                                                  ConnectRTMContext calls the "rtm.connect" endpoint and returns the provided URL and the compact Info block with a custom context.

                                                                                                                                                                                                  To have a fully managed Websocket connection, use `NewRTM`, and call `ManageConnection()` on it.

                                                                                                                                                                                                  func (*Client) CreateChannel

                                                                                                                                                                                                  func (api *Client) CreateChannel(channelName string) (*Channel, error)

                                                                                                                                                                                                    CreateChannel creates a channel with the given name and returns a *Channel see https://api.slack.com/methods/channels.create

                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                    func (*Client) CreateChannelContext

                                                                                                                                                                                                    func (api *Client) CreateChannelContext(ctx context.Context, channelName string) (*Channel, error)

                                                                                                                                                                                                      CreateChannelContext creates a channel with the given name and returns a *Channel with a custom context see https://api.slack.com/methods/channels.create

                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                      func (*Client) CreateChildGroup

                                                                                                                                                                                                      func (api *Client) CreateChildGroup(group string) (*Group, error)

                                                                                                                                                                                                        CreateChildGroup creates a new private group archiving the old one This method takes an existing private group and performs the following steps:

                                                                                                                                                                                                        1. Renames the existing group (from "example" to "example-archived").
                                                                                                                                                                                                        2. Archives the existing group.
                                                                                                                                                                                                        3. Creates a new group with the name of the existing group.
                                                                                                                                                                                                        4. Adds all members of the existing group to the new group.
                                                                                                                                                                                                        

                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                        func (*Client) CreateChildGroupContext

                                                                                                                                                                                                        func (api *Client) CreateChildGroupContext(ctx context.Context, group string) (*Group, error)

                                                                                                                                                                                                          CreateChildGroupContext creates a new private group archiving the old one with a custom context For more information see CreateChildGroup

                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                          func (*Client) CreateConversation

                                                                                                                                                                                                          func (api *Client) CreateConversation(channelName string, isPrivate bool) (*Channel, error)

                                                                                                                                                                                                            CreateConversation initiates a public or private channel-based conversation

                                                                                                                                                                                                            func (*Client) CreateConversationContext

                                                                                                                                                                                                            func (api *Client) CreateConversationContext(ctx context.Context, channelName string, isPrivate bool) (*Channel, error)

                                                                                                                                                                                                              CreateConversationContext initiates a public or private channel-based conversation with a custom context

                                                                                                                                                                                                              func (*Client) CreateGroup

                                                                                                                                                                                                              func (api *Client) CreateGroup(group string) (*Group, error)

                                                                                                                                                                                                                CreateGroup creates a private group

                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                func (*Client) CreateGroupContext

                                                                                                                                                                                                                func (api *Client) CreateGroupContext(ctx context.Context, group string) (*Group, error)

                                                                                                                                                                                                                  CreateGroupContext creates a private group

                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                  func (*Client) CreateUserGroup

                                                                                                                                                                                                                  func (api *Client) CreateUserGroup(userGroup UserGroup) (UserGroup, error)

                                                                                                                                                                                                                    CreateUserGroup creates a new user group

                                                                                                                                                                                                                    func (*Client) CreateUserGroupContext

                                                                                                                                                                                                                    func (api *Client) CreateUserGroupContext(ctx context.Context, userGroup UserGroup) (UserGroup, error)

                                                                                                                                                                                                                      CreateUserGroupContext creates a new user group with a custom context

                                                                                                                                                                                                                      func (*Client) Debug

                                                                                                                                                                                                                      func (api *Client) Debug() bool

                                                                                                                                                                                                                        Debug returns if debug is enabled.

                                                                                                                                                                                                                        func (*Client) Debugf

                                                                                                                                                                                                                        func (api *Client) Debugf(format string, v ...interface{})

                                                                                                                                                                                                                          Debugf print a formatted debug line.

                                                                                                                                                                                                                          func (*Client) Debugln

                                                                                                                                                                                                                          func (api *Client) Debugln(v ...interface{})

                                                                                                                                                                                                                            Debugln print a debug line.

                                                                                                                                                                                                                            func (*Client) DeleteFile

                                                                                                                                                                                                                            func (api *Client) DeleteFile(fileID string) error

                                                                                                                                                                                                                              DeleteFile deletes a file

                                                                                                                                                                                                                              func (*Client) DeleteFileComment

                                                                                                                                                                                                                              func (api *Client) DeleteFileComment(commentID, fileID string) error

                                                                                                                                                                                                                                DeleteFileComment deletes a file's comment

                                                                                                                                                                                                                                func (*Client) DeleteFileCommentContext

                                                                                                                                                                                                                                func (api *Client) DeleteFileCommentContext(ctx context.Context, fileID, commentID string) (err error)

                                                                                                                                                                                                                                  DeleteFileCommentContext deletes a file's comment with a custom context

                                                                                                                                                                                                                                  func (*Client) DeleteFileContext

                                                                                                                                                                                                                                  func (api *Client) DeleteFileContext(ctx context.Context, fileID string) (err error)

                                                                                                                                                                                                                                    DeleteFileContext deletes a file with a custom context

                                                                                                                                                                                                                                    func (*Client) DeleteMessage

                                                                                                                                                                                                                                    func (api *Client) DeleteMessage(channel, messageTimestamp string) (string, string, error)

                                                                                                                                                                                                                                      DeleteMessage deletes a message in a channel

                                                                                                                                                                                                                                      func (*Client) DeleteMessageContext

                                                                                                                                                                                                                                      func (api *Client) DeleteMessageContext(ctx context.Context, channel, messageTimestamp string) (string, string, error)

                                                                                                                                                                                                                                        DeleteMessageContext deletes a message in a channel with a custom context

                                                                                                                                                                                                                                        func (*Client) DeleteReminder

                                                                                                                                                                                                                                        func (api *Client) DeleteReminder(id string) error

                                                                                                                                                                                                                                          DeleteReminder deletes an existing reminder.

                                                                                                                                                                                                                                          See https://api.slack.com/methods/reminders.delete

                                                                                                                                                                                                                                          func (*Client) DeleteScheduledMessage

                                                                                                                                                                                                                                          func (api *Client) DeleteScheduledMessage(params *DeleteScheduledMessageParameters) (bool, error)

                                                                                                                                                                                                                                            DeleteScheduledMessage returns the list of scheduled messages based on params

                                                                                                                                                                                                                                            func (*Client) DeleteScheduledMessageContext

                                                                                                                                                                                                                                            func (api *Client) DeleteScheduledMessageContext(ctx context.Context, params *DeleteScheduledMessageParameters) (bool, error)

                                                                                                                                                                                                                                              DeleteScheduledMessageContext returns the list of scheduled messages in a Slack team with a custom context

                                                                                                                                                                                                                                              func (*Client) DeleteUserPhoto

                                                                                                                                                                                                                                              func (api *Client) DeleteUserPhoto() error

                                                                                                                                                                                                                                                DeleteUserPhoto deletes the current authenticated user's profile image

                                                                                                                                                                                                                                                func (*Client) DeleteUserPhotoContext

                                                                                                                                                                                                                                                func (api *Client) DeleteUserPhotoContext(ctx context.Context) (err error)

                                                                                                                                                                                                                                                  DeleteUserPhotoContext deletes the current authenticated user's profile image with a custom context

                                                                                                                                                                                                                                                  func (*Client) DisableUser

                                                                                                                                                                                                                                                  func (api *Client) DisableUser(teamName string, uid string) error

                                                                                                                                                                                                                                                    DisableUser disabled a user account, given a user ID

                                                                                                                                                                                                                                                    func (*Client) DisableUserContext

                                                                                                                                                                                                                                                    func (api *Client) DisableUserContext(ctx context.Context, teamName string, uid string) error

                                                                                                                                                                                                                                                      DisableUserContext disabled a user account, given a user ID with a custom context

                                                                                                                                                                                                                                                      func (*Client) DisableUserGroup

                                                                                                                                                                                                                                                      func (api *Client) DisableUserGroup(userGroup string) (UserGroup, error)

                                                                                                                                                                                                                                                        DisableUserGroup disables an existing user group

                                                                                                                                                                                                                                                        func (*Client) DisableUserGroupContext

                                                                                                                                                                                                                                                        func (api *Client) DisableUserGroupContext(ctx context.Context, userGroup string) (UserGroup, error)

                                                                                                                                                                                                                                                          DisableUserGroupContext disables an existing user group with a custom context

                                                                                                                                                                                                                                                          func (*Client) EnableUserGroup

                                                                                                                                                                                                                                                          func (api *Client) EnableUserGroup(userGroup string) (UserGroup, error)

                                                                                                                                                                                                                                                            EnableUserGroup enables an existing user group

                                                                                                                                                                                                                                                            func (*Client) EnableUserGroupContext

                                                                                                                                                                                                                                                            func (api *Client) EnableUserGroupContext(ctx context.Context, userGroup string) (UserGroup, error)

                                                                                                                                                                                                                                                              EnableUserGroupContext enables an existing user group with a custom context

                                                                                                                                                                                                                                                              func (*Client) EndDND

                                                                                                                                                                                                                                                              func (api *Client) EndDND() error

                                                                                                                                                                                                                                                                EndDND ends the user's scheduled Do Not Disturb session

                                                                                                                                                                                                                                                                func (*Client) EndDNDContext

                                                                                                                                                                                                                                                                func (api *Client) EndDNDContext(ctx context.Context) error

                                                                                                                                                                                                                                                                  EndDNDContext ends the user's scheduled Do Not Disturb session with a custom context

                                                                                                                                                                                                                                                                  func (*Client) EndSnooze

                                                                                                                                                                                                                                                                  func (api *Client) EndSnooze() (*DNDStatus, error)

                                                                                                                                                                                                                                                                    EndSnooze ends the current user's snooze mode

                                                                                                                                                                                                                                                                    func (*Client) EndSnoozeContext

                                                                                                                                                                                                                                                                    func (api *Client) EndSnoozeContext(ctx context.Context) (*DNDStatus, error)

                                                                                                                                                                                                                                                                      EndSnoozeContext ends the current user's snooze mode with a custom context

                                                                                                                                                                                                                                                                      func (*Client) GetAccessLogs

                                                                                                                                                                                                                                                                      func (api *Client) GetAccessLogs(params AccessLogParameters) ([]Login, *Paging, error)

                                                                                                                                                                                                                                                                        GetAccessLogs retrieves a page of logins according to the parameters given

                                                                                                                                                                                                                                                                        func (*Client) GetAccessLogsContext

                                                                                                                                                                                                                                                                        func (api *Client) GetAccessLogsContext(ctx context.Context, params AccessLogParameters) ([]Login, *Paging, error)

                                                                                                                                                                                                                                                                          GetAccessLogsContext retrieves a page of logins according to the parameters given with a custom context

                                                                                                                                                                                                                                                                          func (*Client) GetBillableInfo

                                                                                                                                                                                                                                                                          func (api *Client) GetBillableInfo(user string) (map[string]BillingActive, error)

                                                                                                                                                                                                                                                                            GetBillableInfo ...

                                                                                                                                                                                                                                                                            func (*Client) GetBillableInfoContext

                                                                                                                                                                                                                                                                            func (api *Client) GetBillableInfoContext(ctx context.Context, user string) (map[string]BillingActive, error)

                                                                                                                                                                                                                                                                              GetBillableInfoContext ...

                                                                                                                                                                                                                                                                              func (*Client) GetBillableInfoForTeam

                                                                                                                                                                                                                                                                              func (api *Client) GetBillableInfoForTeam() (map[string]BillingActive, error)

                                                                                                                                                                                                                                                                                GetBillableInfoForTeam returns the billing_active status of all users on the team.

                                                                                                                                                                                                                                                                                func (*Client) GetBillableInfoForTeamContext

                                                                                                                                                                                                                                                                                func (api *Client) GetBillableInfoForTeamContext(ctx context.Context) (map[string]BillingActive, error)

                                                                                                                                                                                                                                                                                  GetBillableInfoForTeamContext returns the billing_active status of all users on the team with a custom context

                                                                                                                                                                                                                                                                                  func (*Client) GetBotInfo

                                                                                                                                                                                                                                                                                  func (api *Client) GetBotInfo(bot string) (*Bot, error)

                                                                                                                                                                                                                                                                                    GetBotInfo will retrieve the complete bot information

                                                                                                                                                                                                                                                                                    func (*Client) GetBotInfoContext

                                                                                                                                                                                                                                                                                    func (api *Client) GetBotInfoContext(ctx context.Context, bot string) (*Bot, error)

                                                                                                                                                                                                                                                                                      GetBotInfoContext will retrieve the complete bot information using a custom context

                                                                                                                                                                                                                                                                                      func (*Client) GetChannelHistory

                                                                                                                                                                                                                                                                                      func (api *Client) GetChannelHistory(channelID string, params HistoryParameters) (*History, error)

                                                                                                                                                                                                                                                                                        GetChannelHistory retrieves the channel history see https://api.slack.com/methods/channels.history

                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                        func (*Client) GetChannelHistoryContext

                                                                                                                                                                                                                                                                                        func (api *Client) GetChannelHistoryContext(ctx context.Context, channelID string, params HistoryParameters) (*History, error)

                                                                                                                                                                                                                                                                                          GetChannelHistoryContext retrieves the channel history with a custom context see https://api.slack.com/methods/channels.history

                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                          func (*Client) GetChannelInfo

                                                                                                                                                                                                                                                                                          func (api *Client) GetChannelInfo(channelID string) (*Channel, error)

                                                                                                                                                                                                                                                                                            GetChannelInfo retrieves the given channel see https://api.slack.com/methods/channels.info

                                                                                                                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                            func (*Client) GetChannelInfoContext

                                                                                                                                                                                                                                                                                            func (api *Client) GetChannelInfoContext(ctx context.Context, channelID string) (*Channel, error)

                                                                                                                                                                                                                                                                                              GetChannelInfoContext retrieves the given channel with a custom context see https://api.slack.com/methods/channels.info

                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                              func (*Client) GetChannelReplies

                                                                                                                                                                                                                                                                                              func (api *Client) GetChannelReplies(channelID, thread_ts string) ([]Message, error)

                                                                                                                                                                                                                                                                                                GetChannelReplies gets an entire thread (a message plus all the messages in reply to it). see https://api.slack.com/methods/channels.replies

                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                func (*Client) GetChannelRepliesContext

                                                                                                                                                                                                                                                                                                func (api *Client) GetChannelRepliesContext(ctx context.Context, channelID, thread_ts string) ([]Message, error)

                                                                                                                                                                                                                                                                                                  GetChannelRepliesContext gets an entire thread (a message plus all the messages in reply to it) with a custom context see https://api.slack.com/methods/channels.replies

                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                  func (*Client) GetChannels

                                                                                                                                                                                                                                                                                                  func (api *Client) GetChannels(excludeArchived bool, options ...GetChannelsOption) ([]Channel, error)

                                                                                                                                                                                                                                                                                                    GetChannels retrieves all the channels see https://api.slack.com/methods/channels.list

                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                    func (*Client) GetChannelsContext

                                                                                                                                                                                                                                                                                                    func (api *Client) GetChannelsContext(ctx context.Context, excludeArchived bool, options ...GetChannelsOption) (results []Channel, err error)

                                                                                                                                                                                                                                                                                                      GetChannelsContext retrieves all the channels with a custom context see https://api.slack.com/methods/channels.list

                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                      func (*Client) GetChannelsPaginated

                                                                                                                                                                                                                                                                                                      func (api *Client) GetChannelsPaginated(options ...GetChannelsOption) ChannelPagination

                                                                                                                                                                                                                                                                                                        GetChannelsPaginated fetches channels in a paginated fashion, see GetChannelsContext for usage.

                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                        func (*Client) GetConversationHistory

                                                                                                                                                                                                                                                                                                        func (api *Client) GetConversationHistory(params *GetConversationHistoryParameters) (*GetConversationHistoryResponse, error)

                                                                                                                                                                                                                                                                                                          GetConversationHistory joins an existing conversation

                                                                                                                                                                                                                                                                                                          func (*Client) GetConversationHistoryContext

                                                                                                                                                                                                                                                                                                          func (api *Client) GetConversationHistoryContext(ctx context.Context, params *GetConversationHistoryParameters) (*GetConversationHistoryResponse, error)

                                                                                                                                                                                                                                                                                                            GetConversationHistoryContext joins an existing conversation with a custom context

                                                                                                                                                                                                                                                                                                            func (*Client) GetConversationInfo

                                                                                                                                                                                                                                                                                                            func (api *Client) GetConversationInfo(channelID string, includeLocale bool) (*Channel, error)

                                                                                                                                                                                                                                                                                                              GetConversationInfo retrieves information about a conversation

                                                                                                                                                                                                                                                                                                              func (*Client) GetConversationInfoContext

                                                                                                                                                                                                                                                                                                              func (api *Client) GetConversationInfoContext(ctx context.Context, channelID string, includeLocale bool) (*Channel, error)

                                                                                                                                                                                                                                                                                                                GetConversationInfoContext retrieves information about a conversation with a custom context

                                                                                                                                                                                                                                                                                                                func (*Client) GetConversationReplies

                                                                                                                                                                                                                                                                                                                func (api *Client) GetConversationReplies(params *GetConversationRepliesParameters) (msgs []Message, hasMore bool, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                  GetConversationReplies retrieves a thread of messages posted to a conversation

                                                                                                                                                                                                                                                                                                                  func (*Client) GetConversationRepliesContext

                                                                                                                                                                                                                                                                                                                  func (api *Client) GetConversationRepliesContext(ctx context.Context, params *GetConversationRepliesParameters) (msgs []Message, hasMore bool, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                    GetConversationRepliesContext retrieves a thread of messages posted to a conversation with a custom context

                                                                                                                                                                                                                                                                                                                    func (*Client) GetConversations

                                                                                                                                                                                                                                                                                                                    func (api *Client) GetConversations(params *GetConversationsParameters) (channels []Channel, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                      GetConversations returns the list of channels in a Slack team

                                                                                                                                                                                                                                                                                                                      func (*Client) GetConversationsContext

                                                                                                                                                                                                                                                                                                                      func (api *Client) GetConversationsContext(ctx context.Context, params *GetConversationsParameters) (channels []Channel, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                        GetConversationsContext returns the list of channels in a Slack team with a custom context

                                                                                                                                                                                                                                                                                                                        func (*Client) GetConversationsForUser

                                                                                                                                                                                                                                                                                                                        func (api *Client) GetConversationsForUser(params *GetConversationsForUserParameters) (channels []Channel, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                          GetConversationsForUser returns the list conversations for a given user

                                                                                                                                                                                                                                                                                                                          func (*Client) GetConversationsForUserContext

                                                                                                                                                                                                                                                                                                                          func (api *Client) GetConversationsForUserContext(ctx context.Context, params *GetConversationsForUserParameters) (channels []Channel, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                            GetConversationsForUserContext returns the list conversations for a given user with a custom context

                                                                                                                                                                                                                                                                                                                            func (*Client) GetDNDInfo

                                                                                                                                                                                                                                                                                                                            func (api *Client) GetDNDInfo(user *string) (*DNDStatus, error)

                                                                                                                                                                                                                                                                                                                              GetDNDInfo provides information about a user's current Do Not Disturb settings.

                                                                                                                                                                                                                                                                                                                              func (*Client) GetDNDInfoContext

                                                                                                                                                                                                                                                                                                                              func (api *Client) GetDNDInfoContext(ctx context.Context, user *string) (*DNDStatus, error)

                                                                                                                                                                                                                                                                                                                                GetDNDInfoContext provides information about a user's current Do Not Disturb settings with a custom context.

                                                                                                                                                                                                                                                                                                                                func (*Client) GetDNDTeamInfo

                                                                                                                                                                                                                                                                                                                                func (api *Client) GetDNDTeamInfo(users []string) (map[string]DNDStatus, error)

                                                                                                                                                                                                                                                                                                                                  GetDNDTeamInfo provides information about a user's current Do Not Disturb settings.

                                                                                                                                                                                                                                                                                                                                  func (*Client) GetDNDTeamInfoContext

                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetDNDTeamInfoContext(ctx context.Context, users []string) (map[string]DNDStatus, error)

                                                                                                                                                                                                                                                                                                                                    GetDNDTeamInfoContext provides information about a user's current Do Not Disturb settings with a custom context.

                                                                                                                                                                                                                                                                                                                                    func (*Client) GetEmoji

                                                                                                                                                                                                                                                                                                                                    func (api *Client) GetEmoji() (map[string]string, error)

                                                                                                                                                                                                                                                                                                                                      GetEmoji retrieves all the emojis

                                                                                                                                                                                                                                                                                                                                      func (*Client) GetEmojiContext

                                                                                                                                                                                                                                                                                                                                      func (api *Client) GetEmojiContext(ctx context.Context) (map[string]string, error)

                                                                                                                                                                                                                                                                                                                                        GetEmojiContext retrieves all the emojis with a custom context

                                                                                                                                                                                                                                                                                                                                        func (*Client) GetFile

                                                                                                                                                                                                                                                                                                                                        func (api *Client) GetFile(downloadURL string, writer io.Writer) error

                                                                                                                                                                                                                                                                                                                                          GetFile retreives a given file from its private download URL

                                                                                                                                                                                                                                                                                                                                          func (*Client) GetFileInfo

                                                                                                                                                                                                                                                                                                                                          func (api *Client) GetFileInfo(fileID string, count, page int) (*File, []Comment, *Paging, error)

                                                                                                                                                                                                                                                                                                                                            GetFileInfo retrieves a file and related comments

                                                                                                                                                                                                                                                                                                                                            func (*Client) GetFileInfoContext

                                                                                                                                                                                                                                                                                                                                            func (api *Client) GetFileInfoContext(ctx context.Context, fileID string, count, page int) (*File, []Comment, *Paging, error)

                                                                                                                                                                                                                                                                                                                                              GetFileInfoContext retrieves a file and related comments with a custom context

                                                                                                                                                                                                                                                                                                                                              func (*Client) GetFiles

                                                                                                                                                                                                                                                                                                                                              func (api *Client) GetFiles(params GetFilesParameters) ([]File, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                GetFiles retrieves all files according to the parameters given

                                                                                                                                                                                                                                                                                                                                                func (*Client) GetFilesContext

                                                                                                                                                                                                                                                                                                                                                func (api *Client) GetFilesContext(ctx context.Context, params GetFilesParameters) ([]File, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                  GetFilesContext retrieves all files according to the parameters given with a custom context

                                                                                                                                                                                                                                                                                                                                                  func (*Client) GetGroupHistory

                                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetGroupHistory(group string, params HistoryParameters) (*History, error)

                                                                                                                                                                                                                                                                                                                                                    GetGroupHistory fetches all the history for a private group

                                                                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                    func (*Client) GetGroupHistoryContext

                                                                                                                                                                                                                                                                                                                                                    func (api *Client) GetGroupHistoryContext(ctx context.Context, group string, params HistoryParameters) (*History, error)

                                                                                                                                                                                                                                                                                                                                                      GetGroupHistoryContext fetches all the history for a private group with a custom context

                                                                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                      func (*Client) GetGroupInfo

                                                                                                                                                                                                                                                                                                                                                      func (api *Client) GetGroupInfo(group string) (*Group, error)

                                                                                                                                                                                                                                                                                                                                                        GetGroupInfo retrieves the given group

                                                                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                        func (*Client) GetGroupInfoContext

                                                                                                                                                                                                                                                                                                                                                        func (api *Client) GetGroupInfoContext(ctx context.Context, group string) (*Group, error)

                                                                                                                                                                                                                                                                                                                                                          GetGroupInfoContext retrieves the given group with a custom context

                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                          func (*Client) GetGroupReplies

                                                                                                                                                                                                                                                                                                                                                          func (api *Client) GetGroupReplies(channelID, thread_ts string) ([]Message, error)

                                                                                                                                                                                                                                                                                                                                                            GetGroupReplies gets an entire thread (a message plus all the messages in reply to it). see https://api.slack.com/methods/groups.replies

                                                                                                                                                                                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                            func (*Client) GetGroupRepliesContext

                                                                                                                                                                                                                                                                                                                                                            func (api *Client) GetGroupRepliesContext(ctx context.Context, channelID, thread_ts string) ([]Message, error)

                                                                                                                                                                                                                                                                                                                                                              GetGroupRepliesContext gets an entire thread (a message plus all the messages in reply to it) with a custom context see https://api.slack.com/methods/groups.replies

                                                                                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                              func (*Client) GetGroups

                                                                                                                                                                                                                                                                                                                                                              func (api *Client) GetGroups(excludeArchived bool) ([]Group, error)

                                                                                                                                                                                                                                                                                                                                                                GetGroups retrieves all groups

                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                func (*Client) GetGroupsContext

                                                                                                                                                                                                                                                                                                                                                                func (api *Client) GetGroupsContext(ctx context.Context, excludeArchived bool) ([]Group, error)

                                                                                                                                                                                                                                                                                                                                                                  GetGroupsContext retrieves all groups with a custom context

                                                                                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                  func (*Client) GetIMChannels

                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetIMChannels() ([]IM, error)

                                                                                                                                                                                                                                                                                                                                                                    GetIMChannels returns the list of direct message channels

                                                                                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                    func (*Client) GetIMChannelsContext

                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) GetIMChannelsContext(ctx context.Context) ([]IM, error)

                                                                                                                                                                                                                                                                                                                                                                      GetIMChannelsContext returns the list of direct message channels with a custom context

                                                                                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                      func (*Client) GetIMHistory

                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) GetIMHistory(channel string, params HistoryParameters) (*History, error)

                                                                                                                                                                                                                                                                                                                                                                        GetIMHistory retrieves the direct message channel history

                                                                                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                        func (*Client) GetIMHistoryContext

                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) GetIMHistoryContext(ctx context.Context, channel string, params HistoryParameters) (*History, error)

                                                                                                                                                                                                                                                                                                                                                                          GetIMHistoryContext retrieves the direct message channel history with a custom context

                                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) GetPermalink(params *PermalinkParameters) (string, error)

                                                                                                                                                                                                                                                                                                                                                                            GetPermalink returns the permalink for a message. It takes PermalinkParameters and returns a string containing the permalink. It returns an error if unable to retrieve the permalink.

                                                                                                                                                                                                                                                                                                                                                                            func (*Client) GetPermalinkContext

                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) GetPermalinkContext(ctx context.Context, params *PermalinkParameters) (string, error)

                                                                                                                                                                                                                                                                                                                                                                              GetPermalinkContext returns the permalink for a message using a custom context.

                                                                                                                                                                                                                                                                                                                                                                              func (*Client) GetReactions

                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) GetReactions(item ItemRef, params GetReactionsParameters) ([]ItemReaction, error)

                                                                                                                                                                                                                                                                                                                                                                                GetReactions returns details about the reactions on an item.

                                                                                                                                                                                                                                                                                                                                                                                func (*Client) GetReactionsContext

                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) GetReactionsContext(ctx context.Context, item ItemRef, params GetReactionsParameters) ([]ItemReaction, error)

                                                                                                                                                                                                                                                                                                                                                                                  GetReactionsContext returns details about the reactions on an item with a custom context

                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) GetScheduledMessages

                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetScheduledMessages(params *GetScheduledMessagesParameters) (channels []ScheduledMessage, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                                                                                    GetScheduledMessages returns the list of scheduled messages based on params

                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) GetScheduledMessagesContext

                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) GetScheduledMessagesContext(ctx context.Context, params *GetScheduledMessagesParameters) (channels []ScheduledMessage, nextCursor string, err error)

                                                                                                                                                                                                                                                                                                                                                                                      GetScheduledMessagesContext returns the list of scheduled messages in a Slack team with a custom context

                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) GetStarred

                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) GetStarred(params StarsParameters) ([]StarredItem, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                        GetStarred returns a list of StarredItem items.

                                                                                                                                                                                                                                                                                                                                                                                        The user then has to iterate over them and figure out what they should be looking at according to what is in the Type.

                                                                                                                                                                                                                                                                                                                                                                                        for _, item := range items {
                                                                                                                                                                                                                                                                                                                                                                                            switch c.Type {
                                                                                                                                                                                                                                                                                                                                                                                            case "file_comment":
                                                                                                                                                                                                                                                                                                                                                                                                log.Println(c.Comment)
                                                                                                                                                                                                                                                                                                                                                                                            case "file":
                                                                                                                                                                                                                                                                                                                                                                                                 ...
                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                        This function still exists to maintain backwards compatibility. I exposed it as returning []StarredItem, so it shall stay as StarredItem

                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) GetStarredContext

                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) GetStarredContext(ctx context.Context, params StarsParameters) ([]StarredItem, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                          GetStarredContext returns a list of StarredItem items with a custom context

                                                                                                                                                                                                                                                                                                                                                                                          For more details see GetStarred

                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) GetTeamInfo

                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) GetTeamInfo() (*TeamInfo, error)

                                                                                                                                                                                                                                                                                                                                                                                            GetTeamInfo gets the Team Information of the user

                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) GetTeamInfoContext

                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) GetTeamInfoContext(ctx context.Context) (*TeamInfo, error)

                                                                                                                                                                                                                                                                                                                                                                                              GetTeamInfoContext gets the Team Information of the user with a custom context

                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) GetUserByEmail

                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) GetUserByEmail(email string) (*User, error)

                                                                                                                                                                                                                                                                                                                                                                                                GetUserByEmail will retrieve the complete user information by email

                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) GetUserByEmailContext

                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) GetUserByEmailContext(ctx context.Context, email string) (*User, error)

                                                                                                                                                                                                                                                                                                                                                                                                  GetUserByEmailContext will retrieve the complete user information by email with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) GetUserGroupMembers

                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetUserGroupMembers(userGroup string) ([]string, error)

                                                                                                                                                                                                                                                                                                                                                                                                    GetUserGroupMembers will retrieve the current list of users in a group

                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) GetUserGroupMembersContext

                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) GetUserGroupMembersContext(ctx context.Context, userGroup string) ([]string, error)

                                                                                                                                                                                                                                                                                                                                                                                                      GetUserGroupMembersContext will retrieve the current list of users in a group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) GetUserGroups

                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) GetUserGroups(options ...GetUserGroupsOption) ([]UserGroup, error)

                                                                                                                                                                                                                                                                                                                                                                                                        GetUserGroups returns a list of user groups for the team

                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) GetUserGroupsContext

                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) GetUserGroupsContext(ctx context.Context, options ...GetUserGroupsOption) ([]UserGroup, error)

                                                                                                                                                                                                                                                                                                                                                                                                          GetUserGroupsContext returns a list of user groups for the team with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) GetUserIdentity

                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) GetUserIdentity() (*UserIdentityResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                            GetUserIdentity will retrieve user info available per identity scopes

                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) GetUserIdentityContext

                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) GetUserIdentityContext(ctx context.Context) (response *UserIdentityResponse, err error)

                                                                                                                                                                                                                                                                                                                                                                                                              GetUserIdentityContext will retrieve user info available per identity scopes with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) GetUserInfo

                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) GetUserInfo(user string) (*User, error)

                                                                                                                                                                                                                                                                                                                                                                                                                GetUserInfo will retrieve the complete user information

                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) GetUserInfoContext

                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) GetUserInfoContext(ctx context.Context, user string) (*User, error)

                                                                                                                                                                                                                                                                                                                                                                                                                  GetUserInfoContext will retrieve the complete user information with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) GetUserPrefs

                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetUserPrefs() (*UserPrefsCarrier, error)

                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) GetUserPresence

                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetUserPresence(user string) (*UserPresence, error)

                                                                                                                                                                                                                                                                                                                                                                                                                    GetUserPresence will retrieve the current presence status of given user.

                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) GetUserPresenceContext

                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) GetUserPresenceContext(ctx context.Context, user string) (*UserPresence, error)

                                                                                                                                                                                                                                                                                                                                                                                                                      GetUserPresenceContext will retrieve the current presence status of given user with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) GetUserProfile

                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) GetUserProfile(userID string, includeLabels bool) (*UserProfile, error)

                                                                                                                                                                                                                                                                                                                                                                                                                        GetUserProfile retrieves a user's profile information.

                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) GetUserProfileContext

                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) GetUserProfileContext(ctx context.Context, userID string, includeLabels bool) (*UserProfile, error)

                                                                                                                                                                                                                                                                                                                                                                                                                          GetUserProfileContext retrieves a user's profile information with a context.

                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) GetUsers

                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) GetUsers() ([]User, error)

                                                                                                                                                                                                                                                                                                                                                                                                                            GetUsers returns the list of users (with their detailed information)

                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) GetUsersContext

                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) GetUsersContext(ctx context.Context) (results []User, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                              GetUsersContext returns the list of users (with their detailed information) with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) GetUsersInConversation

                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) GetUsersInConversation(params *GetUsersInConversationParameters) ([]string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                GetUsersInConversation returns the list of users in a conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) GetUsersInConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) GetUsersInConversationContext(ctx context.Context, params *GetUsersInConversationParameters) ([]string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                  GetUsersInConversationContext returns the list of users in a conversation with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) GetUsersInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) GetUsersInfo(users ...string) (*[]User, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                    GetUsersInfo will retrieve the complete multi-users information

                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) GetUsersInfoContext

                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) GetUsersInfoContext(ctx context.Context, users ...string) (*[]User, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                      GetUsersInfoContext will retrieve the complete multi-users information with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) GetUsersPaginated

                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) GetUsersPaginated(options ...GetUsersOption) UserPagination

                                                                                                                                                                                                                                                                                                                                                                                                                                        GetUsersPaginated fetches users in a paginated fashion, see GetUsersContext for usage.

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) InviteGuest

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) InviteGuest(teamName, channel, firstName, lastName, emailAddress string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                          InviteGuest invites a user to Slack as a single-channel guest

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) InviteGuestContext

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) InviteGuestContext(ctx context.Context, teamName, channel, firstName, lastName, emailAddress string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                            InviteGuestContext invites a user to Slack as a single-channel guest with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) InviteRestricted

                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) InviteRestricted(teamName, channel, firstName, lastName, emailAddress string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                              InviteRestricted invites a user to Slack as a restricted account

                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) InviteRestrictedContext

                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) InviteRestrictedContext(ctx context.Context, teamName, channel, firstName, lastName, emailAddress string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                InviteRestrictedContext invites a user to Slack as a restricted account with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) InviteToTeam

                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) InviteToTeam(teamName, firstName, lastName, emailAddress string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                  InviteToTeam invites a user to a Slack team

                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) InviteToTeamContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) InviteToTeamContext(ctx context.Context, teamName, firstName, lastName, emailAddress string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                    InviteToTeamContext invites a user to a Slack team with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) InviteUserToChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) InviteUserToChannel(channelID, user string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                      InviteUserToChannel invites a user to a given channel and returns a *Channel see https://api.slack.com/methods/channels.invite

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) InviteUserToChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) InviteUserToChannelContext(ctx context.Context, channelID, user string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                        InviteUserToChannelContext invites a user to a given channel and returns a *Channel with a custom context see https://api.slack.com/methods/channels.invite

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) InviteUserToGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) InviteUserToGroup(group, user string) (*Group, bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                          InviteUserToGroup invites a specific user to a private group

                                                                                                                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) InviteUserToGroupContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) InviteUserToGroupContext(ctx context.Context, group, user string) (*Group, bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                            InviteUserToGroupContext invites a specific user to a private group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) InviteUsersToConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) InviteUsersToConversation(channelID string, users ...string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                              InviteUsersToConversation invites users to a channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) InviteUsersToConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) InviteUsersToConversationContext(ctx context.Context, channelID string, users ...string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                InviteUsersToConversationContext invites users to a channel with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) JoinChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) JoinChannel(channelName string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  JoinChannel joins the currently authenticated user to a channel see https://api.slack.com/methods/channels.join

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) JoinChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) JoinChannelContext(ctx context.Context, channelName string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    JoinChannelContext joins the currently authenticated user to a channel with a custom context see https://api.slack.com/methods/channels.join

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) JoinConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) JoinConversation(channelID string) (*Channel, string, []string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      JoinConversation joins an existing conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) JoinConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) JoinConversationContext(ctx context.Context, channelID string) (*Channel, string, []string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        JoinConversationContext joins an existing conversation with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) KickUserFromChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) KickUserFromChannel(channelID, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          KickUserFromChannel kicks a user from a given channel see https://api.slack.com/methods/channels.kick

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) KickUserFromChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) KickUserFromChannelContext(ctx context.Context, channelID, user string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            KickUserFromChannelContext kicks a user from a given channel with a custom context see https://api.slack.com/methods/channels.kick

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) KickUserFromConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) KickUserFromConversation(channelID string, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              KickUserFromConversation removes a user from a conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) KickUserFromConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) KickUserFromConversationContext(ctx context.Context, channelID string, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                KickUserFromConversationContext removes a user from a conversation with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) KickUserFromGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) KickUserFromGroup(group, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  KickUserFromGroup kicks a user from a group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) KickUserFromGroupContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) KickUserFromGroupContext(ctx context.Context, group, user string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    KickUserFromGroupContext kicks a user from a group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) LeaveChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) LeaveChannel(channelID string) (bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      LeaveChannel makes the authenticated user leave the given channel see https://api.slack.com/methods/channels.leave

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) LeaveChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) LeaveChannelContext(ctx context.Context, channelID string) (bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        LeaveChannelContext makes the authenticated user leave the given channel with a custom context see https://api.slack.com/methods/channels.leave

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) LeaveConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) LeaveConversation(channelID string) (bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          LeaveConversation leaves a conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) LeaveConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) LeaveConversationContext(ctx context.Context, channelID string) (bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            LeaveConversationContext leaves a conversation with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) LeaveGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) LeaveGroup(group string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              LeaveGroup makes authenticated user leave the group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) LeaveGroupContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) LeaveGroupContext(ctx context.Context, group string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                LeaveGroupContext makes authenticated user leave the group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) ListAllStars

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) ListAllStars() ([]Item, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ListAllStars returns the complete list of starred items

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) ListAllStarsContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) ListAllStarsContext(ctx context.Context) (results []Item, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ListAllStarsContext returns the list of users (with their detailed information) with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) ListEventAuthorizations

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) ListEventAuthorizations(eventContext string) ([]EventAuthorization, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) ListEventAuthorizationsContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) ListEventAuthorizationsContext(ctx context.Context, eventContext string) ([]EventAuthorization, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ListEventAuthorizationsContext lists authed users and teams for the given event_context. You must provide an app-level token to the client using OptionAppLevelToken. More info: https://api.slack.com/methods/apps.event.authorizations.list

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) ListFiles

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) ListFiles(params ListFilesParameters) ([]File, *ListFilesParameters, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ListFiles retrieves all files according to the parameters given. Uses cursor based pagination.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) ListFilesContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) ListFilesContext(ctx context.Context, params ListFilesParameters) ([]File, *ListFilesParameters, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ListFilesContext retrieves all files according to the parameters given with a custom context. Uses cursor based pagination.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) ListPins

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) ListPins(channel string) ([]Item, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ListPins returns information about the items a user reacted to.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) ListPinsContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) ListPinsContext(ctx context.Context, channel string) ([]Item, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ListPinsContext returns information about the items a user reacted to with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) ListReactions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) ListReactions(params ListReactionsParameters) ([]ReactedItem, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ListReactions returns information about the items a user reacted to.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) ListReactionsContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) ListReactionsContext(ctx context.Context, params ListReactionsParameters) ([]ReactedItem, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ListReactionsContext returns information about the items a user reacted to with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) ListReminders

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) ListReminders() ([]*Reminder, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ListReminders lists all the reminders created by or for the authenticated user

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    See https://api.slack.com/methods/reminders.list

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) ListStars

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) ListStars(params StarsParameters) ([]Item, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ListStars returns information about the stars a user added

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) ListStarsContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) ListStarsContext(ctx context.Context, params StarsParameters) ([]Item, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ListStarsContext returns information about the stars a user added with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) ListStarsPaginated

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) ListStarsPaginated(options ...ListStarsOption) StarredItemPagination

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ListStarsPaginated fetches users in a paginated fashion, see ListStarsPaginationContext for usage.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) MarkConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) MarkConversation(channel, ts string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            MarkConversation sets the read mark of a conversation to a specific point

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) MarkConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) MarkConversationContext(ctx context.Context, channel, ts string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              MarkConversationContext sets the read mark of a conversation to a specific point with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) MarkIMChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) MarkIMChannel(channel, ts string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                MarkIMChannel sets the read mark of a direct message channel to a specific point

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) MarkIMChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) MarkIMChannelContext(ctx context.Context, channel, ts string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  MarkIMChannelContext sets the read mark of a direct message channel to a specific point with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) MuteChat

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) MuteChat(channelID string) (*UserPrefsCarrier, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) NewRTM

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) NewRTM(options ...RTMOption) *RTM

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewRTM returns a RTM, which provides a fully managed connection to Slack's websocket-based Real-Time Messaging protocol.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) OpenConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) OpenConversation(params *OpenConversationParameters) (*Channel, bool, bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      OpenConversation opens or resumes a direct message or multi-person direct message

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) OpenConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) OpenConversationContext(ctx context.Context, params *OpenConversationParameters) (*Channel, bool, bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        OpenConversationContext opens or resumes a direct message or multi-person direct message with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) OpenDialog

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) OpenDialog(triggerID string, dialog Dialog) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          OpenDialog opens a dialog window where the triggerID originated from. EXPERIMENTAL: dialog functionality is currently experimental, api is not considered stable.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) OpenDialogContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) OpenDialogContext(ctx context.Context, triggerID string, dialog Dialog) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            OpenDialogContext opens a dialog window where the triggerId originated from with a custom context EXPERIMENTAL: dialog functionality is currently experimental, api is not considered stable.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) OpenGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) OpenGroup(group string) (bool, bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              OpenGroup opens a private group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) OpenGroupContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) OpenGroupContext(ctx context.Context, group string) (bool, bool, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OpenGroupContext opens a private group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) OpenIMChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) OpenIMChannel(user string) (bool, bool, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  OpenIMChannel opens a direct message channel to the user provided as argument Returns some status and the channel ID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) OpenIMChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) OpenIMChannelContext(ctx context.Context, user string) (bool, bool, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    OpenIMChannelContext opens a direct message channel to the user provided as argument with a custom context Returns some status and the channel ID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) OpenView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) OpenView(triggerID string, view ModalViewRequest) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      OpenView opens a view for a user.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) OpenViewContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) OpenViewContext(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ctx context.Context,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	triggerID string,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	view ModalViewRequest,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        OpenViewContext opens a view for a user with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) PostEphemeral

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) PostEphemeral(channelID, userID string, options ...MsgOption) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          PostEphemeral sends an ephemeral message to a user in a channel. Message is escaped by default according to https://api.slack.com/docs/formatting Use http://davestevens.github.io/slack-message-builder/ to help crafting your message.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) PostEphemeralContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) PostEphemeralContext(ctx context.Context, channelID, userID string, options ...MsgOption) (timestamp string, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            PostEphemeralContext sends an ephemeal message to a user in a channel with a custom context For more details, see PostEphemeral documentation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) PostMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) PostMessage(channelID string, options ...MsgOption) (string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              PostMessage sends a message to a channel. Message is escaped by default according to https://api.slack.com/docs/formatting Use http://davestevens.github.io/slack-message-builder/ to help crafting your message.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) PostMessageContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) PostMessageContext(ctx context.Context, channelID string, options ...MsgOption) (string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                PostMessageContext sends a message to a channel with a custom context For more details, see PostMessage documentation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) PublishView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) PublishView(userID string, view HomeTabViewRequest, hash string) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  PublishView publishes a static view for a user.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) PublishViewContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) PublishViewContext(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ctx context.Context,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	userID string,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	view HomeTabViewRequest,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	hash string,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    PublishViewContext publishes a static view for a user with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) PushView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) PushView(triggerID string, view ModalViewRequest) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      PushView pushes a view onto the stack of a root view.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) PushViewContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) PushViewContext(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ctx context.Context,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	triggerID string,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	view ModalViewRequest,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        PublishViewContext pushes a view onto the stack of a root view with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) RemovePin

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) RemovePin(channel string, item ItemRef) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          RemovePin un-pins an item from a channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) RemovePinContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) RemovePinContext(ctx context.Context, channel string, item ItemRef) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            RemovePinContext un-pins an item from a channel with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) RemoveReaction

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) RemoveReaction(name string, item ItemRef) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              RemoveReaction removes a reaction emoji from a message, file or file comment.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) RemoveReactionContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) RemoveReactionContext(ctx context.Context, name string, item ItemRef) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                RemoveReactionContext removes a reaction emoji from a message, file or file comment with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) RemoveStar

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) RemoveStar(channel string, item ItemRef) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  RemoveStar removes a starred item from a channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) RemoveStarContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) RemoveStarContext(ctx context.Context, channel string, item ItemRef) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    RemoveStarContext removes a starred item from a channel with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) RenameChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) RenameChannel(channelID, name string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      RenameChannel renames a given channel see https://api.slack.com/methods/channels.rename

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) RenameChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) RenameChannelContext(ctx context.Context, channelID, name string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        RenameChannelContext renames a given channel with a custom context see https://api.slack.com/methods/channels.rename

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) RenameConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) RenameConversation(channelID, channelName string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          RenameConversation renames a conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) RenameConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) RenameConversationContext(ctx context.Context, channelID, channelName string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            RenameConversationContext renames a conversation with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) RenameGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) RenameGroup(group, name string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              RenameGroup renames a group XXX: They return a channel, not a group. What is this crap? :( Inconsistent api it seems.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) RenameGroupContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) RenameGroupContext(ctx context.Context, group, name string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                RenameGroupContext renames a group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) RevokeFilePublicURL

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) RevokeFilePublicURL(fileID string) (*File, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  RevokeFilePublicURL disables public/external sharing for a file

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) RevokeFilePublicURLContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) RevokeFilePublicURLContext(ctx context.Context, fileID string) (*File, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    RevokeFilePublicURLContext disables public/external sharing for a file with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) ScheduleMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) ScheduleMessage(channelID, postAt string, options ...MsgOption) (string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ScheduleMessage sends a message to a channel. Message is escaped by default according to https://api.slack.com/docs/formatting Use http://davestevens.github.io/slack-message-builder/ to help crafting your message.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) Search

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) Search(query string, params SearchParameters) (*SearchMessages, *SearchFiles, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SearchContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SearchContext(ctx context.Context, query string, params SearchParameters) (*SearchMessages, *SearchFiles, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SearchFiles

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SearchFiles(query string, params SearchParameters) (*SearchFiles, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SearchFilesContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SearchFilesContext(ctx context.Context, query string, params SearchParameters) (*SearchFiles, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SearchMessages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SearchMessages(query string, params SearchParameters) (*SearchMessages, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SearchMessagesContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SearchMessagesContext(ctx context.Context, query string, params SearchParameters) (*SearchMessages, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SendAuthRevoke

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SendAuthRevoke(token string) (*AuthRevokeResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SendAuthRevoke will send a revocation for our token

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) SendAuthRevokeContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) SendAuthRevokeContext(ctx context.Context, token string) (*AuthRevokeResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SendAuthRevokeContext will send a revocation request for our token to api.revoke with context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) SendMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) SendMessage(channel string, options ...MsgOption) (string, string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SendMessage more flexible method for configuring messages.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) SendMessageContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) SendMessageContext(ctx context.Context, channelID string, options ...MsgOption) (_channel string, _timestamp string, _text string, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SendMessageContext more flexible method for configuring messages with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) SendSSOBindingEmail

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) SendSSOBindingEmail(teamName, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SendSSOBindingEmail sends an SSO binding email to the specified user

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) SendSSOBindingEmailContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) SendSSOBindingEmailContext(ctx context.Context, teamName, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SendSSOBindingEmailContext sends an SSO binding email to the specified user with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) SetChannelPurpose

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) SetChannelPurpose(channelID, purpose string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetChannelPurpose sets the channel purpose and returns the purpose that was successfully set see https://api.slack.com/methods/channels.setPurpose

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) SetChannelPurposeContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) SetChannelPurposeContext(ctx context.Context, channelID, purpose string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetChannelPurposeContext sets the channel purpose and returns the purpose that was successfully set with a custom context see https://api.slack.com/methods/channels.setPurpose

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SetChannelReadMark

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SetChannelReadMark(channelID, ts string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetChannelReadMark sets the read mark of a given channel to a specific point Clients should try to avoid making this call too often. When needing to mark a read position, a client should set a timer before making the call. In this way, any further updates needed during the timeout will not generate extra calls (just one per channel). This is useful for when reading scroll-back history, or following a busy live channel. A timeout of 5 seconds is a good starting point. Be sure to flush these calls on shutdown/logout. see https://api.slack.com/methods/channels.mark

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) SetChannelReadMarkContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) SetChannelReadMarkContext(ctx context.Context, channelID, ts string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetChannelReadMarkContext sets the read mark of a given channel to a specific point with a custom context For more details see SetChannelReadMark documentation see https://api.slack.com/methods/channels.mark

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) SetChannelTopic

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) SetChannelTopic(channelID, topic string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetChannelTopic sets the channel topic and returns the topic that was successfully set see https://api.slack.com/methods/channels.setTopic

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) SetChannelTopicContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) SetChannelTopicContext(ctx context.Context, channelID, topic string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetChannelTopicContext sets the channel topic and returns the topic that was successfully set with a custom context see https://api.slack.com/methods/channels.setTopic

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) SetGroupPurpose

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) SetGroupPurpose(group, purpose string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetGroupPurpose sets the group purpose

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) SetGroupPurposeContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) SetGroupPurposeContext(ctx context.Context, group, purpose string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetGroupPurposeContext sets the group purpose with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) SetGroupReadMark

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) SetGroupReadMark(group, ts string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetGroupReadMark sets the read mark on a private group Clients should try to avoid making this call too often. When needing to mark a read position, a client should set a timer before making the call. In this way, any further updates needed during the timeout will not generate extra calls (just one per channel). This is useful for when reading scroll-back history, or following a busy live channel. A timeout of 5 seconds is a good starting point. Be sure to flush these calls on shutdown/logout.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) SetGroupReadMarkContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) SetGroupReadMarkContext(ctx context.Context, group, ts string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetGroupReadMarkContext sets the read mark on a private group with a custom context For more details see SetGroupReadMark

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SetGroupTopic

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SetGroupTopic(group, topic string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetGroupTopic sets the group topic

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) SetGroupTopicContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) SetGroupTopicContext(ctx context.Context, group, topic string) (string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetGroupTopicContext sets the group topic with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) SetPurposeOfConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) SetPurposeOfConversation(channelID, purpose string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetPurposeOfConversation sets the purpose for a conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) SetPurposeOfConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) SetPurposeOfConversationContext(ctx context.Context, channelID, purpose string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetPurposeOfConversationContext sets the purpose for a conversation with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) SetRegular

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) SetRegular(teamName, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetRegular enables the specified user

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) SetRegularContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) SetRegularContext(ctx context.Context, teamName, user string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetRegularContext enables the specified user with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) SetRestricted

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) SetRestricted(teamName, uid string, channelIds ...string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetRestricted converts a user into a restricted account

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) SetRestrictedContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) SetRestrictedContext(ctx context.Context, teamName, uid string, channelIds ...string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetRestrictedContext converts a user into a restricted account with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SetSnooze

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SetSnooze(minutes int) (*DNDStatus, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetSnooze adjusts the snooze duration for a user's Do Not Disturb settings. If a snooze session is not already active for the user, invoking this method will begin one for the specified duration.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) SetSnoozeContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) SetSnoozeContext(ctx context.Context, minutes int) (*DNDStatus, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetSnoozeContext adjusts the snooze duration for a user's Do Not Disturb settings with a custom context. For more information see the SetSnooze docs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) SetTopicOfConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) SetTopicOfConversation(channelID, topic string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetTopicOfConversation sets the topic for a conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) SetTopicOfConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) SetTopicOfConversationContext(ctx context.Context, channelID, topic string) (*Channel, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetTopicOfConversationContext sets the topic for a conversation with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) SetUltraRestricted

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) SetUltraRestricted(teamName, uid, channel string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetUltraRestricted converts a user into a single-channel guest

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) SetUltraRestrictedContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) SetUltraRestrictedContext(ctx context.Context, teamName, uid, channel string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetUltraRestrictedContext converts a user into a single-channel guest with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) SetUserAsActive

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) SetUserAsActive() error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetUserAsActive marks the currently authenticated user as active

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) SetUserAsActiveContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) SetUserAsActiveContext(ctx context.Context) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetUserAsActiveContext marks the currently authenticated user as active with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SetUserCustomStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SetUserCustomStatus(statusText, statusEmoji string, statusExpiration int64) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetUserCustomStatus will set a custom status and emoji for the currently authenticated user. If statusEmoji is "" and statusText is not, the Slack API will automatically set it to ":speech_balloon:". Otherwise, if both are "" the Slack API will unset the custom status/emoji. If statusExpiration is set to 0 the status will not expire.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) SetUserCustomStatusContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) SetUserCustomStatusContext(ctx context.Context, statusText, statusEmoji string, statusExpiration int64) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetUserCustomStatusContext will set a custom status and emoji for the currently authenticated user with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          For more information see SetUserCustomStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) SetUserCustomStatusContextWithUser

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) SetUserCustomStatusContextWithUser(ctx context.Context, user, statusText, statusEmoji string, statusExpiration int64) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SetUserCustomStatusContextWithUser will set a custom status and emoji for the provided user with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            For more information see SetUserCustomStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) SetUserCustomStatusWithUser

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) SetUserCustomStatusWithUser(user, statusText, statusEmoji string, statusExpiration int64) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SetUserCustomStatusWithUser will set a custom status and emoji for the provided user.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              For more information see SetUserCustomStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) SetUserPhoto

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) SetUserPhoto(image string, params UserSetPhotoParams) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SetUserPhoto changes the currently authenticated user's profile image

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) SetUserPhotoContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) SetUserPhotoContext(ctx context.Context, image string, params UserSetPhotoParams) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SetUserPhotoContext changes the currently authenticated user's profile image using a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) SetUserPresence

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) SetUserPresence(presence string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SetUserPresence changes the currently authenticated user presence

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) SetUserPresenceContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) SetUserPresenceContext(ctx context.Context, presence string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SetUserPresenceContext changes the currently authenticated user presence with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) SetUserRealName

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) SetUserRealName(realName string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SetUserRealName changes the currently authenticated user's realName

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        For more information see SetUserRealNameContextWithUser

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) SetUserRealNameContextWithUser

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) SetUserRealNameContextWithUser(ctx context.Context, user, realName string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SetUserRealNameContextWithUser will set a real name for the provided user with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) ShareFilePublicURL

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) ShareFilePublicURL(fileID string) (*File, []Comment, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ShareFilePublicURL enabled public/external sharing for a file

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) ShareFilePublicURLContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) ShareFilePublicURLContext(ctx context.Context, fileID string) (*File, []Comment, *Paging, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ShareFilePublicURLContext enabled public/external sharing for a file with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) StartRTM

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) StartRTM() (info *Info, websocketURL string, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                StartRTM calls the "rtm.start" endpoint and returns the provided URL and the full Info block.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                To have a fully managed Websocket connection, use `NewRTM`, and call `ManageConnection()` on it.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) StartRTMContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) StartRTMContext(ctx context.Context) (info *Info, websocketURL string, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  StartRTMContext calls the "rtm.start" endpoint and returns the provided URL and the full Info block with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  To have a fully managed Websocket connection, use `NewRTM`, and call `ManageConnection()` on it.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) StartSocketModeContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) StartSocketModeContext(ctx context.Context) (info *SocketModeConnection, websocketURL string, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    StartSocketModeContext calls the "apps.connections.open" endpoint and returns the provided URL and the full Info block with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    To have a fully managed Socket Mode connection, use `socketmode.New()`, and call `Run()` on it.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) UnArchiveConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) UnArchiveConversation(channelID string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      UnArchiveConversation reverses conversation archival

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) UnArchiveConversationContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) UnArchiveConversationContext(ctx context.Context, channelID string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        UnArchiveConversationContext reverses conversation archival with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) UnMuteChat

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) UnMuteChat(channelID string) (*UserPrefsCarrier, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) UnarchiveChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) UnarchiveChannel(channelID string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UnarchiveChannel unarchives the given channel see https://api.slack.com/methods/channels.unarchive

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) UnarchiveChannelContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) UnarchiveChannelContext(ctx context.Context, channelID string) (err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            UnarchiveChannelContext unarchives the given channel with a custom context see https://api.slack.com/methods/channels.unarchive

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) UnarchiveGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) UnarchiveGroup(group string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              UnarchiveGroup unarchives a private group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) UnarchiveGroupContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) UnarchiveGroupContext(ctx context.Context, group string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                UnarchiveGroupContext unarchives a private group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) UnfurlMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) UnfurlMessage(channelID, timestamp string, unfurls map[string]Attachment, options ...MsgOption) (string, string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UnfurlMessage unfurls a message in a channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) UnfurlMessageWithAuthURL

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) UnfurlMessageWithAuthURL(channelID, timestamp string, userAuthURL string, options ...MsgOption) (string, string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    UnfurlMessageWithAuthURL sends an unfurl request containing an authentication URL. For more details see: https://api.slack.com/reference/messaging/link-unfurling#authenticated_unfurls

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) UnfurlMessageWithAuthURLContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) UnfurlMessageWithAuthURLContext(ctx context.Context, channelID, timestamp string, userAuthURL string, options ...MsgOption) (string, string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      UnfurlMessageWithAuthURLContext sends an unfurl request containing an authentication URL. For more details see: https://api.slack.com/reference/messaging/link-unfurling#authenticated_unfurls

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) UninstallApp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) UninstallApp(clientID, clientSecret string) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) UnsetUserCustomStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) UnsetUserCustomStatus() error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        UnsetUserCustomStatus removes the custom status message for the currently authenticated user. This is a convenience method that wraps (*Client).SetUserCustomStatus().

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) UnsetUserCustomStatusContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) UnsetUserCustomStatusContext(ctx context.Context) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UnsetUserCustomStatusContext removes the custom status message for the currently authenticated user with a custom context. This is a convenience method that wraps (*Client).SetUserCustomStatus().

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) UpdateMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) UpdateMessage(channelID, timestamp string, options ...MsgOption) (string, string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            UpdateMessage updates a message in a channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) UpdateMessageContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) UpdateMessageContext(ctx context.Context, channelID, timestamp string, options ...MsgOption) (string, string, string, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              UpdateMessageContext updates a message in a channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*Client) UpdateUserGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (api *Client) UpdateUserGroup(userGroup UserGroup) (UserGroup, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                UpdateUserGroup will update an existing user group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*Client) UpdateUserGroupContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (api *Client) UpdateUserGroupContext(ctx context.Context, userGroup UserGroup) (UserGroup, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UpdateUserGroupContext will update an existing user group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*Client) UpdateUserGroupMembers

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (api *Client) UpdateUserGroupMembers(userGroup string, members string) (UserGroup, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    UpdateUserGroupMembers will update the members of an existing user group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*Client) UpdateUserGroupMembersContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (api *Client) UpdateUserGroupMembersContext(ctx context.Context, userGroup string, members string) (UserGroup, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      UpdateUserGroupMembersContext will update the members of an existing user group with a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*Client) UpdateView

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (api *Client) UpdateView(view ModalViewRequest, externalID, hash, viewID string) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        UpdateView updates an existing view.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*Client) UpdateViewContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (api *Client) UpdateViewContext(
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	ctx context.Context,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	view ModalViewRequest,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	externalID, hash,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	viewID string,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ) (*ViewResponse, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UpdateViewContext updates an existing view with a custom context.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*Client) UploadFile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (api *Client) UploadFile(params FileUploadParameters) (file *File, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            UploadFile uploads a file

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*Client) UploadFileContext

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (api *Client) UploadFileContext(ctx context.Context, params FileUploadParameters) (file *File, err error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              UploadFileContext uploads a file and setting a custom context

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type CommandsChangedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type CommandsChangedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Type           string `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	EventTimestamp string `json:"event_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                CommandsChangedEvent represents the commands changed event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type Comment

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type Comment struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ID        string   `json:"id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Created   JSONTime `json:"created,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Timestamp JSONTime `json:"timestamp,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	User      string   `json:"user,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Comment   string   `json:"comment,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Comment contains all the information relative to a comment

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type ConfirmationBlockObject

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type ConfirmationBlockObject struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Title   *TextBlockObject `json:"title"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Text    *TextBlockObject `json:"text"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Confirm *TextBlockObject `json:"confirm"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Deny    *TextBlockObject `json:"deny"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Style   Style            `json:"style,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ConfirmationBlockObject defines a dialog that provides a confirmation step to any interactive element. This dialog will ask the user to confirm their action by offering a confirm and deny buttons.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    More Information: https://api.slack.com/reference/messaging/composition-objects#confirm

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewConfirmationBlockObject

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewConfirmationBlockObject(title, text, confirm, deny *TextBlockObject) *ConfirmationBlockObject

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NewConfirmationBlockObject returns an instance of a new Confirmation Block Object

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*ConfirmationBlockObject) WithStyle

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (s *ConfirmationBlockObject) WithStyle(style Style)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        WithStyle add styling to confirmation object

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type ConfirmationField

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type ConfirmationField struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Title       string `json:"title,omitempty"`        // Optional.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Text        string `json:"text"`                   // Required.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	OkText      string `json:"ok_text,omitempty"`      // Optional. Defaults to "Okay"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	DismissText string `json:"dismiss_text,omitempty"` // Optional. Defaults to "Cancel"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ConfirmationField are used to ask users to confirm actions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ConnectedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ConnectedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ConnectionCount int // 1 = first time, 2 = second time
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Info            *Info
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ConnectedEvent is used for when we connect to Slack

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ConnectingEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ConnectingEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Attempt         int // 1 = first attempt, 2 = second attempt
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	ConnectionCount int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ConnectingEvent contains information about our connection attempt

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type ConnectionErrorEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type ConnectionErrorEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Attempt  int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Backoff  time.Duration // how long we'll wait before the next attempt
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ErrorObj error
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ConnectionErrorEvent contains information about a connection error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*ConnectionErrorEvent) Error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *ConnectionErrorEvent) Error() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type Container

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type Container struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Type         string      `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ViewID       string      `json:"view_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	MessageTs    string      `json:"message_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	AttachmentID json.Number `json:"attachment_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ChannelID    string      `json:"channel_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	IsEphemeral  bool        `json:"is_ephemeral"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	IsAppUnfurl  bool        `json:"is_app_unfurl"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ContextBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ContextBlock struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Type            MessageBlockType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	BlockID         string           `json:"block_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ContextElements ContextElements  `json:"elements"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ContextBlock defines data that is used to display message context, which can include both images and text.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  More Information: https://api.slack.com/reference/messaging/blocks#actions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewContextBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewContextBlock(blockID string, mixedElements ...MixedElement) *ContextBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewContextBlock returns a new instance of a context block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ContextBlock) BlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (s ContextBlock) BlockType() MessageBlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      BlockType returns the type of the block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ContextElements

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ContextElements struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Elements []MixedElement
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*ContextElements) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (e *ContextElements) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        MarshalJSON implements the Marshaller interface for ContextElements so that any JSON marshalling is delegated and proper type determination can be made before marshal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*ContextElements) UnmarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (e *ContextElements) UnmarshalJSON(data []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UnmarshalJSON implements the Unmarshaller interface for ContextElements, so that any JSON unmarshalling is delegated and proper type determination can be made before unmarshal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type Conversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type Conversation struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ID                 string   `json:"id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Created            JSONTime `json:"created"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsOpen             bool     `json:"is_open"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	LastRead           string   `json:"last_read,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Latest             *Message `json:"latest,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	UnreadCount        int      `json:"unread_count,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	UnreadCountDisplay int      `json:"unread_count_display,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsGroup            bool     `json:"is_group"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsShared           bool     `json:"is_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsIM               bool     `json:"is_im"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsExtShared        bool     `json:"is_ext_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsOrgShared        bool     `json:"is_org_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsPendingExtShared bool     `json:"is_pending_ext_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsPrivate          bool     `json:"is_private"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsMpIM             bool     `json:"is_mpim"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Unlinked           int      `json:"unlinked"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	NameNormalized     string   `json:"name_normalized"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	NumMembers         int      `json:"num_members"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Priority           float64  `json:"priority"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	User               string   `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Conversation is the foundation for IM and BaseGroupConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type CtxChannel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type CtxChannel struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	ID                 string `json:"id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Name               string `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	IsExtShared        bool   `json:"is_ext_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	IsMPIM             bool   `json:"is_mpim"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	ISOrgShared        bool   `json:"is_org_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	IsPendingExtShared bool   `json:"is_pending_ext_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	IsPrivate          bool   `json:"is_private"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	IsShared           bool   `json:"is_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type CtxMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type CtxMessage struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	User      string `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Username  string `json:"username"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Text      string `json:"text"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Timestamp string `json:"ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Type      string `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DNDStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DNDStatus struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Enabled            bool `json:"dnd_enabled"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	NextStartTimestamp int  `json:"next_dnd_start_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	NextEndTimestamp   int  `json:"next_dnd_end_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	SnoozeInfo
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DNDUpdatedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DNDUpdatedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Type   string    `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	User   string    `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Status DNDStatus `json:"dnd_status"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              DNDUpdatedEvent represents the update event for Do Not Disturb

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DatePickerBlockElement

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DatePickerBlockElement struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Type        MessageElementType       `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ActionID    string                   `json:"action_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Placeholder *TextBlockObject         `json:"placeholder,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	InitialDate string                   `json:"initial_date,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Confirm     *ConfirmationBlockObject `json:"confirm,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                DatePickerBlockElement defines an element which lets users easily select a date from a calendar style UI. Date picker elements can be used inside of section and actions blocks.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                More Information: https://api.slack.com/reference/messaging/block-elements#datepicker

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewDatePickerBlockElement

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewDatePickerBlockElement(actionID string) *DatePickerBlockElement

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NewDatePickerBlockElement returns an instance of a date picker element

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (DatePickerBlockElement) ElementType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ElementType returns the type of the Element

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Debug

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Debug interface {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Debug() bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Debugf print a formatted debug line.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Debugf(format string, v ...interface{})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// Debugln print a debug line.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Debugln(v ...interface{})
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type DeleteScheduledMessageParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type DeleteScheduledMessageParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Channel            string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	ScheduledMessageID string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	AsUser             bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type DesktopNotificationEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type DesktopNotificationEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Type            string `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Title           string `json:"title"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Subtitle        string `json:"subtitle"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Message         string `json:"msg"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Timestamp       string `json:"ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Content         string `json:"content"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Channel         string `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	LaunchURI       string `json:"launchUri"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	AvatarImage     string `json:"avatarImage"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	SsbFilename     string `json:"ssbFilename"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	ImageURI        string `json:"imageUri"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	IsShared        bool   `json:"is_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	IsChannelInvite bool   `json:"is_channel_invite"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	EventTimestamp  string `json:"event_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      DesktopNotificationEvent represents the update event for Desktop Notification.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Dialog

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Dialog struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	TriggerID      string          `json:"trigger_id"`      // Required
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	CallbackID     string          `json:"callback_id"`     // Required
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	State          string          `json:"state,omitempty"` // Optional
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Title          string          `json:"title"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	SubmitLabel    string          `json:"submit_label,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	NotifyOnCancel bool            `json:"notify_on_cancel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Elements       []DialogElement `json:"elements"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dialog as in Slack dialogs https://api.slack.com/dialogs#option_element_attributes#top-level_dialog_attributes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        {trigger_xyz callback_xyz  Dialog_title Send false []}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type DialogCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type DialogCallback InteractionCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          DialogCallback DEPRECATED use InteractionCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type DialogElement

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type DialogElement interface{}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            DialogElement abstract type for dialogs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DialogInput

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DialogInput struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Type        InputType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Label       string    `json:"label"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Name        string    `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Placeholder string    `json:"placeholder"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Optional    bool      `json:"optional"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Hint        string    `json:"hint"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              DialogInput for dialogs input type text or menu

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DialogInputSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DialogInputSelect struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	DialogInput
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Value           string               `json:"value,omitempty"`            //Optional.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	DataSource      SelectDataSource     `json:"data_source,omitempty"`      //Optional. Allowed values: "users", "channels", "conversations", "external".
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	SelectedOptions []DialogSelectOption `json:"selected_options,omitempty"` //Optional. May hold at most one element, for use with "external" only.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Options         []DialogSelectOption `json:"options,omitempty"`          //One of options or option_groups is required.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	OptionGroups    []DialogOptionGroup  `json:"option_groups,omitempty"`    //Provide up to 100 options.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	MinQueryLength  int                  `json:"min_query_length,omitempty"` //Optional. minimum characters before query is sent.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Hint            string               `json:"hint,omitempty"`             //Optional. Additional hint text.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                DialogInputSelect dialog support for select boxes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewChannelsSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewChannelsSelect(name, label string) *DialogInputSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NewChannelsSelect returns a `Channels` select

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewConversationsSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewConversationsSelect(name, label string) *DialogInputSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewConversationsSelect returns a `Conversations` select

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewGroupedSelectDialogInput

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewGroupedSelectDialogInput(name, label string, options []DialogOptionGroup) *DialogInputSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NewGroupedSelectDialogInput creates grouped options select input for Dialogs.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewStaticSelectDialogInput

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewStaticSelectDialogInput(name, label string, options []DialogSelectOption) *DialogInputSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewStaticSelectDialogInput constructor for a `static` datasource menu input

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewUsersSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewUsersSelect(name, label string) *DialogInputSelect

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewUsersSelect returns a `Users` select

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type DialogInputValidationError

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type DialogInputValidationError struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Name  string `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Error string `json:"error"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            DialogInputValidationError is an error when user inputs incorrect value to form from within a dialog

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DialogInputValidationErrors

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DialogInputValidationErrors struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Errors []DialogInputValidationError `json:"errors"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              DialogInputValidationErrors lists the name of field and that error messages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DialogOpenResponse

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DialogOpenResponse struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	SlackResponse
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	DialogResponseMetadata DialogResponseMetadata `json:"response_metadata"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                DialogOpenResponse response from `dialog.open`

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type DialogOptionGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type DialogOptionGroup struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Label   string               `json:"label"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Options []DialogSelectOption `json:"options"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  DialogOptionGroup is a collection of options for creating a segmented table

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewDialogOptionGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewDialogOptionGroup(label string, options ...DialogSelectOption) DialogOptionGroup

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewDialogOptionGroup creates a DialogOptionGroup from several select options

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type DialogResponseMetadata

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type DialogResponseMetadata struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Messages []string `json:"messages"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      DialogResponseMetadata lists the error messages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type DialogSelectOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type DialogSelectOption struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Label string `json:"label"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Value string `json:"value"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        DialogSelectOption is an option for the user to select from the menu

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type DialogSubmissionCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type DialogSubmissionCallback struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// NOTE: State is only used with the dialog_submission type.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// You should use InteractionCallback.BlockActionsState for block_actions type.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	State      string            `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Submission map[string]string `json:"submission"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          DialogSubmissionCallback is sent from Slack when a user submits a form from within a dialog

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type DialogTrigger

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type DialogTrigger struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	TriggerID string `json:"trigger_id"` //Required. Must respond within 3 seconds.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Dialog    Dialog `json:"dialog"`     //Required.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            DialogTrigger ...

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DisconnectedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type DisconnectedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Intentional bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Cause       error
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              DisconnectedEvent contains information about how we disconnected

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DividerBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type DividerBlock struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Type    MessageBlockType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	BlockID string           `json:"block_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                DividerBlock for displaying a divider line between blocks (similar to <hr> tag in html)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                More Information: https://api.slack.com/reference/messaging/blocks#divider

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewDividerBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewDividerBlock() *DividerBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NewDividerBlock returns a new instance of a divider block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (DividerBlock) BlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (s DividerBlock) BlockType() MessageBlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    BlockType returns the type of the block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Edited

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Edited struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	User      string `json:"user,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Timestamp string `json:"ts,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Edited indicates that a message has been edited.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type EmailDomainChangedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type EmailDomainChangedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Type           string `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	EventTimestamp string `json:"event_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	EmailDomain    string `json:"email_domain"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        EmailDomainChangedEvent represents the email domain changed event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type EmojiChangedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type EmojiChangedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Type           string   `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	SubType        string   `json:"subtype"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Name           string   `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Names          []string `json:"names"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Value          string   `json:"value"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	EventTimestamp string   `json:"event_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          EmojiChangedEvent represents the emoji changed event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type EnterpriseUser

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type EnterpriseUser struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ID             string   `json:"id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	EnterpriseID   string   `json:"enterprise_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	EnterpriseName string   `json:"enterprise_name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsAdmin        bool     `json:"is_admin"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsOwner        bool     `json:"is_owner"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Teams          []string `json:"teams"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            EnterpriseUser is present when a user is part of Slack Enterprise Grid https://api.slack.com/types/user#enterprise_grid_user_objects

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type Event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type Event struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Type string `json:"type,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Event contains the event type

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type EventAuthorization

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type EventAuthorization struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	EnterpriseID        string `json:"enterprise_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	TeamID              string `json:"team_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	UserID              string `json:"user_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	IsBot               bool   `json:"is_bot"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	IsEnterpriseInstall bool   `json:"is_enterprise_install"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type File

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type File struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ID        string   `json:"id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Created   JSONTime `json:"created"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Timestamp JSONTime `json:"timestamp"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Name              string `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Title             string `json:"title"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Mimetype          string `json:"mimetype"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ImageExifRotation int    `json:"image_exif_rotation"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Filetype          string `json:"filetype"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	PrettyType        string `json:"pretty_type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	User              string `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Mode         string `json:"mode"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Editable     bool   `json:"editable"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	IsExternal   bool   `json:"is_external"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ExternalType string `json:"external_type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Size int `json:"size"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	URL                string `json:"url"`          // Deprecated - never set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	URLDownload        string `json:"url_download"` // Deprecated - never set
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	URLPrivate         string `json:"url_private"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	URLPrivateDownload string `json:"url_private_download"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	OriginalH   int    `json:"original_h"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	OriginalW   int    `json:"original_w"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb64     string `json:"thumb_64"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb80     string `json:"thumb_80"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb160    string `json:"thumb_160"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb360    string `json:"thumb_360"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb360Gif string `json:"thumb_360_gif"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb360W   int    `json:"thumb_360_w"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb360H   int    `json:"thumb_360_h"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb480    string `json:"thumb_480"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb480W   int    `json:"thumb_480_w"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb480H   int    `json:"thumb_480_h"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb720    string `json:"thumb_720"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb720W   int    `json:"thumb_720_w"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb720H   int    `json:"thumb_720_h"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb960    string `json:"thumb_960"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb960W   int    `json:"thumb_960_w"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb960H   int    `json:"thumb_960_h"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb1024   string `json:"thumb_1024"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb1024W  int    `json:"thumb_1024_w"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Thumb1024H  int    `json:"thumb_1024_h"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Permalink       string `json:"permalink"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	PermalinkPublic string `json:"permalink_public"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	EditLink         string `json:"edit_link"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Preview          string `json:"preview"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	PreviewHighlight string `json:"preview_highlight"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Lines            int    `json:"lines"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	LinesMore        int    `json:"lines_more"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	IsPublic        bool     `json:"is_public"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	PublicURLShared bool     `json:"public_url_shared"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Channels        []string `json:"channels"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Groups          []string `json:"groups"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	IMs             []string `json:"ims"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	InitialComment  Comment  `json:"initial_comment"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	CommentsCount   int      `json:"comments_count"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	NumStars        int      `json:"num_stars"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	IsStarred       bool     `json:"is_starred"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Shares          Share    `json:"shares"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                File contains all the information for a file

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type FileBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type FileBlock struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Type       MessageBlockType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	BlockID    string           `json:"block_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ExternalID string           `json:"external_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Source     string           `json:"source"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  FileBlock defines data that is used to display a remote file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  More Information: https://api.slack.com/reference/block-kit/blocks#file

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewFileBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewFileBlock(blockID string, externalID string, source string) *FileBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewFileBlock returns a new instance of a file block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (FileBlock) BlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (s FileBlock) BlockType() MessageBlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      BlockType returns the type of the block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type FileChangeEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type FileChangeEvent fileActionEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        FileChangeEvent represents the File change event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type FileCommentAddedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type FileCommentAddedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Comment Comment `json:"comment"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          FileCommentAddedEvent represents the File comment added event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type FileCommentDeletedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type FileCommentDeletedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Comment string `json:"comment"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            FileCommentDeletedEvent represents the File comment deleted event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type FileCommentEditedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type FileCommentEditedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Comment Comment `json:"comment"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              FileCommentEditedEvent represents the File comment edited event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type FileCreatedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type FileCreatedEvent fileActionEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                FileCreatedEvent represents the File created event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type FileDeletedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type FileDeletedEvent fileActionEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  FileDeletedEvent represents the File deleted event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type FilePrivateEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type FilePrivateEvent fileActionEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    FilePrivateEvent represents the File private event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type FilePublicEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type FilePublicEvent fileActionEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      FilePublicEvent represents the File public event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type FileSharedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type FileSharedEvent fileActionEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        FileSharedEvent represents the File shared event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type FileUnsharedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type FileUnsharedEvent fileActionEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          FileUnsharedEvent represents the File unshared event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type FileUploadParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type FileUploadParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	File            string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Content         string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Reader          io.Reader
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Filetype        string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Filename        string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Title           string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	InitialComment  string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Channels        []string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ThreadTimestamp string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            FileUploadParameters contains all the parameters necessary (including the optional ones) for an UploadFile() request.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            There are three ways to upload a file. You can either set Content if file is small, set Reader if file is large, or provide a local file path in File to upload it from your filesystem.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Note that when using the Reader option, you *must* specify the Filename, otherwise the Slack API isn't happy.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type GetChannelsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type GetChannelsOption func(*ChannelPagination) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              GetChannelsOption option provided when getting channels.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func GetChannelsOptionExcludeArchived

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func GetChannelsOptionExcludeArchived() GetChannelsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                GetChannelsOptionExcludeArchived excludes archived channels from results.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func GetChannelsOptionExcludeMembers

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func GetChannelsOptionExcludeMembers() GetChannelsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  GetChannelsOptionExcludeMembers excludes the members collection from each channel.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationHistoryParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationHistoryParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ChannelID string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Cursor    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Inclusive bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Latest    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Limit     int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Oldest    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationHistoryResponse

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationHistoryResponse struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	SlackResponse
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	HasMore          bool   `json:"has_more"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	PinCount         int    `json:"pin_count"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Latest           string `json:"latest"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ResponseMetaData struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  		NextCursor string `json:"next_cursor"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	} `json:"response_metadata"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Messages []Message `json:"messages"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationRepliesParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationRepliesParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ChannelID string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Timestamp string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Cursor    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Inclusive bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Latest    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Limit     int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Oldest    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationsForUserParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationsForUserParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	UserID          string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Cursor          string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Types           []string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Limit           int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ExcludeArchived bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationsParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetConversationsParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Cursor          string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ExcludeArchived string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Limit           int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Types           []string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetFilesParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetFilesParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	User          string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Channel       string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	TimestampFrom JSONTime
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	TimestampTo   JSONTime
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Types         string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Count         int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Page          int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ShowHidden    bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    GetFilesParameters contains all the parameters necessary (including the optional ones) for a GetFiles() request

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewGetFilesParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func NewGetFilesParameters() GetFilesParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      NewGetFilesParameters provides an instance of GetFilesParameters with all the sane default values set

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type GetReactionsParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type GetReactionsParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Full bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        GetReactionsParameters is the inputs to get reactions to an item.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewGetReactionsParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewGetReactionsParameters() GetReactionsParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewGetReactionsParameters initializes the inputs to get reactions to an item.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type GetScheduledMessagesParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type GetScheduledMessagesParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Channel string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Cursor  string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Latest  string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Limit   int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Oldest  string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type GetUserGroupsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type GetUserGroupsOption func(*GetUserGroupsParams)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            GetUserGroupsOption options for the GetUserGroups method call.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func GetUserGroupsOptionIncludeCount

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func GetUserGroupsOptionIncludeCount(b bool) GetUserGroupsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              GetUserGroupsOptionIncludeCount include the number of users in each User Group (default: false)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func GetUserGroupsOptionIncludeDisabled

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func GetUserGroupsOptionIncludeDisabled(b bool) GetUserGroupsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                GetUserGroupsOptionIncludeDisabled include disabled User Groups (default: false)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func GetUserGroupsOptionIncludeUsers

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func GetUserGroupsOptionIncludeUsers(b bool) GetUserGroupsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  GetUserGroupsOptionIncludeUsers include the list of users for each User Group (default: false)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetUserGroupsParams

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GetUserGroupsParams struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	IncludeCount    bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	IncludeDisabled bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	IncludeUsers    bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    GetUserGroupsParams contains arguments for GetUserGroups method call

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GetUsersInConversationParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GetUsersInConversationParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	ChannelID string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Cursor    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Limit     int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GetUsersOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GetUsersOption func(*UserPagination)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      GetUsersOption options for the GetUsers method call.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func GetUsersOptionLimit

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func GetUsersOptionLimit(n int) GetUsersOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        GetUsersOptionLimit limit the number of users returned

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func GetUsersOptionPresence

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func GetUsersOptionPresence(n bool) GetUsersOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          GetUsersOptionPresence include user presence

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type Group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type Group struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	GroupConversation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	IsGroup bool `json:"is_group"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Group contains all the information for a group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type GroupArchiveEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type GroupArchiveEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              GroupArchiveEvent represents the Group archive event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type GroupCloseEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type GroupCloseEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                GroupCloseEvent represents the Group close event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type GroupConversation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type GroupConversation struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Conversation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Name       string   `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Creator    string   `json:"creator"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	IsArchived bool     `json:"is_archived"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Members    []string `json:"members"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Topic      Topic    `json:"topic"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Purpose    Purpose  `json:"purpose"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  GroupConversation is the foundation for Group and Channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GroupCreatedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GroupCreatedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Type    string             `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	User    string             `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Channel ChannelCreatedInfo `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    GroupCreatedEvent represents the Group created event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GroupHistoryChangedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type GroupHistoryChangedEvent ChannelHistoryChangedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      GroupHistoryChangedEvent represents the Group history changed event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type GroupJoinedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type GroupJoinedEvent ChannelJoinedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        GroupJoinedEvent represents the Group joined event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type GroupLeftEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type GroupLeftEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          GroupLeftEvent represents the Group left event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type GroupMarkedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type GroupMarkedEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            GroupMarkedEvent represents the Group marked event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type GroupOpenEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type GroupOpenEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              GroupOpenEvent represents the Group open event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type GroupRenameEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type GroupRenameEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Type      string          `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Group     GroupRenameInfo `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Timestamp string          `json:"ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                GroupRenameEvent represents the Group rename event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type GroupRenameInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type GroupRenameInfo struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ID      string `json:"id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Name    string `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Created string `json:"created"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  GroupRenameInfo represents the group info related to the renamed group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GroupUnarchiveEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type GroupUnarchiveEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    GroupUnarchiveEvent represents the Group unarchive event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type HeaderBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type HeaderBlock struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Type    MessageBlockType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Text    *TextBlockObject `json:"text,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	BlockID string           `json:"block_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      HeaderBlock defines a new block of type header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      More Information: https://api.slack.com/reference/messaging/blocks#header

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewHeaderBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewHeaderBlock(textObj *TextBlockObject, options ...HeaderBlockOption) *HeaderBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewHeaderBlock returns a new instance of a header block to be rendered

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (HeaderBlock) BlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (s HeaderBlock) BlockType() MessageBlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          BlockType returns the type of the block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type HeaderBlockOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type HeaderBlockOption func(*HeaderBlock)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            HeaderBlockOption allows configuration of options for a new header block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func HeaderBlockOptionBlockID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func HeaderBlockOptionBlockID(blockID string) HeaderBlockOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type HelloEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type HelloEvent struct{}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              HelloEvent represents the hello event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type History

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type History struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Latest   string    `json:"latest"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Messages []Message `json:"messages"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	HasMore  bool      `json:"has_more"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Unread   int       `json:"unread_count_display"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                History contains message history information needed to navigate a Channel / Group / DM history

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type HistoryParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type HistoryParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Latest    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Oldest    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Count     int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Inclusive bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Unreads   bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  HistoryParameters contains all the necessary information to help in the retrieval of history for Channels/Groups/DMs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewHistoryParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewHistoryParameters() HistoryParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewHistoryParameters provides an instance of HistoryParameters with all the sane default values set

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type HomeTabViewRequest

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type HomeTabViewRequest struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Type            ViewType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Blocks          Blocks   `json:"blocks"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	PrivateMetadata string   `json:"private_metadata,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	CallbackID      string   `json:"callback_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	ExternalID      string   `json:"external_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*HomeTabViewRequest) ViewType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (v *HomeTabViewRequest) ViewType() ViewType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type IDGenerator

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type IDGenerator interface {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Next() int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      IDGenerator provides an interface for generating integer ID values.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewSafeID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewSafeID(startID int) IDGenerator

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewSafeID returns a new instance of an IDGenerator which is safe for concurrent use by multiple goroutines.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type IM

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type IM struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Conversation
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	IsUserDeleted bool `json:"is_user_deleted"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          IM contains information related to the Direct Message channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Deprecated: channels.*, groups.* im.* and mpim.* methods will be deprecated in the next version. In Slack, these API are no longer available for newly Apps created after June 10th, 2020. Also, existing applications will not be able to use these APIs after February 24th, 2021.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          See also: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IMCloseEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type IMCloseEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            IMCloseEvent represents the IM close event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type IMCreatedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type IMCreatedEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Type    string             `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	User    string             `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	Channel ChannelCreatedInfo `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              IMCreatedEvent represents the IM created event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type IMHistoryChangedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type IMHistoryChangedEvent ChannelHistoryChangedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                IMHistoryChangedEvent represents the IM history changed event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type IMMarkedEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type IMMarkedEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  IMMarkedEvent represents the IM marked event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type IMMarkedHistoryChanged

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type IMMarkedHistoryChanged ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    IMMarkedHistoryChanged represents the IM marked history changed event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type IMOpenEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type IMOpenEvent ChannelInfoEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      IMOpenEvent represents the IM open event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Icon

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type Icon struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	IconURL   string `json:"icon_url,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	IconEmoji string `json:"icon_emoji,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Icon is used for bot messages

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type Icons

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type Icons struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Image36 string `json:"image_36,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Image48 string `json:"image_48,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Image72 string `json:"image_72,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Icons XXX: needs further investigation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ImageBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ImageBlock struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Type     MessageBlockType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	ImageURL string           `json:"image_url"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	AltText  string           `json:"alt_text"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	BlockID  string           `json:"block_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	Title    *TextBlockObject `json:"title,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ImageBlock defines data required to display an image as a block element

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            More Information: https://api.slack.com/reference/messaging/blocks#image

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewImageBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewImageBlock(imageURL, altText, blockID string, title *TextBlockObject) *ImageBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewImageBlock returns an instance of a new Image Block type

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (ImageBlock) BlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (s ImageBlock) BlockType() MessageBlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                BlockType returns the type of the block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ImageBlockElement

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type ImageBlockElement struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Type     MessageElementType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ImageURL string             `json:"image_url"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	AltText  string             `json:"alt_text"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ImageBlockElement An element to insert an image - this element can be used in section and context blocks only. If you want a block with only an image in it, you're looking for the image block.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  More Information: https://api.slack.com/reference/messaging/block-elements#image

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewImageBlockElement

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func NewImageBlockElement(imageURL, altText string) *ImageBlockElement

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    NewImageBlockElement returns a new instance of an image block element

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (ImageBlockElement) ElementType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (s ImageBlockElement) ElementType() MessageElementType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ElementType returns the type of the Element

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (ImageBlockElement) MixedElementType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (s ImageBlockElement) MixedElementType() MixedElementType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type IncomingEventError

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type IncomingEventError struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	ErrorObj error
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        IncomingEventError contains information about an unexpected error receiving a websocket event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*IncomingEventError) Error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (i *IncomingEventError) Error() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type Info

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type Info struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	URL  string       `json:"url,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	User *UserDetails `json:"self,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Team *Team        `json:"team,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Info contains various details about the authenticated user and team. It is returned by StartRTM or included in the "ConnectedEvent" RTM event.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (Info) GetBotByID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (info Info) GetBotByID(botID string) *Bot

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            GetBotByID is deprecated and returns nil

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (Info) GetChannelByID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (info Info) GetChannelByID(channelID string) *Channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              GetChannelByID is deprecated and returns nil

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (Info) GetGroupByID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (info Info) GetGroupByID(groupID string) *Group

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                GetGroupByID is deprecated and returns nil

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (Info) GetIMByID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (info Info) GetIMByID(imID string) *IM

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  GetIMByID is deprecated and returns nil

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (Info) GetUserByID

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (info Info) GetUserByID(userID string) *User

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    GetUserByID is deprecated and returns nil

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type InputBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type InputBlock struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Type           MessageBlockType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	BlockID        string           `json:"block_id,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Label          *TextBlockObject `json:"label"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Element        BlockElement     `json:"element"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Hint           *TextBlockObject `json:"hint,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Optional       bool             `json:"optional,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	DispatchAction bool             `json:"dispatch_action,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      InputBlock defines data that is used to display user input fields.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      More Information: https://api.slack.com/reference/block-kit/blocks#input

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewInputBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewInputBlock(blockID string, label *TextBlockObject, element BlockElement) *InputBlock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewInputBlock returns a new instance of an input block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (InputBlock) BlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (s InputBlock) BlockType() MessageBlockType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          BlockType returns the type of the block

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*InputBlock) UnmarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (b *InputBlock) UnmarshalJSON(data []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            UnmarshalJSON implements the Unmarshaller interface for InputBlock, so that any JSON unmarshalling is delegated and proper type determination can be made before unmarshal

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type InputType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type InputType string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              InputType is the type of the dialog input type

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              const (
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// InputTypeText textfield input
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	InputTypeText InputType = "text"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// InputTypeTextArea textarea input
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	InputTypeTextArea InputType = "textarea"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// InputTypeSelect select menus input
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	InputTypeSelect InputType = "select"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              )

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type InteractionCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type InteractionCallback struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Type            InteractionType `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Token           string          `json:"token"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	CallbackID      string          `json:"callback_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ResponseURL     string          `json:"response_url"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	TriggerID       string          `json:"trigger_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ActionTs        string          `json:"action_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Team            Team            `json:"team"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Channel         Channel         `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	User            User            `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	OriginalMessage Message         `json:"original_message"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Message         Message         `json:"message"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Name            string          `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Value           string          `json:"value"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	MessageTs       string          `json:"message_ts"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	AttachmentID    string          `json:"attachment_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ActionCallback  ActionCallbacks `json:"actions"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	View            View            `json:"view"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ActionID        string          `json:"action_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	APIAppID        string          `json:"api_app_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	BlockID         string          `json:"block_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Container       Container       `json:"container"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	DialogSubmissionCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ViewSubmissionCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ViewClosedCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// FIXME(kanata2): just workaround for backward-compatibility.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// See also https://github.com/slack-go/slack/issues/816
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	RawState json.RawMessage `json:"state,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// BlockActionState stands for the `state` field in block_actions type.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// NOTE: InteractionCallback.State has a role for the state of dialog_submission type,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// so we cannot use this field for backward-compatibility for now.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	BlockActionState *BlockActionStates `json:"-"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                InteractionCallback is sent from slack when a user interactions with a button or dialog.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*InteractionCallback) MarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ic *InteractionCallback) MarshalJSON() ([]byte, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*InteractionCallback) UnmarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (ic *InteractionCallback) UnmarshalJSON(b []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type InteractionType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type InteractionType string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  InteractionType type of interactions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type InvalidAuthEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type InvalidAuthEvent struct{}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    InvalidAuthEvent is used in case we can't even authenticate with the API

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Item

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Item struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Type      string   `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Channel   string   `json:"channel,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Message   *Message `json:"message,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	File      *File    `json:"file,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Comment   *Comment `json:"comment,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Timestamp string   `json:"ts,omitempty"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Item is any type of slack message - message, file, or file comment.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewChannelItem

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewChannelItem(ch string) Item

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewChannelItem turns a channel id into a typed channel struct.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewFileCommentItem

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewFileCommentItem(f *File, c *Comment) Item

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewFileCommentItem turns a file and comment into a typed file_comment struct.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func NewFileItem

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func NewFileItem(f *File) Item

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NewFileItem turns a file into a typed file struct.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewGroupItem

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewGroupItem(ch string) Item

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewGroupItem turns a channel id into a typed group struct.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewIMItem

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func NewIMItem(ch string) Item

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                NewIMItem turns a channel id into a typed im struct.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewMessageItem

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewMessageItem(ch string, m *Message) Item

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NewMessageItem turns a message on a channel into a typed message struct.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type ItemReaction

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type ItemReaction struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Name  string   `json:"name"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Count int      `json:"count"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Users []string `json:"users"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ItemReaction is the reactions that have happened on an item.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type ItemRef

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type ItemRef struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Channel   string `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Timestamp string `json:"timestamp"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	File      string `json:"file"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Comment   string `json:"file_comment"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ItemRef is a reference to a message of any type. One of FileID, CommentId, or the combination of ChannelId and Timestamp must be specified.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewRefToComment

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewRefToComment(comment string) ItemRef

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewRefToComment initializes a reference to a file comment.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewRefToFile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func NewRefToFile(file string) ItemRef

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          NewRefToFile initializes a reference to a file.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func NewRefToMessage

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func NewRefToMessage(channel, timestamp string) ItemRef

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NewRefToMessage initializes a reference to to a message.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type JSONTime

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type JSONTime int64

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              JSONTime exists so that we can have a String method converting the date

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (JSONTime) String

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (t JSONTime) String() string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                String converts the unix timestamp into a string

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (JSONTime) Time

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (t JSONTime) Time() time.Time

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Time returns a `time.Time` representation of this value.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*JSONTime) UnmarshalJSON

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (t *JSONTime) UnmarshalJSON(buf []byte) error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    UnmarshalJSON will unmarshal both string and int JSON values

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type LatencyReport

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type LatencyReport struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Value time.Duration
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      LatencyReport contains information about connection latency

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ListFilesParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type ListFilesParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Limit   int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	User    string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Channel string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Types   string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	Cursor  string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ListFilesParameters contains all the parameters necessary (including the optional ones) for a ListFiles() request

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type ListReactionsParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type ListReactionsParameters struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	User  string
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Count int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Page  int
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	Full  bool
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ListReactionsParameters is the inputs to find all reactions by a user.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func NewListReactionsParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func NewListReactionsParameters() ListReactionsParameters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            NewListReactionsParameters initializes the inputs to find all reactions performed by a user.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ListStarsOption

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ListStarsOption func(*StarredItemPagination)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ListStarsOption options for the GetUsers method call.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type Login

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type Login struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	UserID    string `json:"user_id"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Username  string `json:"username"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	DateFirst int    `json:"date_first"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	DateLast  int    `json:"date_last"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Count     int    `json:"count"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	IP        string `json:"ip"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	UserAgent string `json:"user_agent"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	ISP       string `json:"isp"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Country   string `json:"country"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Region    string `json:"region"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type LoginResponse

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type LoginResponse struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Logins []Login `json:"logins"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Paging `json:"paging"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	SlackResponse
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type ManualPresenceChangeEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type ManualPresenceChangeEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Type     string `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	Presence string `json:"presence"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ManualPresenceChangeEvent represents the manual presence change event

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type MemberJoinedChannelEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                type MemberJoinedChannelEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Type        string `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	User        string `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Channel     string `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	ChannelType string `json:"channel_type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Team        string `json:"team"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                	Inviter     string `json:"inviter"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  MemberJoinedChannelEvent, a user joined a public or private channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type MemberLeftChannelEvent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type MemberLeftChannelEvent struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Type        string `json:"type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	User        string `json:"user"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Channel     string `json:"channel"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ChannelType string `json:"channel_type"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	Team        string `json:"team"`
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    MemberLeftChannelEvent a user left a public or private channel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Message

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type Message struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	Msg
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	SubMessage      *Msg `json:"messag