fix(tests): add dm test

This commit is contained in:
Skillz4Killz
2022-05-30 22:20:16 +00:00
committed by GitHub
parent 759518b35f
commit 4ffddb3160

View File

@@ -0,0 +1,11 @@
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);
await bot.helpers.sendMessage(channel.id, { content: "https://i.imgur.com/doG55NR.png" });
});