mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 07:20:08 +00:00
14 lines
394 B
TypeScript
14 lines
394 B
TypeScript
import { assertEquals } from "../deps.ts";
|
|
import { bot, guild } from "../mod.ts";
|
|
|
|
Deno.test("[channel] Get all channels", async () => {
|
|
await Promise.all([
|
|
bot.helpers.createChannel(guild.id, { name: "first" }),
|
|
bot.helpers.createChannel(guild.id, { name: "second" }),
|
|
]);
|
|
|
|
const channels = await bot.helpers.getChannels(guild.id);
|
|
|
|
assertEquals(channels.size > 1, true);
|
|
});
|