mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
15 lines
336 B
TypeScript
15 lines
336 B
TypeScript
import { Bot } from "../../../src/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);
|
|
}
|