Files
discordeno/tests/helpers/invites/createInvite.ts
2022-02-11 09:49:53 +00:00

15 lines
332 B
TypeScript

import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
export async function createInviteTest(channelId: bigint) {
const invite = await bot.helpers.createInvite(channelId, {
maxAge: 86400,
maxUses: 0,
temporary: false,
unique: false,
});
// Assertions
assertExists(invite);
}