CoreClasses
RoleSelectMenu
Extends
Constructors
new RoleSelectMenu()
new RoleSelectMenu(
data
?):RoleSelectMenu
Parameters
Parameter | Type |
---|---|
data ? | object |
data.additionalData ? | ComponentAdditionalData |
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Description | Overrides | Inherited from |
---|---|---|---|---|---|---|
additionalData | public | null | ComponentAdditionalData | null | - | - | AnySelectMenu .additionalData |
customId | abstract | string | undefined | The custom ID of the component | - | AnySelectMenu .customId |
defaultValues? | public | APISelectMenuDefaultValue <Role >[] | undefined | - | - | - |
defer | public | boolean | false | Whether the component response should be automatically deferred | - | AnySelectMenu .defer |
disabled? | public | boolean | undefined | - | - | AnySelectMenu .disabled |
ephemeral | public | boolean | false | Whether the component response should be ephemeral | - | AnySelectMenu .ephemeral |
maxValues? | public | number | undefined | - | - | AnySelectMenu .maxValues |
minValues? | public | number | undefined | - | - | AnySelectMenu .minValues |
placeholder? | public | string | undefined | - | - | AnySelectMenu .placeholder |
type | public | RoleSelect | ComponentType.RoleSelect | The type of the component | AnySelectMenu .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 | RoleSelectMenuInteraction |
Returns
Promise
<void
>
Overrides
serialize()
serialize():
APISelectMenuComponent
Returns
APISelectMenuComponent
Inherited from
serializeOptions()
serializeOptions():
object
Returns
object
Name | Type |
---|---|
default_values | undefined | APISelectMenuDefaultValue <Role >[] |
type | RoleSelect |