bothy-sdk
    Preparing search index...

    Function select

    • Builds a select.

      Parameters

      • customId: string

        ID of the component in its message.

      • choices: readonly SelectOption[]

        At least one option with distinct values.

      • options: SelectOptions = {}

        Placeholder, bounds and the shared members of ComponentOptions.

      Returns {}

      The generated ComponentCreate.

      RangeError when a value breaks a rule of component.v1; the message names the field.

      select("room", [{ label: "Room A", value: "a" }, { label: "Room B", value: "b" }]);