From e79e7af2cbf0baefc8d65b8879d3ce24011d85a5 Mon Sep 17 00:00:00 2001 From: Skillz4Killz Date: Tue, 15 Dec 2020 15:00:55 -0500 Subject: [PATCH] this is why i hate typings --- src/structures/channel.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/structures/channel.ts b/src/structures/channel.ts index 9fd1f7cfd..1be24fa20 100644 --- a/src/structures/channel.ts +++ b/src/structures/channel.ts @@ -1,6 +1,6 @@ import { Collection, createNewProp, Guild } from "../../mod.ts"; import { cacheHandlers } from "../controllers/cache.ts"; -import { ChannelCreatePayload, RawOverwrite, Unpromise } from "../types/types.ts"; +import { ChannelCreatePayload, ChannelType, RawOverwrite, Unpromise } from "../types/types.ts"; import { cache } from "../utils/cache.ts"; import { Message } from "./message.ts"; @@ -55,6 +55,18 @@ export async function createChannel( } export interface Channel { + /** The id of this channel */ + id: string; + /** Sorting position of the channel */ + position?: number; + /** The name of the channel (2-100 characters) */ + name?: string; + /** The channel topic (0-1024 characters) */ + topic?: string; + /** The bitrate (in bits) of the voice channel */ + bitrate?: number; + /** The type of the channel */ + type: ChannelType; /** The guild id of the channel if it is a guild channel. */ guildID: string; /** The id of the last message sent in this channel */