aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushChannel.ts
blob: 87793423755ef20c2743fe509fb9dbcf23d9da22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* eslint-disable deprecation/deprecation */
import type {
	BushCategoryChannel,
	BushClient,
	BushDMChannel,
	BushNewsChannel,
	BushStageChannel,
	BushStoreChannel,
	BushTextBasedChannel,
	BushTextChannel,
	BushThreadChannel,
	BushVoiceBasedChannel,
	BushVoiceChannel
} from '#lib';
import { Channel, ChannelType, PartialGroupDMChannel, type Snowflake } from 'discord.js';
import type { RawChannelData } from 'discord.js/typings/rawDataTypes';

/**
 * Represents any channel on Discord.
 */
export declare class BushChannel extends Channel {
	public constructor(client: BushClient, data?: RawChannelData, immediatePatch?: boolean);
	public readonly createdAt: Date | null;
	public readonly createdTimestamp: number | null;
	public deleted: boolean;
	public id: Snowflake;
	public readonly partial: false;
	public type: ChannelType;
	public delete(): Promise<this>;
	public fetch(force?: boolean): Promise<this>;
	public isText(): this is BushTextChannel;
	public isDM(): this is BushDMChannel;
	public isDMBased(): this is PartialGroupDMChannel | BushDMChannel;
	public isVoice(): this is BushVoiceChannel;
	public isCategory(): this is BushCategoryChannel;
	public isNews(): this is BushNewsChannel;
	public isStore(): this is BushStoreChannel;
	public isThread(): this is BushThreadChannel;
	public isStage(): this is BushStageChannel;
	public isTextBased(): this is BushTextBasedChannel;
	public isVoiceBased(): this is BushVoiceBasedChannel;
}