Preview deployment

class ChannelSelectMenuComponent

export class ChannelSelectMenuComponent extends BaseSelectMenuComponent<APIChannelSelectComponent>

Represents a channel select menu component

readonlyoptional
channelTypes? : Array<ChannelType>

The options in this select menu

readonly
customId : string

The custom id of this select menu

Inherited from: BaseSelectMenuComponent

readonly
data : Readonly<Data>

The API data associated with this component

Inherited from: Component

readonly
disabled : boolean

Whether this select menu is disabled

Inherited from: BaseSelectMenuComponent

readonly
maxValues : number | null

The maximum amount of options that can be selected

Inherited from: BaseSelectMenuComponent

readonly
minValues : number | null

The minimum amount of options that must be selected

Inherited from: BaseSelectMenuComponent

readonly
placeholder : string | null

The placeholder for this select menu

Inherited from: BaseSelectMenuComponent

readonly
type : Data['type']

The type of the component

Inherited from: Component

equals(
other: this | Data
) : boolean

Whether or not the given components are equal

Inherited from: Component

getChannelTypes() : ChannelType[] | null

toJSON() : Data

Returns the API-compatible JSON for this component

Inherited from: Component