import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(text: string, channel: string, slack: Slack) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by hugo697 191 days ago
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(text: string, channel: string, slack: Slack) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by hugo697 205 days ago
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(text: string, channel: string, slack: Slack) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by admin 838 days ago
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
text: string,
channel: string,
slack: Slack,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by admin 841 days ago
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
import type { Resource } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
text: string,
channel: string,
slack: Resource<"slack">,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by adam186 969 days ago
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
import type { Resource } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
text: string,
channel: string,
slack: Resource<"slack">,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by adam186 1004 days ago
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
import type { Resource } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
text: string,
channel: string,
slack: Resource<"slack">,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by admin 1219 days ago