aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushNewsChannel.ts
blob: fcb15d55c728d44316333779ac81e75cb41ad782 (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 {
	get members(): Collection<Snowflake, BushGuildMember>;
}