Skip to content

MentionableSelectMenu

Represents a Select Menu for selecting mentionable entities.

Example

1
const mentionableSelectMenu = new MentionableSelectMenu();
2
mentionableSelectMenu.setCustomId("mentionable-select");

Extends

Constructors

new MentionableSelectMenu(data)

1
new MentionableSelectMenu(data: Partial<APIMentionableSelectComponent>): MentionableSelectMenu

Parameters

ParameterType
dataPartial<APIMentionableSelectComponent>

Returns

MentionableSelectMenu

Overrides

SelectMenu.constructor

Source

seyfert/src/builders/SelectMenu.ts:187

Properties

PropertyModifierTypeInherited from
datapublicPartial<APIMentionableSelectComponent>SelectMenu.data

Methods

addDefaultMentionables()

1
addDefaultMentionables(...mentionables: RestOrArray<MentionableDefaultElement>): MentionableSelectMenu

Adds default selected roles or users for the select menu.

Parameters

ParameterTypeDescription
mentionablesRestOrArray<MentionableDefaultElement>Role/User id and type to be added as default.

Returns

MentionableSelectMenu

The current MentionableSelectMenu instance.

Source

seyfert/src/builders/SelectMenu.ts:209


setCustomId()

1
setCustomId(id: string): this

Sets the custom ID for the select menu.

Parameters

ParameterTypeDescription
idstringThe custom ID for the select menu.

Returns

this

The current SelectMenu instance.

Inherited from

SelectMenu.setCustomId

Source

seyfert/src/builders/SelectMenu.ts:71


setDefaultMentionables()

1
setDefaultMentionables(...mentionables: RestOrArray<MentionableDefaultElement>): MentionableSelectMenu

Sets the default selected roles or users for the select menu.

Parameters

ParameterTypeDescription
mentionablesRestOrArray<MentionableDefaultElement>Role/User id and type to be set as default.

Returns

MentionableSelectMenu

The current MentionableSelectMenu instance.

Source

seyfert/src/builders/SelectMenu.ts:196


setDisabled()

1
setDisabled(disabled: boolean): this

Sets whether the select menu is disabled. [disabled=true] - Indicates whether the select menu is disabled.

Parameters

ParameterTypeDefault value
disabledbooleantrue

Returns

this

The current SelectMenu instance.

Inherited from

SelectMenu.setDisabled

Source

seyfert/src/builders/SelectMenu.ts:102


setPlaceholder()

1
setPlaceholder(placeholder: string): this

Sets the placeholder text for the select menu.

Parameters

ParameterTypeDescription
placeholderstringThe placeholder text.

Returns

this

The current SelectMenu instance.

Inherited from

SelectMenu.setPlaceholder

Source

seyfert/src/builders/SelectMenu.ts:81


setValuesLength()

1
setValuesLength(options: Partial<OptionValuesLength>): this

Sets the maximum and minimum number of selected values for the select menu.

Parameters

ParameterTypeDescription
optionsPartial<OptionValuesLength>The maximum and minimum values.

Returns

this

The current SelectMenu instance.

Inherited from

SelectMenu.setValuesLength

Source

seyfert/src/builders/SelectMenu.ts:91


toJSON()

1
toJSON(): APIMentionableSelectComponent

Returns

APIMentionableSelectComponent

Inherited from

SelectMenu.toJSON

Source

seyfert/src/builders/Base.ts:8