Files
discordeno/tests/channels/getChannels.ts
2021-11-24 15:46:03 +00:00

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);
});