Files
discordeno/tests/channels/getChannel.ts
2021-11-23 11:57:42 +00:00

14 lines
375 B
TypeScript

import { assertEquals } from "../deps.ts";
import { bot, guild } from "../mod.ts";
Deno.test("[channel] Get a channel", async () => {
const channel = await bot.helpers.createChannel(guild.id, {
name: "fetching",
});
const fetched = await bot.helpers.getChannel(channel.id);
assertEquals(channel.id, fetched.id);
assertEquals(channel.name, fetched.name);
});