mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
6a94fe8f71
commit
b20c38a56e
@@ -12,7 +12,13 @@ export async function getMessagesTest(bot: Bot, channelId: bigint, t: Deno.TestC
|
|||||||
assertExists(secondMessage);
|
assertExists(secondMessage);
|
||||||
assertExists(thirdMessage);
|
assertExists(thirdMessage);
|
||||||
// Delay the execution by to allow MESSAGE_CREATE event to be processed
|
// Delay the execution by to allow MESSAGE_CREATE event to be processed
|
||||||
await delayUntil(10000, () => bot.cache.messages.has(message.id) && bot.cache.messages.has(secondMessage.id) && bot.cache.messages.has(thirdMessage.id));
|
await delayUntil(
|
||||||
|
10000,
|
||||||
|
() =>
|
||||||
|
bot.cache.messages.has(message.id) &&
|
||||||
|
bot.cache.messages.has(secondMessage.id) &&
|
||||||
|
bot.cache.messages.has(thirdMessage.id)
|
||||||
|
);
|
||||||
// Make sure the messages was created.
|
// Make sure the messages was created.
|
||||||
if (
|
if (
|
||||||
!bot.cache.messages.has(message.id) ||
|
!bot.cache.messages.has(message.id) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user