Interface SelectMenuInteraction<T,S extends SelectMenu>
- Type Parameters:
T
- The select menu value typeS
- The type of select menu
- All Superinterfaces:
ComponentInteraction
,IDeferrableCallback
,IMessageEditCallback
,IModalCallback
,Interaction
,IPremiumRequiredReplyCallback
,IReplyCallback
,ISnowflake
- All Known Subinterfaces:
EntitySelectInteraction
,StringSelectInteraction
- All Known Implementing Classes:
EntitySelectInteractionEvent
,GenericSelectMenuInteractionEvent
,StringSelectInteractionEvent
Component Interaction for a
SelectMenu
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault RestAction
<Void> editSelectMenu
(SelectMenu newMenu) Update the select menu with a new select menu instance.TheActionComponent
instance.default S
TheSelectMenu
this interaction belongs to.The provided selection.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
-
Method Details
-
getComponent
Description copied from interface:ComponentInteraction
TheActionComponent
instance.- Specified by:
getComponent
in interfaceComponentInteraction
- Returns:
- The
ActionComponent
-
getSelectMenu
TheSelectMenu
this interaction belongs to.- Returns:
- The
SelectMenu
- See Also:
-
getValues
The provided selection.- Returns:
List
ofSelectMenuInteraction
-
editSelectMenu
Update the select menu with a new select menu instance.If this interaction is already acknowledged this will use
IDeferrableCallback.getHook()
and otherwiseIMessageEditCallback.editComponents(Collection)
directly to acknowledge the interaction.- Parameters:
newMenu
- The new select menu to use, or null to remove this menu from the message entirely- Returns:
RestAction
-