mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
feat: getChannel test Closes #1235
This commit is contained in:
13
tests/channels/getChannel.ts
Normal file
13
tests/channels/getChannel.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user