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')
}
}
F
Favna419d ago
make sure you have the proper intents.
T
Tirupati[E3S1PRO]419d ago
ohh
T
Tirupati[E3S1PRO]419d ago
are these enough
F
Favna419d ago
probably too much for your particular bot but otherwise yes
T
Tirupati[E3S1PRO]419d ago
but the event not triggering
A
Ararou419d 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
A
Ararou419d ago
But yeah try adding these partials and see what happens
24419d 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
More Posts
'"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhookFetchMError: '"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhooMonoreposDoes Sapphire work and play nice with monorepos?Question regarding slash commands / aliasesHi, is there a way for me to register command aliases as slash commands as well? For example: Commandisable commands by dashboard.I want to disable commands through dashboard so, is there any way to dynamically disable commands ?What is the difference between response.status and response.statusCode ?When using the API Plugin of Sapphire.Hey what is DEVELOPMENT MODE and how do I disable itI tried setting the Node_Env to something else but it did not change it in the consoleBotList Autopost of stats is not workingI am using the bot list plugin https://github.com/devtomio/sapphire-plugin-botlist I set everything Miss matching objects on permission setting.Typescript says that permissionOverwrites does not exits in GuildBasedChannel, even tho it exists, irequiredClientPermissions check always rejectingWhile `requiredUserPermissions: ['ManageRoles']` works great. The client check `requiredClientPermisUnable to get member data from users that have left / kickedHi, I am trying to get data from members who have left the discord server or have been kicked. But ICatch all chat input command errors listenerHello ! I tried using the `Events.ChatInputCommandError` listener to catch any errors thrown by the Multiple Clients on one file/instanceI was wondering if its possible to run multiple clients on one file (i.e. .forEach()-ing `new ClientHow to present Slashcommands?How can I present the Slashcommands of my bot in his About Me like for example carl.gg does?Interaction HandlersAm I required to specify to sapphire where my interaction handlers directory is? A `interaction-handbot won't get on and connect to discord.hi, my bot won't turn on. i've coded a lot of bots before with sapphire and they worked just fine, dHow Do I Make a Project in my current Directory?I want to make the proj in `workspaces/DashMate` not like `workspaces/DashMate/${ProjName}`Bot wont go onlinewhen I try to run the script `yarn dev` I get this problemGuildDelete Event somehow gets triggered when I restart my BotI have no idea whats happening but if my bot (docker container) restarts, this notification gets senTypeError: Class extends value undefined is not a constructor or nullHey, newbie here in both TypeScript and Sapphire, and I'm trying to build a command but I'm getting THREAD_CREATE event Listener run method argumentsWhat I want to do: I want to inspect the id of the parent channel where the thread was created. The