aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushThreadMember.ts
blob: b3d8b50e7776eb6f098d5b526d63e9b8b620630c (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 {
	get guildMember(): BushGuildMember | null;
	get user(): BushUser | null;
}