From fc390ffc300334c396d9d06b0feaf8fbc6ed2814 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 26 Dec 2021 17:16:32 -0500 Subject: documentation, bug fixes etc --- src/lib/extensions/discord.js/BushChannel.d.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/lib/extensions/discord.js/BushChannel.d.ts') diff --git a/src/lib/extensions/discord.js/BushChannel.d.ts b/src/lib/extensions/discord.js/BushChannel.d.ts index 9a78b9a..42443ba 100644 --- a/src/lib/extensions/discord.js/BushChannel.d.ts +++ b/src/lib/extensions/discord.js/BushChannel.d.ts @@ -1,8 +1,12 @@ -import type { BushClient, BushStageChannel, BushTextBasedChannels, BushThreadChannel, BushVoiceChannel } from '#lib'; +import type { BushClient, BushTextBasedChannel, BushThreadChannel } from '#lib'; import { Channel, type ChannelMention, type Snowflake } from 'discord.js'; import type { ChannelTypes } from 'discord.js/typings/enums'; import type { RawChannelData } from 'discord.js/typings/rawDataTypes'; +import { BushBaseGuildVoiceChannel } from './BushBaseGuildVoiceChannel'; +/** + * Represents any channel on Discord. + */ export class BushChannel extends Channel { public constructor(client: BushClient, data?: RawChannelData, immediatePatch?: boolean); public readonly createdAt: Date; @@ -11,10 +15,10 @@ export class BushChannel extends Channel { public id: Snowflake; public readonly partial: false; public type: keyof typeof ChannelTypes; - public delete(): Promise; - public fetch(force?: boolean): Promise; - public isText(): this is BushTextBasedChannels; - public isVoice(): this is BushVoiceChannel | BushStageChannel; + public delete(): Promise; + public fetch(force?: boolean): Promise; + public isText(): this is BushTextBasedChannel; + public isVoice(): this is BushBaseGuildVoiceChannel; public isThread(): this is BushThreadChannel; public toString(): ChannelMention; } -- cgit