feat(events): Adds AcknowledgableEvent

This commit is contained in:
Michel Fedde 2025-06-22 15:51:14 +02:00
parent 6d7a0e7cfb
commit b82ab7dbc4
18 changed files with 228 additions and 77 deletions

View file

@ -0,0 +1,21 @@
import {AnySelectMenuInteraction, ButtonInteraction, InteractionCallbackResponse} from "discord.js";
import {EventType, NormalEvent} from "../EventHandler.types";
import {AcknowledgableEvent} from "../AcknowledgableEvent";
export class ComponentInteractionEvent extends AcknowledgableEvent {
constructor(
public readonly interaction: AnySelectMenuInteraction | ButtonInteraction
) {
super();
}
public handleUnacknowledgement() {
this.interaction.update({
content: ":x: Interaction not longer available. Please restart the process.",
embeds: [],
components: []
})
}
}