fix(test): add check of dm message exist

This commit is contained in:
Skillz4Killz
2022-05-31 15:12:44 +00:00
committed by GitHub
parent 6e0b53e712
commit e9e8fa9c25
+2 -1
View File
@@ -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);
});