AutoModerationActionExecution does not trigger

When someone says a blacklisted word it gets deleted by autoMod but the event does not trigger. code:
import DiscordClient from "../utils/client.ts";
import Event from "../utils/structures/Event.ts"
import { AutoModerationAction, Events, Message } from "npm:discord.js";

export default class InteractionCreateEvent extends Event {

constructor() {
super(Events.AutoModerationActionExecution, false);
}

async execute(_client: DiscordClient, ...entries: any[]): Promise<void> {

console.log(entries) //not sure what the args are so just do this to find out

return;
}

}
import DiscordClient from "../utils/client.ts";
import Event from "../utils/structures/Event.ts"
import { AutoModerationAction, Events, Message } from "npm:discord.js";

export default class InteractionCreateEvent extends Event {

constructor() {
super(Events.AutoModerationActionExecution, false);
}

async execute(_client: DiscordClient, ...entries: any[]): Promise<void> {

console.log(entries) //not sure what the args are so just do this to find out

return;
}

}
5 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Kay
Kay9mo ago
i also have the AutoModerationExecution intent so i dont think intents are the problem
duck
duck9mo ago
could you show your intents just to confirm?
Kay
Kay9mo ago
No description
duck
duck9mo ago
and could you show your code for where events are loaded/handled? have you confirmed that your bot has the ManageGuild permission? some side notes: - this event's class doesn't appear to have the correct name (though I'm assuming this is unrelated to the actual issue) - why not just read the docs to find out what args each event emits with?