mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-28 22:40:19 +00:00
18 lines
361 B
TypeScript
18 lines
361 B
TypeScript
import { assertExists } from "../deps.ts";
|
|
import { bot, channel } from "../mod.ts";
|
|
|
|
Deno.test({
|
|
name: "[invite] create an invite",
|
|
async fn(t) {
|
|
const invite = await bot.helpers.createInvite(channel.id, {
|
|
maxAge: 86400,
|
|
maxUses: 0,
|
|
temporary: false,
|
|
unique: false,
|
|
});
|
|
|
|
// Assertions
|
|
assertExists(invite);
|
|
},
|
|
});
|