Interface StringSelectInteraction
- All Superinterfaces:
ComponentInteraction
,IDeferrableCallback
,IMessageEditCallback
,IModalCallback
,Interaction
,IPremiumRequiredReplyCallback
,IReplyCallback
,ISnowflake
,SelectMenuInteraction<String,
StringSelectMenu>
- All Known Implementing Classes:
StringSelectInteractionEvent
Component Interaction for a
StringSelectMenu
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Unmodifiable List
<SelectOption> This resolves the selectedvalues
to the representativeSelectOption
instances.The selected values.Methods inherited from interface net.dv8tion.jda.api.interactions.components.ComponentInteraction
getChannel, getComponentId, getComponentType, getGuildChannel, getMessage, getMessageId, getMessageIdLong
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHook
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IMessageEditCallback
deferEdit, editComponents, editComponents, editMessage, editMessage, editMessageAttachments, editMessageAttachments, editMessageEmbeds, editMessageEmbeds, editMessageFormat
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IModalCallback
replyModal
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannelId, getChannelIdLong, getChannelType, getEntitlements, getGuild, getGuildLocale, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IPremiumRequiredReplyCallback
replyWithPremiumRequired
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPoll
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.interactions.components.selections.SelectMenuInteraction
editSelectMenu, getComponent, getSelectMenu
-
Method Details
-
getValues
The selected values.
These are defined in the individualSelectOptions
.- Specified by:
getValues
in interfaceSelectMenuInteraction<String,
StringSelectMenu> - Returns:
List
ofSelectOption.getValue()
-
getSelectedOptions
This resolves the selectedvalues
to the representativeSelectOption
instances.
It is recommended to checkgetValues()
directly instead of using the options.- Returns:
- Immutable
List
of the selected options
-