Versions in this module Expand all Collapse all v0 v0.3.0 Jul 7, 2026 v0.2.0 Jun 26, 2026 v0.1.0 Jun 26, 2026 Changes in this version + var ErrNoTeamID = errors.New("teamID is empty") + var ErrNoToken = errors.New("token is empty") + var ErrNotFound = errors.New("not found") + var ErrNotOK = errors.New("server returned NOT OK") + var ErrPagination = errors.New("pagination fault") + var ErrParameterMissing = errors.New("required parameter missing") + func OptionHTTPClient(client httpClient) func(*Client) + type APIError struct + Endpoint string + Err string + Metadata ResponseMetadata + func (e *APIError) Error() string + type AccountTypes struct + IsAdmin []any + IsOwner []any + IsPrimaryOwner []any + type BaseRequest struct + Token string + func (r *BaseRequest) IsTokenSet() bool + func (r *BaseRequest) SetToken(token string) + type CallsApps struct + Audio []any + Video []any + type Channel struct + IsChannel bool + IsGeneral bool + IsMember bool + Locale string + NumMembers int + Properties *slack.Properties + type ChannelSnapshot struct + HasUnreads bool + HistoryInvalid fasttime.Time + ID string + LastRead fasttime.Time + Latest fasttime.Time + MentionCount int + type ChannelsMembershipRequest struct + AsAdmin bool + Channel string + Users []string + type ChannelsMembershipResponse struct + Channel string + NonMembers []string + type ChannelsPriority struct + type Client struct + func New(ctx context.Context, prov auth.Provider, opt ...Option) (*Client, error) + func NewWithClient(workspaceName string, teamID string, token string, cl *http.Client, ...) (*Client, error) + func NewWithInfo(info *slack.AuthTestResponse, prov auth.Provider, opt ...Option) (*Client, error) + func NewWithToken(ctx context.Context, token string, cookies []*http.Cookie) (*Client, error) + func (cl *Client) ChannelsMembership(ctx context.Context, req *ChannelsMembershipRequest) (*ChannelsMembershipResponse, error) + func (cl *Client) ClientCounts(ctx context.Context) (ClientCountsResponse, error) + func (cl *Client) ClientDMs(ctx context.Context) ([]ClientDM, error) + func (cl *Client) ClientUserBoot(ctx context.Context) (*ClientUserBootResponse, error) + func (cl *Client) Close() error + func (cl *Client) ConversationsGenericInfo(ctx context.Context, channelID ...string) ([]slack.Channel, error) + func (cl *Client) ConversationsView(ctx context.Context, channelID string) (ConversationsViewResponse, error) + func (cl *Client) GetConversationInfoContext(ctx context.Context, input *slack.GetConversationInfoInput) (*slack.Channel, error) + func (cl *Client) GetConversationsContext(ctx context.Context, _ *slack.GetConversationsParameters) (channels []slack.Channel, _ string, err error) + func (cl *Client) GetMutedChannels(ctx context.Context) (map[string]bool, error) + func (cl *Client) GetUsers(ctx context.Context, userID ...string) ([]UserInfo, error) + func (cl *Client) GetUsersInConversationContext(ctx context.Context, p *slack.GetUsersInConversationParameters) (ids []string, _ string, err error) + func (cl *Client) IMList(ctx context.Context) ([]IM, error) + func (cl *Client) LeaveConversation(ctx context.Context, channelID string) (bool, error) + func (cl *Client) ParseResponse(req any, r *http.Response) error + func (cl *Client) Post(ctx context.Context, path string, a any) (*http.Response, error) + func (cl *Client) PostForm(ctx context.Context, path string, form url.Values) (*http.Response, error) + func (cl *Client) PostFormRaw(ctx context.Context, url string, form url.Values) (*http.Response, error) + func (cl *Client) PostJSON(ctx context.Context, path string, req PostRequest) (*http.Response, error) + func (cl *Client) Raw() httpClient + func (cl *Client) SavedClearCompleted(ctx context.Context) error + func (cl *Client) SavedList(ctx context.Context, filter string, limit int, cursor string) (SavedListResponse, error) + func (cl *Client) SavedUpdate(ctx context.Context, itemType, itemID, ts, mark string, dateDue int64) error + func (cl *Client) SearchChannels(ctx context.Context, query string) ([]slack.Channel, error) + func (cl *Client) UsersInfo(ctx context.Context, req *UsersInfoRequest) (*UserInfoResponse, error) + func (cl *Client) UsersList(ctx context.Context, channelIDs ...string) ([]User, error) + func (cl *Client) UsersSearch(ctx context.Context, query string, count int) ([]slack.User, error) + type ClientCountsResponse struct + Channels []ChannelSnapshot + IMs []ChannelSnapshot + MPIMs []ChannelSnapshot + type ClientDM struct + Channel IM + ID string + Latest fasttime.Time + type ClientUserBootResponse struct + AcceptTosURL any + AccountTypes AccountTypes + AppCommandsCacheTs fasttime.Time + AuthMinLastFetched int64 + BuildVersionEnabled bool + CacheTsVersion string + CacheVersion string + CanAccessClientV2 bool + Channels []UserBootChannel + ChannelsPriority ChannelsPriority + ClientMinVersion int64 + DND DND + DefaultWorkspace string + EmojiCacheTs fasttime.Time + IMs []IM + IsEurope bool + IsOpen []string + Links Links + MobileAppRequiresUpgrade bool + NonThreadableChannels []any + Prefs map[string]any + ReadOnlyChannels []string + Self Self + ShouldReload bool + SlackRoute string + Starred []any + Subteams Subteams + Team Team + ThreadOnlyChannels []any + TranslationsCacheTs fasttime.Time + UnchangedChannelIDS []any + Workspaces []Workspace + func UnmarshalClientUserBootResponse(data []byte) (ClientUserBootResponse, error) + func (r *ClientUserBootResponse) Marshal() ([]byte, error) + type ConversationsLeaveRequest struct + Channel string + type ConversationsLeaveResponse struct + NotInChannel bool + type ConversationsViewResponse struct + Emojis map[string]string + IM IM + Users []User + type DND struct + DNDEnabled bool + NextDNDEndTs slack.JSONTime + NextDNDStartTs slack.JSONTime + SnoozeEnabled bool + type DefaultFunctionReuseVisibility struct + Visibility string + type EnterpriseTeamCreationRequest struct + IsEnabled bool + type IM struct + ConnectedTeamIds []string + ContextTeamID string + Created slack.JSONTime + ID string + IsArchived bool + IsExtShared bool + IsFrozen bool + IsIM bool + IsOpen bool + IsOrgShared bool + IsShared bool + LastRead fasttime.Time + Latest fasttime.Time + SharedTeamIds []string + Updated slack.JSONTime + User string + func (c IM) SlackChannel() slack.Channel + type Icon struct + Image102 string + Image132 string + Image230 string + Image34 string + Image44 string + Image68 string + Image88 string + ImageDefault bool + type InvitedUserPreset struct + EnableInvitedUser bool + type Links struct + DomainsTs int64 + type Option func(*Client) + func WithTape(tape io.WriteCloser) Option + type Pagination struct + First int64 + Last int64 + NextCursor string + Page int + PageCount int + PerPage int + TotalCount int64 + type PostRequest interface + IsTokenSet func() bool + SetToken func(string) + type Prefs struct + AdminCustomizedQuickReactions []string + AllUsersCanPurchase bool + AllowAdminRetentionOverride int64 + AllowAudioClipSharingSlackConnect bool + AllowAudioClips bool + AllowBoxCfs bool + AllowCalls bool + AllowCallsInteractiveScreenSharing bool + AllowClipDownloads string + AllowContentReview bool + AllowDeveloperSandboxes string + AllowFreeAutomatedTrials bool + AllowHuddles bool + AllowHuddlesTranscriptions bool + AllowHuddlesVideo bool + AllowLists string + AllowLockThread bool + AllowMediaTranscriptions bool + AllowMessageDeletion bool + AllowNativeGIFPicker bool + AllowRetentionOverride bool + AllowSpaceship string + AllowSponsoredSlackConnections bool + AllowVideoClipSharingSlackConnect bool + AllowVideoClips bool + AppDirOnly bool + AppManagementApps []any + AppWhitelistEnabled bool + AppWhitelistRequestsRequireCommentEnabled bool + AtlasOrgChartsAccess string + AtlasProfilesAccess string + AuthMode string + AutomaticWelcomeDmEnabled bool + BillingEmailDaily bool + BillingEmailMonthly bool + BlockFileDownload bool + BlockFileTypes bool + BoxAppInstalled bool + CallsApps CallsApps + CallsLocations []any + CanAcceptSlackConnectChannelInvites bool + CanCreateExternalLimitedInvite bool + CanCreateSlackConnectChannelInvite bool + CanReceiveSharedChannelsInvites bool + CanvasRetentionDuration int64 + CanvasRetentionType int64 + CanvasVersionHistoryEnabled bool + ChannelAuditExportEnabled bool + ChannelEmailAddressesEnabled bool + ComplianceExportStart int64 + ContentReviewEnabled bool + CreatedWithGoogle bool + CustomContactEmail any + CustomStatusDefaultEmoji string + CustomStatusPresets [][]string + DNDAfterFriday string + DNDAfterMonday string + DNDAfterSaturday string + DNDAfterSunday string + DNDAfterThursday string + DNDAfterTuesday string + DNDAfterWednesday string + DNDBeforeFriday string + DNDBeforeMonday string + DNDBeforeSaturday string + DNDBeforeSunday string + DNDBeforeThursday string + DNDBeforeTuesday string + DNDBeforeWednesday string + DNDDays string + DNDEnabled bool + DNDEnabledFriday string + DNDEnabledMonday string + DNDEnabledSaturday string + DNDEnabledSunday string + DNDEnabledThursday string + DNDEnabledTuesday string + DNDEnabledWednesday string + DNDEndHour string + DNDStartHour string + DNDWeekdaysOffAllday bool + DailyPromptsEnabled bool + DefaultChannelCreationEnabled bool + DefaultChannels []string + DefaultCreatePrivateChannel bool + DefaultFunctionReuseVisibility DefaultFunctionReuseVisibility + DefaultRxns []string + DisableEmailIngestion bool + DisableFileDeleting bool + DisableFileEditing bool + DisableFileUploads string + DisablePrivacyAndCookiePolicy bool + DisableSidebarConnectPrompts []any + DisableSidebarInstallPrompts []any + DisallowPublicFileUrls bool + Discoverable string + DisplayAnniversaryCelebration bool + DisplayDefaultPhone bool + DisplayEmailAddresses bool + DisplayExternalEmailAddresses bool + DisplayNewHireCelebration bool + DisplayPronouns bool + DisplayRealNames bool + DmRetentionDuration int64 + DmRetentionRedactionDuration int64 + DmRetentionType int64 + DropboxLegacyPicker bool + EXTAuditLogRetentionDuration int64 + EXTAuditLogRetentionType int64 + EmojiOnlyAdmins bool + EnableConnectDmEarlyAccess bool + EnableDomainAllowlistForCea bool + EnableInfoBarriers bool + EnableMpdmToPrivateChannelConversion bool + EnableSharedChannels int64 + EnterpriseDefaultChannels []any + EnterpriseHasCorporateExports bool + EnterpriseIntuneEnabled bool + EnterpriseJointeamRequests any + EnterpriseMandatoryChannels []any + EnterpriseMdmDateEnabled int64 + EnterpriseMdmDisableFileDownload bool + EnterpriseMdmLevel int64 + EnterpriseMdmToken string + EnterpriseMobileDeviceCheck bool + EnterpriseTeamCreationRequest EnterpriseTeamCreationRequest + FileLimitWhitelisted bool + FileRetentionDuration int64 + FileRetentionType int64 + FilepickerAppFirstInstall bool + FlagContentAdminDash bool + FlagMessageUsersToNotify []any + GdprEnabled bool + GdriveEnabledTeam bool + GroupRetentionDuration int64 + GroupRetentionType int64 + HasComplianceExport bool + HasHipaaCompliance bool + HasInstalledApps bool + HasSeenPartnerPromo bool + HasSharedInvites bool + HermesAllowInteractionsWithWorkflowsOwnedBySlackConnectedTeams bool + HermesHasAcceptedTos bool + HermesTriggersTrippableBySlackConnectedTeams bool + HideGsuiteInviteOption bool + HidePersonOptOut bool + HideReferers bool + IdentityLinksPrefs EnterpriseTeamCreationRequest + Image102 string + Image132 string + Image230 string + Image34 string + Image44 string + Image68 string + Image88 string + ImageDefault bool + ImageOriginal string + InstantSlackEnabled bool + InviteRequestsEnabled bool + InvitedUserPreset InvitedUserPreset + InvitesLimit bool + InvitesOnlyAdmins bool + LoadingOnlyAdmins bool + Locale string + LoudChannelMentionsLimit int64 + MagicUnfurlsEnabled bool + MemberAnalyticsDisabled bool + MlOptOut bool + MobilePasscodeTimeoutInSeconds int64 + MobileSessionDuration int64 + MsgEditWindowMins int64 + NTLMCredentialDomains string + NoEmailUserProvisionType string + NotificationRedactionType string + NotifyPendingEnabled bool + OnedriveAppInstalled bool + OnedriveEnabledTeam bool + PremiumWorkflowNotifications PremiumWorkflowNotifications + PrivateChannelAnalyticsDisabled bool + PrivateChannelMembershipLimit int64 + PrivateRetentionRedactionDuration int64 + PublicRetentionRedactionDuration int64 + ReceivedEscRouteToChannelAwarenessMessage bool + RetentionDuration int64 + RetentionType int64 + RichPreviewsDefault string + SamlEnable bool + SearchFeedbackOptOut bool + SeenInvitesOnlyAdminsWarning bool + SelfServeSelect bool + SessionDuration int64 + SessionDurationType int64 + ShowJoinLeave bool + ShowLegacyPaidBenefitsPage bool + ShowLegacyWorkflows bool + ShowMobilePromos bool + SignInWithSlackDefault string + SignInWithSlackDisabled bool + SingleUserExports bool + SlackAIDailyRecapOptOut bool + SlackAIDetailedFeedbackOptOut bool + SlackAISearchSuggestedQueries []any + SlackConnectAccountVisibility string + SlackConnectAllowedWorkspaces SlackConnectAllowedWorkspaces + SlackConnectApprovalType string + SlackConnectDmOnlyVerifiedOrgs bool + SlackConnectFileUploadSharingEnabled bool + SlackbotResponsesDisabled bool + SlackbotResponsesOnlyAdmins bool + SpaceshipWorkspaceSettingVisible bool + SsoChangeEmail bool + SsoChooseUsername bool + SsoDisableEmails bool + SsoOptional bool + SsoSignupRestrictions int64 + SsoSyncWithProvider bool + StatsOnlyAdmins bool + SubteamsAutoCreateAdmin bool + SubteamsAutoCreateOwner bool + ThornSaferScan bool + TwoFactorAuthRequired int64 + TwoFactorPreventSMS int64 + TwoFactorRequired bool + UneditableUserProfileFields []any + UseBrowserPicker bool + UseWorkspaceIconForSingleWorkspaceUsers bool + UsesCustomizedCustomStatusPresets bool + WarnBeforeAtChannel string + WarnUserBeforeLogoutDesktop bool + WarnUserBeforeLogoutMobile bool + WelcomePlaceEnabled bool + WfbDefaultConnectorVisibility string + WhoCanAcceptSlackConnectChannelInvites SlackConnectAllowedWorkspaces + WhoCanArchiveChannels string + WhoCanAtChannel string + WhoCanAtEveryone string + WhoCanChangeTeamProfile string + WhoCanCreateChannelEmailAddresses SlackConnectAllowedWorkspaces + WhoCanCreateChannels string + WhoCanCreateDeleteUserGroups string + WhoCanCreateExternalLimitedInvite SlackConnectAllowedWorkspaces + WhoCanCreateGroups string + WhoCanCreateSharedChannels string + WhoCanCreateSlackConnectChannelInvite SlackConnectAllowedWorkspaces + WhoCanCreateWorkflows SlackConnectAllowedWorkspaces + WhoCanDmAnyone SlackConnectAllowedWorkspaces + WhoCanEditUserGroups string + WhoCanKickChannels string + WhoCanKickGroups string + WhoCanManageChannelPostingPrefs string + WhoCanManageEXTSharedChannels SlackConnectAllowedWorkspaces + WhoCanManageGuests SlackConnectAllowedWorkspaces + WhoCanManageIntegrations SlackConnectAllowedWorkspaces + WhoCanManagePrivateChannels WhoCanManageP + WhoCanManagePrivateChannelsAtWorkspaceLevel WhoCanManageP + WhoCanManagePublicChannels WhoCanManageP + WhoCanManageSharedChannels SlackConnectAllowedWorkspaces + WhoCanPostGeneral string + WhoCanPostInSharedChannels SlackConnectAllowedWorkspaces + WhoCanRequestEXTSharedChannels SlackConnectAllowedWorkspaces + WhoCanReviewFlaggedContent SlackConnectAllowedWorkspaces + WhoCanUseHermes SlackConnectAllowedWorkspaces + WhoCanViewMessageActivity WhoCanViewMessageActivity + WhoHasTeamVisibility string + WorkflowBuilderEnabled bool + WorkflowExtensionStepsBetaOptIn bool + WorkflowExtensionStepsEnabled bool + WorkflowsExportCSVEnabled bool + WorkflowsWebhookTriggerEnabled bool + type PremiumWorkflowNotifications struct + NotificationLocation string + NotificationsEnabled bool + type Profile struct + AvatarHash string + DisplayName string + DisplayNameNormalized string + Email string + Fields any + FirstName *string + GuestInvitedBy string + ImageOriginal *string + IsCustomImage *bool + LastName *string + Phone string + RealName string + RealNameNormalized string + Skype string + StatusEmoji string + StatusEmojiDisplayInfo []any + StatusExpiration int64 + StatusText string + StatusTextCanonical string + Team string + Title string + type Profile1 struct + AvatarHash string + DisplayName string + DisplayNameNormalized string + Email string + Fields any + FirstName string + LastName string + Phone string + RealName string + RealNameNormalized string + Skype string + StatusEmoji string + StatusEmojiDisplayInfo []any + StatusExpiration int64 + StatusText string + StatusTextCanonical string + Team string + Title string + type Properties struct + PostingRestrictedTo SlackConnectAllowedWorkspaces + type Purpose struct + Creator string + LastSet int64 + Value string + type ResponseMetadata struct + Messages []string + NextCursor string + type SavedCounts struct + ArchivedCount int + CompletedCount int + TotalCount int + UncompletedCount int + UncompletedOverdueCount int + type SavedItem struct + DateCompleted int64 + DateCreated int64 + DateDue int64 + DateSnoozedUntil int64 + DateUpdated int64 + IsArchived bool + ItemID string + ItemType string + State string + Ts string + type SavedListResponse struct + Counts SavedCounts + SavedItems []SavedItem + type SearchResponse struct + Filters json.RawMessage + Items []T + Module string + Pagination Pagination + Query string + type Self struct + Color string + Deleted bool + FirstLogin slack.JSONTime + ID string + IsAdmin bool + IsAppUser bool + IsBot bool + IsEmailConfirmed bool + IsOwner bool + IsPrimaryOwner bool + IsRestricted bool + IsUltraRestricted bool + LobSalesHomeEnabled bool + ManualPresence string + Name string + Profile Profile + RealName string + TeamID string + Tz string + TzLabel string + TzOffset int64 + Updated slack.JSONTime + WhoCanShareContactCard string + type SlackConnectAllowedWorkspaces struct + Type []string + type Subteams struct + Self []any + type Team struct + AvatarBaseURL string + Domain string + EmailDomain string + ID string + Icon Icon + ImageProxyURL string + IsPlanFrozen bool + IsVerified bool + LobSalesHomeEnabled bool + MessagesCount int64 + Name string + OnboardingChannelID string + OverStorageLimit bool + Plan string + Prefs Prefs + URL string + type User struct + Color string + Deleted bool + Has2Fa *bool + ID string + IsAdmin bool + IsAppUser bool + IsBot bool + IsEmailConfirmed bool + IsOwner bool + IsPrimaryOwner bool + IsRestricted bool + IsUltraRestricted bool + Name string + Profile Profile + RealName string + TeamID string + Tz string + TzLabel string + TzOffset int64 + Updated slack.JSONTime + WhoCanShareContactCard string + type UserBootChannel struct + ContextTeamID string + Created int64 + Creator string + ID string + IsArchived bool + IsChannel bool + IsEXTShared bool + IsFrozen bool + IsGeneral bool + IsGroup bool + IsIM bool + IsMember bool + IsMpim bool + IsOpen bool + IsOrgShared bool + IsPendingEXTShared bool + IsPrivate bool + IsShared bool + LastRead fasttime.Time + Latest fasttime.Time + Members []string + Name string + NameNormalized string + ParentConversation json.RawMessage + PendingConnectedTeamIDS []json.RawMessage + PendingShared []json.RawMessage + PreviousNames []json.RawMessage + Properties *Properties + Purpose Purpose + SharedTeamIDS []string + Topic Purpose + Unlinked int64 + Updated int64 + func (c *UserBootChannel) SlackChannel() slack.Channel + type UserInfo struct + Color string + Deleted bool + ID string + IsAppUser bool + IsBot bool + IsStranger bool + Name string + Profile Profile + TeamID string + Updated int64 + WhoCanShareContactCard string + type UserInfoResponse struct + CanInteract map[string]bool + FailedIDS []string + PendingIDS []string + Results []UserInfo + type UsersInfoRequest struct + CheckInteraction bool + IncludeProfileOnlyUsers bool + UpdatedIDS map[string]int64 + type UsersListRequest struct + Channels []string + Count int + Filter string + IncludeProfileOnlyUsers bool + Index string + Locale string + Marker string + PresentFirst bool + type UsersListResponse struct + NextMarker string + Results []User + type UsersSearchRequest struct + Count int + Query string + type UsersSearchResponse struct + Error string + Ok bool + Results []slack.User + type WebClientFields struct + XAppName string + XMode string + XReason string + XSonic bool + type WhoCanManageP struct + Type []string + User []any + type WhoCanViewMessageActivity struct + ChannelType []string + Type []string + type Workspace struct + AvatarBaseURL string + Domain string + EmailDomain string + ID string + Icon Icon + IsVerified bool + Name string + Prefs Prefs + URL string