mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
fix(test): add check of dm message exist
This commit is contained in:
@@ -7,5 +7,6 @@ Deno.test("[member] get dm channel and send a message", async () => {
|
||||
const channel = await bot.helpers.getDmChannel(750661528360845322n);
|
||||
assertExists(channel?.id);
|
||||
|
||||
await bot.helpers.sendMessage(channel.id, { content: "https://i.imgur.com/doG55NR.png" });
|
||||
const message = await bot.helpers.sendMessage(channel.id, { content: "https://i.imgur.com/doG55NR.png" });
|
||||
assertExists(message?.content);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user