mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix(tests): fix typescripts errors
This commit is contained in:
@@ -26,20 +26,20 @@ async function ifItFailsBlameWolf(type: "getter" | "raw", reason?: string) {
|
||||
if (type === "raw") {
|
||||
await addRole(tempData.guildId, botId, role.id, reason);
|
||||
} else {
|
||||
await cache.members.get(botId).addRole(tempData.guildId, role.id, reason);
|
||||
await cache.members.get(botId)!.addRole(tempData.guildId, role.id, reason);
|
||||
}
|
||||
|
||||
// Delay the execution by 5 seconds to allow GUILD_MEMBER_UPDATE event to be processed
|
||||
await delayUntil(
|
||||
10000,
|
||||
() =>
|
||||
cache.members.get(botId)?.guilds.get(tempData.guildId).roles.includes(
|
||||
cache.members.get(botId)?.guilds.get(tempData.guildId)!.roles.includes(
|
||||
role.id,
|
||||
),
|
||||
);
|
||||
|
||||
assertEquals(
|
||||
cache.members.get(botId)?.guilds.get(tempData.guildId).roles.includes(
|
||||
cache.members.get(botId)?.guilds.get(tempData.guildId)!.roles.includes(
|
||||
role.id,
|
||||
),
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user