Interface SelectMenuInteraction<T, S extends SelectMenu>
- Type Parameters:
T- The select menu value typeS- The type of select menu
- All Superinterfaces:
ComponentInteraction, ICustomIdInteraction, IDeferrableCallback, IMessageEditCallback, IModalCallback, Interaction, 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.TheActionComponentinstance.default STheSelectMenuthis interaction belongs to.The provided selection.Methods inherited from interface ComponentInteraction
getChannel, getComponentId, getComponentType, getCustomId, getGuildChannel, getMessage, getMessageId, getMessageIdLong, getUniqueIdMethods inherited from interface IDeferrableCallback
getHookMethods inherited from interface IMessageEditCallback
deferEdit, editComponents, editComponents, editComponents, editMessage, editMessage, editMessageAttachments, editMessageAttachments, editMessageEmbeds, editMessageEmbeds, editMessageFormatMethods inherited from interface IModalCallback
replyModalMethods inherited from interface Interaction
getChannelId, getChannelIdLong, getChannelType, getContext, getEntitlements, getGuild, getGuildLocale, getIntegrationOwners, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromAttachedGuild, isFromGuildMethods inherited from interface IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPollMethods inherited from interface ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getComponent
Description copied from interface:ComponentInteractionTheActionComponentinstance.- Specified by:
getComponentin interfaceComponentInteraction- Returns:
- The
ActionComponent
-
getSelectMenu
TheSelectMenuthis interaction belongs to.- Returns:
- The
SelectMenu - See Also:
-
getValues
-
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
-