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

/**
 * Represents a user's presence.
 */
export class BushPresence extends Presence {
	public declare guild: BushGuild | null;

	public constructor(client: BushClient, data?: RawPresenceData) {
		super(client, data);
	}
}

export interface BushPresence extends Presence {
	get member(): BushGuildMember | null;
	get user(): BushUser | null;
}