mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
fix(tests): add dm test
This commit is contained in:
11
testss/guilds/members/dms.test.ts
Normal file
11
testss/guilds/members/dms.test.ts
Normal 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" });
|
||||
});
|
||||
Reference in New Issue
Block a user