few error fixes

This commit is contained in:
Skillz4Killz
2021-11-09 21:00:39 +00:00
committed by GitHub
parent cdb67ba95a
commit afbebf2370
17 changed files with 89 additions and 89 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
import { Bot } from "../../../src/bot.ts";
import { Cache } from "../../../src/cache.ts";
import { assertEquals, assertExists } from "../../deps.ts";
import { assertEquals } from "../../deps.ts";
export async function getRolesTest(bot: Bot<Cache>, guildId: bigint, t: Deno.TestContext) {
const roles = await bot.helpers.getRoles(guildId);
assertEquals(bot.cache.guilds.get(guildId)?.roles.size, roles.length);
assertEquals(bot.cache.guilds.get(guildId)?.roles.size, roles.size);
}