From 2356d2c44736fb83021dacb551625852111c8ce6 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 18 Aug 2022 22:42:12 -0400 Subject: restructure, experimental presence and member automod, fixed bugs probably made some more bugs --- lib/extensions/discord.js/ExtendedMessage.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/extensions/discord.js/ExtendedMessage.ts (limited to 'lib/extensions/discord.js/ExtendedMessage.ts') diff --git a/lib/extensions/discord.js/ExtendedMessage.ts b/lib/extensions/discord.js/ExtendedMessage.ts new file mode 100644 index 0000000..1bb0904 --- /dev/null +++ b/lib/extensions/discord.js/ExtendedMessage.ts @@ -0,0 +1,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 extends Message { + public declare util: CommandUtil; + + public constructor(client: Client, data: RawMessageData) { + super(client, data); + this.util = new CommandUtil(client.commandHandler, this); + } +} -- cgit