BaseSelectMenuComponent

export class BaseSelectMenuComponent<Data extends APISelectMenuComponent> extends Component<Data>
export class BaseSelectMenuComponent<Data extends APISelectMenuComponent> extends Component<Data>
Represents a select menu component

Extends

Component<Data>
NameConstraintsOptionalDefaultDescription
DataAPISelectMenuComponentNoNone
constructor(data)
Constructs a new instance of the BaseSelectMenuComponent class
NameTypeOptionalDescription
dataDataNoNone
Readonly
customId:string
The custom id of this select menu
Readonly
data:Readonly<T>
The API data associated with this component
Inherited from 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:T['type']
The type of the component
Inherited from Component
equals(other):boolean
Whether or not the given components are equal
NameTypeOptionalDescription
otherthis | TNoThe component to compare against
Inherited from Component
toJSON():T
Returns the API-compatible JSON for this component
Inherited from Component