method SlackChannel.prototype.send
SlackChannel.prototype.send(notification: NotificationMessage): Promise<void>

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

Parameters

notification: NotificationMessage

The notification to send

Return Type

Promise<void>

Throws

Error

If transport rejects

Usage

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