Skip to content

Commit

Permalink
fix(editable-commands): update PluginMessageUpdate for latest discord…
Browse files Browse the repository at this point in the history
….js version
  • Loading branch information
favna committed Jan 5, 2025
1 parent ce24c6a commit 6f07ad8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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<typeof Events.MessageUpdate> {
public constructor(context: Listener.LoaderContext) {
super(context, { event: Events.MessageUpdate });
}

public override run(old: Message, message: Message) {
public override run(old: OmitPartialGroupDMChannel<Message<boolean> | PartialMessage>, message: Message) {
// If the contents of both messages are the same, return:
if (old.content === message.content) return;

Expand Down

0 comments on commit 6f07ad8

Please sign in to comment.