SlackNotifications
Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:12
notifications capability for Slack: posts messages to a channel as the bot.
Implements
Section titled “Implements”Notifications
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SlackNotifications(
client,opts):SlackNotifications
Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:18
Parameters
Section titled “Parameters”client
Section titled “client”() => object
Memoized client thunk — resolves the token on first authenticated call.
Returns
Section titled “Returns”SlackNotifications
Properties
Section titled “Properties”
readonlykey:"notifications"
Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:14
Capability key; always "notifications".
Implementation of
Section titled “Implementation of”Notifications.key
providerName
Section titled “providerName”
readonlyproviderName:"slack"="slack"
Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:16
Provider name; always "slack".
Implementation of
Section titled “Implementation of”Notifications.providerName
Methods
Section titled “Methods”send()
Section titled “send()”send(
channel,message):Promise<void>
Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:24
Send a message. channel is provider-specific (Slack channel id,
Discord webhook url-name, etc.); adapters resolve from config.
Parameters
Section titled “Parameters”channel
Section titled “channel”string
message
Section titled “message”string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Notifications.send