Class GenericSelectMenuInteractionEvent<T, S extends SelectMenu>
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent
net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent
net.dv8tion.jda.api.events.interaction.component.GenericSelectMenuInteractionEvent<T,S>
- Type Parameters:
T- The select menu value typeS- The type of select menu
- All Implemented Interfaces:
ISnowflake, GenericEvent, IDeferrableCallback, IMessageEditCallback, IModalCallback, IReplyCallback, ComponentInteraction, SelectMenuInteraction<T,S>, ICustomIdInteraction, Interaction
- Direct Known Subclasses:
EntitySelectInteractionEvent, StringSelectInteractionEvent
public class GenericSelectMenuInteractionEvent<T, S extends SelectMenu>
extends GenericComponentInteractionCreateEvent
implements SelectMenuInteraction<T,S>
Indicates that a custom
SelectMenu on one of the bots messages was used by a user.
This fires when a user selects the options on one of the custom select menus attached to a bot or webhook message.
Requirements
To receive these events, you must unset the Interactions Endpoint URL in your application dashboard.
You can simply remove the URL for this endpoint in your settings at the Discord Developers Portal.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericSelectMenuInteractionEvent(JDA api, long responseNumber, SelectMenuInteraction<T, S> interaction) -
Method Summary
Modifier and TypeMethodDescriptionTheActionComponentinstance.TheInteractioninstance.The provided selection.Methods inherited from class GenericComponentInteractionCreateEvent
deferEdit, deferReply, getChannel, getComponentId, getComponentType, getHook, getMessage, getMessageIdLong, replyModalMethods inherited from class GenericInteractionCreateEvent
getChannelIdLong, getContext, getEntitlements, getGuild, getGuildLocale, getIdLong, getIntegrationOwners, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledgedMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods 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, getTimeCreatedMethods inherited from interface SelectMenuInteraction
editSelectMenu, getSelectMenu
-
Constructor Details
-
GenericSelectMenuInteractionEvent
public GenericSelectMenuInteractionEvent(@Nonnull JDA api, long responseNumber, @Nonnull SelectMenuInteraction<T, S> interaction)
-
-
Method Details
-
getInteraction
Description copied from class:GenericInteractionCreateEventTheInteractioninstance.
Note that this event is a delegate which implements the same interface.- Overrides:
getInteractionin classGenericComponentInteractionCreateEvent- Returns:
- The
Interaction
-
getComponent
Description copied from interface:ComponentInteractionTheActionComponentinstance.- Specified by:
getComponentin interfaceComponentInteraction- Specified by:
getComponentin interfaceSelectMenuInteraction<T, S extends SelectMenu>- Overrides:
getComponentin classGenericComponentInteractionCreateEvent- Returns:
- The
ActionComponent
-
getValues
Description copied from interface:SelectMenuInteractionThe provided selection.- Specified by:
getValuesin interfaceSelectMenuInteraction<T, S extends SelectMenu>- Returns:
ListofT
-