Documentation
¶
Overview ¶
Package slack is the Slack adapter for botbooter, connecting via Socket Mode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingConfig = errors.New("slack: missing required config field")
ErrMissingConfig is returned by New when a required Config field is empty.
Functions ¶
func Client ¶ added in v0.2.0
Client returns the Slack Web API client backing b, or nil if b is not a Slack bot.
func New ¶
New creates a Slack bot that connects via Socket Mode. It returns ErrMissingConfig if a required Config field is missing.
func RawEvent ¶ added in v0.2.0
func RawEvent(m *core.Message) (*slackevents.MessageEvent, bool)
RawEvent returns the raw Slack message event carried on m, reporting whether m originated from Slack.
func RawReaction ¶ added in v0.4.0
func RawReaction(r *core.Reaction) (*slackevents.ReactionAddedEvent, bool)
RawReaction returns the raw Slack reaction event carried on r, reporting whether r originated from Slack.
func SocketClient ¶ added in v0.2.0
func SocketClient(b *core.Bot) *socketmode.Client
SocketClient returns the Socket Mode client backing b, or nil if b is not a Slack bot.
Types ¶
Click to show internal directories.
Click to hide internal directories.