Class SelectMenuOptionBuilder

Hierarchy

  • StringSelectMenuOptionBuilder
    • SelectMenuOptionBuilder

Constructors

Properties

data: Partial<APISelectMenuOption>

Methods

  • Sets whether this option is selected by default.

    Parameters

    • Optional isDefault: boolean

      Whether this option is selected by default

    Returns SelectMenuOptionBuilder

  • Sets the description for this option.

    Parameters

    • description: string

      The description to use

    Returns SelectMenuOptionBuilder

  • Sets the label for this option.

    Parameters

    • label: string

      The label to use

    Returns SelectMenuOptionBuilder

  • Sets the value for this option.

    Parameters

    • value: string

      The value to use

    Returns SelectMenuOptionBuilder

  • Serializes this builder to API-compatible JSON data.

    Returns APISelectMenuOption

    Remarks

    This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.

Generated using TypeDoc