mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
12 lines
321 B
TypeScript
12 lines
321 B
TypeScript
import { BigString, Bot, CreateMessage } from '../deps.js'
|
|
|
|
/** Sends a text message. */
|
|
export async function sendTextMessage (
|
|
bot: Bot,
|
|
channelId: BigString,
|
|
content: string | CreateMessage
|
|
) {
|
|
if (typeof content === 'string') content = { content }
|
|
return await bot.helpers.sendMessage(channelId, content)
|
|
}
|