mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
Update tests/messages/create_message.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user