Skip to main content

@pvm/slack

Provides client for slack messenger. Client implementing AbstractMessengerClient.

Enabling in project

.pvm.toml

...
[[notifications.clients]]
name = 'slack'
pkg = '@pvm/slack'

After that, depending on settings Π½ΠΎΡ‚ΠΈΡ„ΠΈΠΊΠ°Ρ†ΠΈΠΉ, messages will be sending to slack messenger

Classes

Interfaces

Functions

chatPostMessage

β–Έ chatPostMessage(message, opts?): Promise<HttpResponseSuccess<unknown>>

Parameters

NameType
messageSlackMessage
optsSlackSendOpts

Returns

Promise<HttpResponseSuccess<unknown>>

Defined in

packages/pvm-slack/lib/api.ts:60


formatText

β–Έ formatText(text, opts?): string

Parameters

NameType
textstring
optsPrepareTextOptions

Returns

string

Defined in

packages/pvm-slack/lib/messaging.ts:13


processMarkdown

β–Έ processMarkdown(text): string

Parameters

NameType
textstring

Returns

string

Defined in

packages/pvm-slack/lib/messaging.ts:3


sendMessage

β–Έ sendMessage(message, opts?): Promise<HttpResponseSuccess<unknown> | void>

Parameters

NameType
messageSlackMessage
optsSlackSendOpts

Returns

Promise<HttpResponseSuccess<unknown> | void>

Defined in

packages/pvm-slack/lib/api.ts:88


webhookSend

β–Έ webhookSend(message, opts?): Promise<HttpResponseSuccess<unknown>>

Parameters

NameType
messageSlackMessage
optsSlackSendOpts

Returns

Promise<HttpResponseSuccess<unknown>>

Defined in

packages/pvm-slack/lib/api.ts:38