From 6f07ad843954e3feeea046029a3329f11f55f939 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Sun, 5 Jan 2025 14:17:48 +0100 Subject: [PATCH] fix(editable-commands): update PluginMessageUpdate for latest discord.js version --- .../editable-commands/src/listeners/PluginMessageUpdate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editable-commands/src/listeners/PluginMessageUpdate.ts b/packages/editable-commands/src/listeners/PluginMessageUpdate.ts index 0e6c40d7..ce99c344 100644 --- a/packages/editable-commands/src/listeners/PluginMessageUpdate.ts +++ b/packages/editable-commands/src/listeners/PluginMessageUpdate.ts @@ -1,12 +1,12 @@ import { Events, Listener } from '@sapphire/framework'; -import type { Message } from 'discord.js'; +import type { Message, OmitPartialGroupDMChannel, PartialMessage } from 'discord.js'; export class PluginListener extends Listener { public constructor(context: Listener.LoaderContext) { super(context, { event: Events.MessageUpdate }); } - public override run(old: Message, message: Message) { + public override run(old: OmitPartialGroupDMChannel | PartialMessage>, message: Message) { // If the contents of both messages are the same, return: if (old.content === message.content) return;