aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushMessageReaction.ts
blob: 7fe110d447bd9f5bc2a718c2f62c549f83a999bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import type { BushClient, BushGuildEmoji, BushMessage, BushReactionEmoji } from '#lib';
import { MessageReaction, type Partialize } from 'discord.js';
import type { RawMessageReactionData } from 'discord.js/typings/rawDataTypes';

export type PartialBushMessageReaction = Partialize<BushMessageReaction, 'count'>;

/**
 * Represents a reaction to a message.
 */
export class BushMessageReaction extends MessageReaction {
	public declare readonly client: BushClient;

	public constructor(client: BushClient, data: RawMessageReactionData, message: BushMessage) {
		super(client, data, message);
	}
}

export interface BushMessageReaction extends MessageReaction {
	get emoji(): BushGuildEmoji | BushReactionEmoji;
}