class SlackProvider
implements SlackTransport
Since 0.1.0

SlackProvider implements SlackTransport via a Slack incoming webhook URL.

Constructors

SlackProvider(options: SlackProviderOptions)

Creates a SlackProvider.

Parameters

Provider configuration

Methods

send(message: SlackMessage): Promise<void>

Posts a message to the Slack webhook.

Slack signals success only when HTTP 200 AND body is the literal "ok" — a compound check: !response.ok or response.text !== 'ok' each constitute failure arms.

Usage

import { SlackProvider } from "notification-plugin/src/index.ts";