aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushNewsChannel.ts
blob: e262188a888a6af864591cb6fd75e4206d24491a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import type { BushGuild, BushGuildMember, BushMessageManager, BushThreadManager } from '#lib';
import { NewsChannel, type AllowedThreadTypeForNewsChannel, type Collection, type Snowflake } from 'discord.js';

/**
 * Represents a guild news channel on Discord.
 */
export class BushNewsChannel extends NewsChannel {
	public declare threads: BushThreadManager<AllowedThreadTypeForNewsChannel>;
	public declare guild: BushGuild;
	public declare messages: BushMessageManager;
}

export interface BushNewsChannel extends NewsChannel {
	get members(): Collection<Snowflake, BushGuildMember>;
}