Interface SelectMenuOptionConfig

Configuration for a select menu option

Hierarchy

Properties

id: string

ID of the part

initFunction?: ((artibot: Artibot) => Promise<void>)

Type declaration

mainFunction: ((interaction: StringSelectMenuInteraction<"cached">, artibot: Artibot) => Promise<void>)

Type declaration

    • (interaction: StringSelectMenuInteraction<"cached">, artibot: Artibot): Promise<void>
    • Function executed when this option is selected

      Parameters

      • interaction: StringSelectMenuInteraction<"cached">
      • artibot: Artibot

      Returns Promise<void>

Generated using TypeDoc v0.23.28