mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 10:58:16 +00:00
10 lines
356 B
TypeScript
10 lines
356 B
TypeScript
import { Bot } from "../../../src/bot.ts";
|
|
import { Cache } from "../../../src/cache.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.size);
|
|
}
|