Slack

Send Slack notifications.

Message

Send slack notifications to your configured slack integration.
FieldTypeDefaultDescription
channelNamestringRequiredThe slack channel to send notifications to. Must be prefixed with a #.
messagestringRequiredContents of the notification. Can be formatted using slack mrkdown.

Usage

javascript
Copied
1
import airplane from "airplane";
2
3
export default airplane.task(
4
{
5
slug: "send_slack_notifs",
6
resources: ["my_slack"],
7
},
8
async (params) => {
9
await airplane.slack.message("#my-channel", "Hello world");
10
}
11
);