mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
* feat: sendTextMessage to send simple string * fix: clean up imports * Update plugins/helpers/mod.ts Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com> Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
12 lines
304 B
TypeScript
12 lines
304 B
TypeScript
import { Bot, CreateMessage } from "../deps.ts";
|
|
|
|
/** Sends a text message. */
|
|
export async function sendTextMessage(
|
|
bot: Bot,
|
|
channelId: bigint,
|
|
content: string | CreateMessage,
|
|
) {
|
|
if (typeof content === "string") content = { content };
|
|
return bot.helpers.sendMessage(channelId, content);
|
|
}
|