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; } export declare abstract class SelectMenuMiddleware

> { /** * 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; } export declare class SelectMenuHelper

> { 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; /** * Respond to the user with the `followUp` method on the {@link interaction} * * @param options The data to send back to the user */ respond(options: ResponseBuilder | CommandPayload): void; /** * Update the response to the user with the `update` method on the {@link interaction} * * @param options The data to send back to the user */ update(options: ResponseBuilder | CommandPayload): void; /** * The values that the user selected. */ get values(): string[]; /** * The first value that the user selected. */ get value(): string | undefined; }