blob: 42443ba1684e6a063376bb6f3fec130016b091d0 (
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
|
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;
public readonly createdTimestamp: number;
public deleted: boolean;
public id: Snowflake;
public readonly partial: false;
public type: keyof typeof ChannelTypes;
public delete(): Promise<this>;
public fetch(force?: boolean): Promise<this>;
public isText(): this is BushTextBasedChannel;
public isVoice(): this is BushBaseGuildVoiceChannel;
public isThread(): this is BushThreadChannel;
public toString(): ChannelMention;
}
|