import process from "node:process";
import { discordAPI } from "https://esm.town/v/joey/discordAPI";
export const sendDiscordMessage = (channelId: string, message: string) =>
discordAPI({
path: `/channels/${channelId}/messages`,
method: "POST",
token: process.env.DISCORD_BOT_TOKEN,
body: { content: message },
});