aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushVoiceState.ts
blob: bbcdfa86bdf842f1c18c7be0bf90c6520736f924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import type { BushClient, BushGuild, BushGuildMember, BushVoiceBasedChannel } from '#lib';
import { VoiceState } from 'discord.js';
import type { RawVoiceStateData } from 'discord.js/typings/rawDataTypes';

/**
 * Represents the voice state for a Guild Member.
 */
export class BushVoiceState extends VoiceState {
	public declare readonly client: BushClient;
	public declare guild: BushGuild;

	public constructor(guild: BushGuild, data: RawVoiceStateData) {
		super(guild, data);
	}
}

export interface BushVoiceState extends VoiceState {
	get channel(): BushVoiceBasedChannel | null;
	get getmember(): BushGuildMember | null;
}