Class SelectMenu

Hierarchy

Constructors

  • Create a new SelectMenu.

    Parameters

    • type: SelectMenuTypes
    • customID: string

      The custom ID of this select menu.

    Returns SelectMenu

Properties

channelTypes?: ChannelTypes[]
customID: string
disabled: boolean
load: any

this method is meant to be for internal use only, don't use it, as it may break or change at a moments notice

maxValues?: number
minValues?: number
options: SelectOption[]
placeholder?: string

Methods

  • Add an option to this select menu.

    Parameters

    • label: string

      The label for this option.

    • value: string

      The value of this option.

    • Optional description: string

      The description of this option.

    • Optional emoji: PartialEmoji

      The emoji to displayed with this option.

    • Optional defaultSelection: boolean

    Returns SelectMenu

  • Add options to this select menu in bulk.

    Parameters

    Returns SelectMenu

  • Clear all currently present options on this select menu.

    Returns SelectMenu

  • Disable this component.

    Returns SelectMenu

  • Enable this component.

    Returns SelectMenu

  • Set the valid channel types for a channel select menu.

    Parameters

    Returns SelectMenu

  • Set the custom ID of this select menu.

    Parameters

    • customID: string

      A developer-defined identifier for the button, max 100 characters.

    Returns SelectMenu

  • Set the placeholder of this select menu.

    Parameters

    • placeholder: string

      Custom placeholder text if nothing is selected, max 100 characters.

    Returns SelectMenu

  • Set the minimum/maximum values of this select menu.

    Parameters

    • Optional min: number

      The minimum selected values.

    • Optional max: number

      The maximum selected values.

    Returns SelectMenu

  • converts this SelectMenu instance to json.

    Returns SelectMenuComponent

Generated using TypeDoc