Interface StringSelectInteraction
- All Superinterfaces:
ComponentInteraction,ICustomIdInteraction,IDeferrableCallback,IMessageEditCallback,IModalCallback,Interaction,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 selectedvaluesto the representativeSelectOptioninstances.The selected values.Methods inherited from interface net.dv8tion.jda.api.interactions.components.ComponentInteraction
getChannel, getComponentId, getComponentType, getCustomId, getGuildChannel, getMessage, getMessageId, getMessageIdLong, getUniqueIdMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHookMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IMessageEditCallback
deferEdit, editComponents, editComponents, editComponents, editMessage, editMessage, editMessageAttachments, editMessageAttachments, editMessageEmbeds, editMessageEmbeds, editMessageFormatMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IModalCallback
replyModalMethods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannelId, getChannelIdLong, getChannelType, getContext, getEntitlements, getGuild, getGuildLocale, getIntegrationOwners, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromAttachedGuild, isFromGuildMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPollMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreatedMethods 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:
getValuesin interfaceSelectMenuInteraction<String,StringSelectMenu> - Returns:
ListofSelectOption.getValue()
-
getSelectedOptions
This resolves the selectedvaluesto the representativeSelectOptioninstances.
It is recommended to checkgetValues()directly instead of using the options.- Returns:
- Immutable
Listof the selected options
-