Update tests/messages/create_message.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
This commit is contained in:
TriForMine
2021-04-13 14:42:41 +02:00
committed by GitHub
co-authored by ITOH
parent 331f63563e
commit e90fbac193
+1 -1
View File
@@ -133,7 +133,7 @@ Deno.test({
const reply = await message.reply("Welcome!");
await delayUntil(10000, () => cache.messages.has(reply!.id));
if (!cache.messages.has(reply?.id!)) {
if (!cache.messages.has(reply!.id)) {
throw new Error("The message seemed to be sent but it was not cached.");
}