Skip to content

SlackNotifications

Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:12

notifications capability for Slack: posts messages to a channel as the bot.

  • Notifications

new SlackNotifications(client, opts): SlackNotifications

Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:18

() => object

Memoized client thunk — resolves the token on first authenticated call.

SlackNotificationsOptions

SlackNotifications

readonly key: "notifications"

Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:14

Capability key; always "notifications".

Notifications.key


readonly providerName: "slack" = "slack"

Defined in: plugins/holocron-plugin-slack/src/capabilities/notifications.ts:16

Provider name; always "slack".

Notifications.providerName

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.

string

string

Promise<void>

Notifications.send