Files
discordeno/tests/helpers/members/fetchMembers.ts
T
2021-10-30 19:44:54 +00:00

13 lines
346 B
TypeScript

import { Bot } from "../../../src/bot.ts";
import { assertExists } from "../../deps.ts";
export async function fetchSingleMemberTest(bot: Bot, guildId: bigint, t: Deno.TestContext) {
const fetchedMember = await bot.helpers.fetchMembers(guildId, 0, {
userIds: [bot.id],
limit: 1,
});
// Assertions
assertExists(fetchedMember);
}