mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
13 lines
447 B
TypeScript
13 lines
447 B
TypeScript
import { assertExists } from "../../deps.ts";
|
|
import { loadBot } from "../../mod.ts";
|
|
|
|
Deno.test("[member] get dm channel and send a message", async () => {
|
|
const bot = loadBot();
|
|
// Itoh Alt ID
|
|
const channel = await bot.helpers.getDmChannel(750661528360845322n);
|
|
assertExists(channel?.id);
|
|
|
|
const message = await bot.helpers.sendMessage(channel.id, { content: "https://i.imgur.com/doG55NR.png" });
|
|
assertExists(message?.content);
|
|
});
|