Skip to main content

@slack/webhook / IncomingWebhook

Class: IncomingWebhook

Defined in: packages/webhook/src/IncomingWebhook.ts:37

A client for Slack's Incoming Webhooks

Constructors

Constructor

new IncomingWebhook(url, defaults?): IncomingWebhook;

Defined in: packages/webhook/src/IncomingWebhook.ts:68

Parameters

url

string

defaults?

IncomingWebhookDefaultArguments = ...

Returns

IncomingWebhook

Methods

send()

send(message): Promise<IncomingWebhookResult>;

Defined in: packages/webhook/src/IncomingWebhook.ts:95

Send a notification to a conversation

Parameters

message

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

string | IncomingWebhookSendArguments

Returns

Promise<IncomingWebhookResult>