import { CommandUtil } from 'discord-akairo'; import { Message, type Client } from 'discord.js'; import type { RawMessageData } from 'discord.js/typings/rawDataTypes.js'; export class ExtendedMessage extends Message { public declare util: CommandUtil; public constructor(client: Client, data: RawMessageData) { super(client, data); this.util = new CommandUtil(client.commandHandler, this); } }