mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
14 lines
375 B
TypeScript
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);
|
|
});
|