SelectMenuOptions: {
    maxValues?: number;
    minValues?: number;
    placeholder?: string;
    resetButton?: Pick<BaseButtonComponentData, "label" | "emoji" | "style">;
}

Type declaration

  • Optional maxValues?: number

    The maximum number of roles selectable for the select menu. Should not be greater than the number of roles available in the menu.

    Remarks

    Do not set this option if you want to create a single-select menu.

    Default

    1
    

    Max

    25

  • Optional minValues?: number

    The minimum number of roles selectable for the select menu.

    Remarks

    Do not set this option if you want to create a single-select menu.

    Min

    1

  • Optional placeholder?: string

    The placeholder for the select menu.

    Default

    "Select a role"
    
  • Optional resetButton?: Pick<BaseButtonComponentData, "label" | "emoji" | "style">

    The button to reset the select menu.