mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
nukes everything
This commit is contained in:
@@ -13,9 +13,9 @@ export async function editEmojiTest(bot: Bot, guildId: bigint, t: Deno.TestConte
|
||||
assertExists(emoji);
|
||||
|
||||
// Delay the execution to allow event to be processed
|
||||
await delayUntil(10000, async () => (await bot.cache.guilds.get(guildId))?.emojis?.has(emoji.id));
|
||||
await delayUntil(10000, async () => bot.cache.guilds.get(guildId)?.emojis?.has(emoji.id));
|
||||
|
||||
if (!(await bot.cache.guilds.get(guildId))?.emojis?.has(emoji.id)) {
|
||||
if (!bot.cache.guilds.get(guildId)?.emojis?.has(emoji.id)) {
|
||||
throw new Error("The emoji seemed to be created but it was not cached.");
|
||||
}
|
||||
|
||||
@@ -25,10 +25,10 @@ export async function editEmojiTest(bot: Bot, guildId: bigint, t: Deno.TestConte
|
||||
|
||||
await delayUntil(
|
||||
10000,
|
||||
async () => (await bot.cache.guilds.get(guildId))?.emojis?.get(emoji.id)?.name === "blamewolf_infinite"
|
||||
async () => bot.cache.guilds.get(guildId)?.emojis?.get(emoji.id)?.name === "blamewolf_infinite"
|
||||
);
|
||||
|
||||
if ((await bot.cache.guilds.get(guildId))?.emojis?.get(emoji.id)?.name !== "blamewolf_infinite") {
|
||||
if (bot.cache.guilds.get(guildId)?.emojis?.get(emoji.id)?.name !== "blamewolf_infinite") {
|
||||
throw new Error("The emoji seemed to be edited but the cache was not updated.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user