class SlackChannel
implements NotificationChannel
Since 0.1.0

SlackChannel dispatches notifications through a SlackTransport (e.g. SlackProvider).

Constructors

SlackChannel(
name: string,
transport: SlackTransport
)

Properties

readonly
name: string

Channel dispatch name (e.g. 'email', 'sms').

Methods

send(notification: NotificationMessage): Promise<void>

Sends the body as text, optionally including to.channel.

Usage

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