EntitySelectMenu

inline fun EntitySelectMenu(customId: String, types: Collection<EntitySelectMenu.SelectTarget>, uniqueId: Int = -1, placeholder: String? = null, valueRange: IntRange? = null, channelTypes: Collection<ChannelType> = emptyList(), defaultValues: Collection<EntitySelectMenu.DefaultValue> = emptyList(), required: Boolean? = null, disabled: Boolean = false, block: InlineEntitySelectMenu.() -> Unit = {}): EntitySelectMenu(source)
inline fun EntitySelectMenu(customId: String, type: EntitySelectMenu.SelectTarget, vararg types: EntitySelectMenu.SelectTarget, uniqueId: Int = -1, placeholder: String? = null, valueRange: IntRange? = null, channelTypes: Collection<ChannelType> = emptyList(), defaultValues: Collection<EntitySelectMenu.DefaultValue> = emptyList(), required: Boolean? = null, disabled: Boolean = false, block: InlineEntitySelectMenu.() -> Unit = {}): EntitySelectMenu(source)

Represents a selection of options, see EntitySelectMenu.

Parameters

customId

Custom identifier of this component, see EntitySelectMenu.Builder.setCustomId

types

The SelectTargets that should be supported by this menu, see EntitySelectMenu.Builder.setEntityTypes

uniqueId

Unique identifier of this component, see EntitySelectMenu.Builder.setUniqueId

placeholder

Displayed when no selections have been made yet, see EntitySelectMenu.Builder.setPlaceholder

valueRange

The minimum and maximum amount of values a user can select, must not exceed the amount of options

channelTypes

For select menus with the CHANNEL type, the ChannelTypes that should be supported by this menu, see EntitySelectMenu.Builder.setChannelTypes

defaultValues

The default values that will be shown to the user, see EntitySelectMenu.Builder.setDefaultValues

required

Whether the user must populate this select menu if inside a Modal

disabled

Whether this select menu should be disabled, cannot be true in modals

block

Lambda allowing further configuration