AnySelectMenu
Extends
Extended by
Constructors
Constructor
new AnySelectMenu(
data?
):AnySelectMenu
Parameters
Parameter | Type |
---|---|
data? | { additionalData : ComponentAdditionalData ; } |
data.additionalData? | ComponentAdditionalData |
Returns
AnySelectMenu
Inherited from
Properties
Property | Modifier | Type | Default value | Description | Overrides | Inherited from |
---|---|---|---|---|---|---|
additionalData | public | null | ComponentAdditionalData | null | - | - | BaseComponent .additionalData |
customId | abstract | string | undefined | The custom ID of the component | - | BaseComponent .customId |
defer | public | boolean | false | Whether the component response should be automatically deferred | - | BaseComponent .defer |
disabled? | public | boolean | undefined | - | - | - |
ephemeral | public | boolean | false | Whether the component response should be ephemeral | - | BaseComponent .ephemeral |
maxValues? | public | number | undefined | - | - | - |
minValues? | public | number | undefined | - | - | - |
placeholder? | public | string | undefined | - | - | - |
type | abstract | AnySelectMenuComponentType | undefined | The type of the component | BaseComponent .type | - |
Methods
createId()
createId(
additionalData
):string
Create a custom ID to use for this component that embeds additional data that you want to be handed
Parameters
Parameter | Type | Description |
---|---|---|
additionalData | null | ComponentAdditionalData | The additional data that you want to be passed in this component's custom ID |
Returns
string
The custom ID to use
Inherited from
run()
abstract
run(interaction
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
interaction | AnySelectMenuInteraction |
Returns
Promise
<void
>
serialize()
serialize():
APISelectMenuComponent
Returns
APISelectMenuComponent
Overrides
BaseComponent.serialize
serializeOptions()
abstract
serializeOptions(): {channel_types
:undefined
|ChannelType
[];default_values
:undefined
|APISelectMenuDefaultValue
<Channel
>[];type
:ChannelSelect
; } | {options
:APISelectMenuOption
[];type
:StringSelect
; } | {default_values
:undefined
|APISelectMenuDefaultValue
<Role
>[];type
:RoleSelect
; } | {default_values
:undefined
|APISelectMenuDefaultValue
<User
>[];type
:UserSelect
; } | {default_values
:undefined
|APISelectMenuDefaultValue
<Role
|User
>[];type
:MentionableSelect
; }
Returns
{ channel_types
: undefined
| ChannelType
[]; default_values
: undefined
| APISelectMenuDefaultValue
<Channel
>[]; type
: ChannelSelect
; } | { options
: APISelectMenuOption
[]; type
: StringSelect
; } | { default_values
: undefined
| APISelectMenuDefaultValue
<Role
>[]; type
: RoleSelect
; } | { default_values
: undefined
| APISelectMenuDefaultValue
<User
>[]; type
: UserSelect
; } | { default_values
: undefined
| APISelectMenuDefaultValue
<Role
| User
>[]; type
: MentionableSelect
; }