Skip to main content

Class: IncomingWebhook

A client for Slack's Incoming Webhooks

Constructors

new IncomingWebhook()

new IncomingWebhook(url, defaults): IncomingWebhook

Parameters

url: string

defaults: IncomingWebhookDefaultArguments = ...

Returns

IncomingWebhook

Defined in

IncomingWebhook.ts:28

Methods

send()

send(message): Promise<IncomingWebhookResult>

Send a notification to a conversation

Parameters

message: string | IncomingWebhookSendArguments

the message (a simple string, or an object describing the message)

Returns

Promise<IncomingWebhookResult>

Defined in

IncomingWebhook.ts:60