autoModerationActionExecution Event

Does Sapphire not emit the Discord.js autoModerationActionExecution event? The following code doesn't seem to trigger: autoModerationActionExecution.ts
import { Listener } from "@sapphire/framework";
import { AutoModerationActionExecution } from "discord.js";

export class AutoModerationActionExecutionListener extends Listener {

public async run(action: AutoModerationActionExecution) {
console.log("hi!");
}
}
import { Listener } from "@sapphire/framework";
import { AutoModerationActionExecution } from "discord.js";

export class AutoModerationActionExecutionListener extends Listener {

public async run(action: AutoModerationActionExecution) {
console.log("hi!");
}
}
I could be doing something completely wrong though!
Solution:
Right just looked at Intents in case I was missing anything obvious and apparently AUTO_MODERATION_EXECUTION is a completely separate intent https://discord.com/developers/docs/topics/gateway#gateway-intents
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Jump to solution
2 Replies
Favna
Favna3y ago
it is
Fozzie
FozzieOP3y ago
Thanks for the PR btw!

Did you find this page helpful?