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 selectedvaluesto the representativeSelectOptioninstances.The selected values.Methods inherited from interface net.dv8tion.jda.api.interactions.components.ComponentInteraction
getChannel, getComponentId, getComponentType, getGuildChannel, getMessage, getMessageId, getMessageIdLongMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHookMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IMessageEditCallback
deferEdit, 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, getEntitlements, getGuild, getGuildLocale, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromGuildMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IPremiumRequiredReplyCallback
replyWithPremiumRequiredMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, 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
-