mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 10:58:16 +00:00
few error fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user