import { GuildMember, Message, StringSelectMenuInteraction } from "discord.js"; import { PrismaClient } from "@prisma/client"; import { BaseEntry, BaseGuildCache, CommandPayload, ResponseBuilder } from "../"; export default abstract class BaseSelectMenu
> { /** * If the select menu interaction should be deferred * * @example true */ abstract defer: boolean; /** * If the select menu interaction should be ephemeral * * @example true */ abstract ephemeral: boolean; /** * Middleware to run before the {@link execute} method is called */ abstract middleware: SelectMenuMiddleware
[]; /** * The method that is called when a select menu item is chosen * * @param helper The SelectMenuHelper containing information about the select menu interaction */ abstract execute(helper: SelectMenuHelper
): Promise > {
/**
* The function that should handle the select menu interaction
*
* @param helper The SelectMenuHelper containing information about the select menu interaction
* @returns If the next middleware / execute method should be called
*/
abstract handler(helper: SelectMenuHelper ): boolean | Promise > {
readonly cache: GC;
readonly interaction: StringSelectMenuInteraction;
constructor(cache: GC, interaction: StringSelectMenuInteraction);
/**
* The GuildMember that pressednt the button
*/
get member(): GuildMember;
/**
* The Message containing this select menu
*/
get message(): Message