messageUpdate event not Triggering

import { Listener } from '@sapphire/framework';
import type { Message } from 'discord.js';
export class roleDeleteListner extends Listener {
public constructor(context: Listener.Context, options: Listener.Options) {
super(context, {
...options,
once: false,
event: 'messageUpdate'
});
}

public async run(oldMessage: Message, newMessage: Message) {
console.log('Audit log created!, type: messageUpdate')
}
}
import { Listener } from '@sapphire/framework';
import type { Message } from 'discord.js';
export class roleDeleteListner extends Listener {
public constructor(context: Listener.Context, options: Listener.Options) {
super(context, {
...options,
once: false,
event: 'messageUpdate'
});
}

public async run(oldMessage: Message, newMessage: Message) {
console.log('Audit log created!, type: messageUpdate')
}
}
8 Replies
Favna
Favna2y ago
make sure you have the proper intents.
Tirupati[E3S1PRO]
ohh
Tirupati[E3S1PRO]
are these enough
Favna
Favna2y ago
probably too much for your particular bot but otherwise yes
Tirupati[E3S1PRO]
but the event not triggering
ararou!
ararou!2y ago
What are your partials as well And also import type { Event }from framework and do Event.MessageUpdate so you don’t always have to change that if it’s changed to smth else again Depending on your version v13 uses 'messageUpdate', I think v14 uses 'MessageUpdate' so some of those could be changed Although I don’t think that would cause it and ts should tell you if there’s smth wrong
ararou!
ararou!2y ago
But yeah try adding these partials and see what happens
24
242y ago
This isn't true I believe you're thinking about the enum I don't remember breaking changes for event strings
Want results from more Discord servers?
Add your server