aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushThreadMember.ts
blob: 90c9c9b7ae4aa2ee528a465885d626468084eafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import type { BushGuildMember, BushThreadChannel, BushUser } from '#lib';
import { ThreadMember } from 'discord.js';
import type { RawThreadMemberData } from 'discord.js/typings/rawDataTypes';

/**
 * Represents a Member for a Thread.
 */
export class BushThreadMember extends ThreadMember {
	public declare thread: BushThreadChannel;

	public constructor(thread: BushThreadChannel, data?: RawThreadMemberData) {
		super(thread, data);
	}
}

export interface BushThreadMember extends ThreadMember {
	get guildMember(): BushGuildMember | null;
	get user(): BushUser | null;
}