aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushBaseGuildTextChannel.ts
blob: 9b260dcab3d7fdddc6cfb263d0401ef3e248dfc7 (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
import type { BushCategoryChannel, BushClient, BushGuild, BushGuildMember, BushMessageManager, BushThreadManager } from '#lib';
import {
	BaseGuildTextChannel,
	type AllowedThreadTypeForNewsChannel,
	type AllowedThreadTypeForTextChannel,
	type Collection,
	type Snowflake
} from 'discord.js';
import type { RawGuildChannelData } from 'discord.js/typings/rawDataTypes';

/**
 * Represents a text-based guild channel on Discord.
 */
export class BushBaseGuildTextChannel extends BaseGuildTextChannel {
	public declare messages: BushMessageManager;
	public declare threads: BushThreadManager<AllowedThreadTypeForTextChannel | AllowedThreadTypeForNewsChannel>;
	public declare readonly client: BushClient;
	public declare guild: BushGuild;
	public declare readonly members: Collection<Snowflake, BushGuildMember>;
	public declare readonly parent: BushCategoryChannel | null;

	public constructor(guild: BushGuild, data?: RawGuildChannelData, client?: BushClient, immediatePatch?: boolean) {
		super(guild, data, client, immediatePatch);
	}
}