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 216 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 230 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 863 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 866 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 994 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 1029 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 1244 days ago