Versions in this module Expand all Collapse all v0 v0.1.0 Sep 23, 2025 Changes in this version + var EventMapping = map[string]any + func ChannelJoinHandler(msgChan chan tea.Msg, ev *ChannelJoinedEvent) + func ChannelLeaveHandler(msgChan chan tea.Msg, ev *ChannelLeftEvent) + func GetChannelHistory(api *slack.Client, channelID string) tea.Cmd + func GetLatestMessage(api *slack.Client, channelID string) (*slack.Message, error) + func GetThread(api *slack.Client, channelID string, ts string) tea.Cmd + func GetUserInfo(api *slack.Client, userID string) (*slack.User, error) + func LoadCache() *core.Cache + func LoadConfig() (core.Config, error) + func MessageHandler(msgChan chan tea.Msg, ev *MessageEvent) + func Paginate[T any](fetch func(cursor string) (items []T, nextCursor string, err error)) ([]T, error) + func ReactionAddHandler(msgChan chan tea.Msg, ev *ReactionAddedEvent) + func ReactionRemoveHandler(msgChan chan tea.Msg, ev *ReactionRemovedEvent) + func RunWebsocket(token, cookie string, msgChan chan tea.Msg) + func SaveCache(cache core.Cache) error + func SaveConfig(cfg core.Config) error + func WithRetry(fn func() error) + type ChannelJoinedEvent struct + Channel string + ChannelType string + User string + type ChannelLeftEvent struct + Channel string + type InitialEvent struct + Type string + type MessageEvent struct + Attachments []core.Attachment + Channel string + ClientMsgID string + DeletedTimestamp string + EventTimestamp string + Files []core.File + Hidden bool + IsStarred bool + LastRead string + Message struct{ ... } + PinnedTo []string + ReplyCount int + ReplyUsers []string + SubType string + Subscribed bool + Text string + ThreadTimestamp string + Timestamp string + Type string + UnreadCount int + User string + type ReactionAddedEvent ReactionEvent + type ReactionEvent struct + EventTimestamp string + Item struct{ ... } + ItemUser string + Reaction string + Type string + User string + type ReactionRemovedEvent ReactionEvent