mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix(helpers/guilds): createGuild not caching the guild (#814)
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user