class BaseSelectMenuComponent

extends

Component<Data>
export class BaseSelectMenuComponent<Data extends APISelectMenuComponent> extends Component<Data>

Represents a select menu component

Constructors

constructor(
data: Data
)

Constructs a new instance of the BaseSelectMenuComponent class

Type Parameters

readonly
customId : string

The custom id of this select menu

The API data associated with this component

readonly
disabled : boolean

Whether this select menu is disabled

readonly
maxValues : number | null

The maximum amount of options that can be selected

readonly
minValues : number | null

The minimum amount of options that must be selected

readonly
placeholder : string | null

The placeholder for this select menu

readonly
type : ComponentType

The type of the component

equals(
other: this | Data
) : boolean

Whether or not the given components are equal

Inherited from: Component

toJSON() : Data

Returns the API-compatible JSON for this component

Inherited from: Component