method SlackProvider.prototype.send
SlackProvider.prototype.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.

Parameters

The Slack message

Return Type

Promise<void>

Throws

Error

If the response fails either the OK flag or the body check

Usage

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