gluon
    Preparing search index...

    Class Dropdown

    Helps to create a dropdown message component.

    Implements

    • DropdownBuilder
    Index

    Constructors

    Properties

    channel_types: undefined | ChannelType[]
    custom_id: undefined | string
    default_values: DropdownDefaultOption[]
    disabled: undefined | boolean
    max_values: undefined | number
    min_values: undefined | number
    options: DropdownOptionBuilder[]
    placeholder: undefined | string
    type: StringSelect | UserSelect | RoleSelect | MentionableSelect | ChannelSelect

    Methods

    • Adds a default option to the dropdown.

      Parameters

      • option: DropdownDefaultOption

        The default option to add to the dropdown.

      Returns Dropdown

    • Returns the correct Discord format for a dropdown.

      Parameters

      • Optionalformat: JsonTypes
      • __namedParameters: { suppressValidation: boolean } = ...

      Returns {
          channel_types: undefined | ChannelType[];
          custom_id: string;
          default_values: DropdownDefaultOption[];
          disabled: undefined | boolean;
          max_values: undefined | number;
          min_values: undefined | number;
          options: (
              | DropdownOptionBuilderCacheJSON
              | DropdownOptionBuilderStorageJSON
              | DropdownOptionBuilderDiscordJSON
          )[];
          placeholder: undefined
          | string;
          type:
              | StringSelect
              | UserSelect
              | RoleSelect
              | MentionableSelect
              | ChannelSelect;
      }