mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
* style: format Deno.test\("(.+)", async \(\) => \{\n([\S\s]*?)^\}\);
* style: format Deno.test\("(.+)", \(\) => \{\n([\S\s]*?)^\}\);
* style: format Deno.test\("(.+)", async \(t\) => \{\n([\S\s]*?)^\}\);
* style: format async function
* chore: turn all to async
* chore: format add t
* style: function format
* chore: add integration and unit test difference
* ci: combine test
* ci: remove if
* ci: add parallel flag
* ci: add UNIT_TEST_GUILD_ID
* ci: static deno version
* ci: add concurrency to Integration test
* ci: bump actions/checkout to v3
17 lines
523 B
TypeScript
17 lines
523 B
TypeScript
import { assertExists } from "../../deps.ts";
|
|
import { loadBot } from "../../mod.ts";
|
|
|
|
Deno.test({
|
|
name: "[member] get dm channel and send a message",
|
|
ignore: Deno.env.get("TEST_ENV") === "UNIT",
|
|
async fn(t) {
|
|
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);
|
|
},
|
|
});
|