seyfert
    Preparing search index...

    Class StringSelectOption

    Represents an individual option for a string select menu.

    const option = new StringSelectOption().setLabel("Option 1").setValue("option_1");
    
    Index

    Constructors

    Properties

    data: Partial<APISelectMenuOption> = {}

    Methods

    • Sets whether the option is the default. [Default=true] - Indicates whether the option is the default.

      Parameters

      • Default: boolean = true

      Returns this

      The current StringSelectOption instance.

    • Sets the description for the option. description - The description for the option.

      Parameters

      • description: string

      Returns this

      The current StringSelectOption instance.

    • Sets the label for the option. label - The label for the option.

      Parameters

      • label: string

      Returns this

      The current StringSelectOption instance.

    • Sets the value for the option. value - The value for the option.

      Parameters

      • value: string

      Returns this

      The current StringSelectOption instance.

    • Converts the option to JSON format.

      Returns APISelectMenuOption

      The option data in JSON format.