fix(helpers/guilds): createGuild not caching the guild (#814)

This commit is contained in:
Skillz4Killz
2021-04-11 05:27:57 -04:00
committed by GitHub
parent b80f3149eb
commit 5d20c1c638
3 changed files with 18 additions and 8 deletions
+4 -4
View File
@@ -33,7 +33,7 @@ async function ifItFailsBlameWolf(type: "getter" | "raw", custom = false) {
name: "blamewolf",
image: "https://cdn.discordapp.com/emojis/814955268123000832.png",
roles: [],
},
}
)
).id
}>`;
@@ -47,7 +47,7 @@ async function ifItFailsBlameWolf(type: "getter" | "raw", custom = false) {
delayUntil(
10000,
() => cache.messages.get(message.id)?.reactions?.length > 0,
() => (cache.messages.get(message.id)?.reactions?.length || 0) > 0
);
assertEquals(
@@ -55,9 +55,9 @@ async function ifItFailsBlameWolf(type: "getter" | "raw", custom = false) {
.get(message.id)
?.reactions?.filter(
(reaction: DiscordReaction) =>
reaction.emoji?.name === (custom ? "blamewolf" : "❤"),
reaction.emoji?.name === (custom ? "blamewolf" : "❤")
).length,
1,
1
);
}