Versions in this module Expand all Collapse all v1 v1.0.0 Mar 18, 2024 Changes in this version + type Application struct + func New(config Config) *Application + func (app *Application) RegisterBlockAction(actionID string, handler BlockActionHandler) + func (app *Application) RegisterCommand(command string, handler CommandHandler) + func (app *Application) RegisterEventHandler(eventType string, handler EventHandler) + func (app *Application) RegisterViewSubmission(callbackID string, handler ViewSubmissionHandler) + type BlockActionHandler func(req *BlockActionRequest) error + type BlockActionPayload struct + Actions []slack.BlockAction + BotAccessToken string + Channel ... + Container slack.Container + Enterprise *string + Hash string + Message *slack.MessageEvent + State *slack.BlockActionStates + View *slack.View + type BlockActionRequest struct + Payload BlockActionPayload + func (event *BlockActionRequest) Ack() + type BotTokenGetter func(teamID string) (string, error) + type CommandHandler func(req *CommandRequest) error + type CommandPayload struct + APIAppID string + ChannelID string + ChannelName string + Command string + EnterpriseID string + EnterpriseName string + ResponseURL string + TeamDomain string + TeamID string + Text string + Token string + TriggerID string + UserID string + UserName string + type CommandRequest struct + Payload CommandPayload + func (event *CommandRequest) Ack() + func (req *CommandRequest) AckWithAction(action CommandResponseAction) + type CommandResponseAction struct + Blocks []slack.Block + ResponseType CommandResponseActionType + Text string + type CommandResponseActionType string + const RespondEphemeral + const RespondInChannel + type Config struct + BotToken BotTokenGetter + ErrorMessage string + Logger *slog.Logger + PathPrefix string + Router *http.ServeMux + SigningSecret string + type EventHandler func(req *EventRequest) error + type EventPayload struct + Event json.RawMessage + type EventRequest struct + Payload EventPayload + func (event *EventRequest) Ack() + type MessageEvent struct + func (e *MessageEvent) IsBot() bool + type OuterEventType string + const EventCallback + const RateLimited + const UrlVerification + type ViewResponseAction struct + Errors map[string]string + ResponseAction ViewResponseActionType + View *slack.View + type ViewResponseActionType string + const ViewResponseClear + const ViewResponseErrors + const ViewResponsePush + const ViewResponseUpdate + type ViewSubmissionHandler func(req *ViewSubmissionRequest) error + type ViewSubmissionPayload struct + View slack.View + type ViewSubmissionRequest struct + Payload ViewSubmissionPayload + func (event *ViewSubmissionRequest) Ack() + func (req *ViewSubmissionRequest) AckWithAction(action ViewResponseAction)