import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeUrls(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by hugo697 207 days ago
import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeUrls(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by admin 810 days ago
import { getResumeEndpoints } from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by admin 840 days ago
import {
getResumeEndpoints
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by admin 843 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by adam186 971 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by adam186 1006 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by admin 1056 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' ' + approvalPage
});
}
Submitted by admin 1056 days ago