aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushChannel.ts
blob: 3f0d07026366b599c9ae67fa56df523896c0c091 (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 get createdAt(): Date | null;
	public get createdTimestamp(): number | null;
	public deleted: boolean;
	public id: Snowflake;
	public get 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;
}