@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
Name | Type |
---|---|
message | SlackMessage |
opts | SlackSendOpts |
Returns
Promise
<HttpResponseSuccess
<unknown
>>
Defined in
packages/pvm-slack/lib/api.ts:60
formatText
βΈ formatText(text
, opts?
): string
Parameters
Name | Type |
---|---|
text | string |
opts | PrepareTextOptions |
Returns
string
Defined in
packages/pvm-slack/lib/messaging.ts:13
processMarkdown
βΈ processMarkdown(text
): string
Parameters
Name | Type |
---|---|
text | string |
Returns
string
Defined in
packages/pvm-slack/lib/messaging.ts:3
sendMessage
βΈ sendMessage(message
, opts?
): Promise
<HttpResponseSuccess
<unknown
> | void
>
Parameters
Name | Type |
---|---|
message | SlackMessage |
opts | SlackSendOpts |
Returns
Promise
<HttpResponseSuccess
<unknown
> | void
>
Defined in
packages/pvm-slack/lib/api.ts:88
webhookSend
βΈ webhookSend(message
, opts?
): Promise
<HttpResponseSuccess
<unknown
>>
Parameters
Name | Type |
---|---|
message | SlackMessage |
opts | SlackSendOpts |
Returns
Promise
<HttpResponseSuccess
<unknown
>>