aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushMessageReaction.ts
blob: aed76dfd54c0edd1717b7ab8f176375bdf0537b4 (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 {
	get emoji(): BushGuildEmoji | BushReactionEmoji;
}