21 lines
No EOL
616 B
TypeScript
21 lines
No EOL
616 B
TypeScript
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: []
|
|
})
|
|
}
|
|
|
|
} |