mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
13 lines
346 B
TypeScript
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);
|
|
}
|