card-drop/src/buttonEvents/Effects.ts
Ethan Lane 3d665aba67
Some checks failed
Test / build (push) Failing after 32s
WIP: Create UseEffect tests
2025-01-16 20:34:32 +00:00

19 lines
575 B
TypeScript

import { ButtonInteraction } from "discord.js";
import { ButtonEvent } from "../type/buttonEvent";
import List from "./Effects/List";
import Use from "./Effects/Use";
export default class Effects extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) {
const action = interaction.customId.split(" ")[1];
switch (action) {
case "list":
await List(interaction);
break;
case "use":
await Use.Execute(interaction);
break;
}
}
}