Files
discordeno/tests/members/getMembers.ts
2021-11-26 08:27:46 +01:00

9 lines
380 B
TypeScript

import { bot } from "../mod.ts";
import { CACHED_COMMUNITY_GUILD_ID } from "../constants.ts";
import { assertEquals } from "../deps.ts";
Deno.test("[member] Gets a member list and checks if the bot is in the member list", async () => {
const members = await bot.helpers.getMembers(CACHED_COMMUNITY_GUILD_ID, { memberCount: 10 });
assertEquals(members.has(bot.id), true);
});