gluon
    Preparing search index...

    Class DropdownOption

    Helps to create a dropdown option.

    Implements

    • DropdownOptionBuilder
    Index

    Constructors

    Properties

    default: undefined | boolean
    description: undefined | string
    emoji: undefined | ResolvedEmoji
    label: undefined | string
    value: undefined | string

    Methods

    • Sets the emoji to be displayed on the dropdown option.

      Parameters

      • emoji: string

        The emoji to display on the dropdown option. For a custom emoji, it should be in the format "<:bitcoin:844240546246950922>".

      Returns DropdownOption

    • Returns the correct Discord format for a dropdown option.

      Parameters

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

      Returns {
          default: undefined | boolean;
          description: undefined | string;
          emoji: undefined | ResolvedEmoji;
          label: string;
          value: string;
      }