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 13:53:43 +02:00
committed by GitHub
parent 7b53f5fe85
commit c32fa4ec34

View File

@@ -53,7 +53,7 @@ async function ifItFailsBlameWolf(
assertExists(message);
// Delay the execution by 5 seconds to allow MESSAGE_CREATE event to be processed
await delayUntil(10000, () => cache.messages.has(message?.id!));
await delayUntil(10000, () => cache.messages.has(message!.id));
if (!cache.messages.has(message?.id!)) {
throw new Error("The message seemed to be sent but it was not cached.");