aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/ExtendedMessage.ts
blob: 4431077b8c4cb51be703215f4e30402752f3e7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { CommandUtil } from 'discord-akairo';
import { Message, type Client } from 'discord.js';
import { type RawMessageData } from 'discord.js/typings/rawDataTypes.js';

export class ExtendedMessage<Cached extends boolean = boolean> extends Message<Cached> {
	public declare util: CommandUtil<Message>;

	public constructor(client_: Client, data: RawMessageData) {
		super(client_, data);
		this.util = new CommandUtil(client.commandHandler, this);
	}
}