Class SelectMenuInteractionEvent
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.SelectMenuInteractionEvent
- All Implemented Interfaces:
ISnowflake,GenericEvent,IDeferrableCallback,IMessageEditCallback,IReplyCallback,ComponentInteraction,SelectMenuInteraction,Interaction
public class SelectMenuInteractionEvent
extends GenericComponentInteractionCreateEvent
implements SelectMenuInteraction
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
ConstructorsConstructorDescriptionSelectMenuInteractionEvent(JDA api, long responseNumber, SelectMenuInteraction interaction) -
Method Summary
Modifier and TypeMethodDescriptionTheActionComponentinstance.TheInteractioninstance.The selected values.Methods inherited from class net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent
deferEdit, deferReply, getChannel, getComponentId, getComponentType, getHook, getMessage, getMessageIdLongMethods inherited from class net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent
getGuild, getGuildLocale, getIdLong, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledgedMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumberMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.interactions.components.ComponentInteraction
getChannel, getComponentId, getComponentType, 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, editMessageEmbeds, editMessageEmbeds, editMessageFormatMethods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannelType, getGuild, getGuildChannel, getGuildLocale, getJDA, getMember, getMessageChannel, getNewsChannel, getPrivateChannel, getTextChannel, getThreadChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, getVoiceChannel, isAcknowledged, isFromGuildMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyEmbeds, replyEmbeds, replyFile, replyFile, replyFile, replyFile, replyFormatMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreatedMethods inherited from interface net.dv8tion.jda.api.interactions.components.selections.SelectMenuInteraction
editSelectMenu, getSelectedOptions, getSelectMenu
-
Constructor Details
-
SelectMenuInteractionEvent
public SelectMenuInteractionEvent(@Nonnull JDA api, long responseNumber, @Nonnull SelectMenuInteraction 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- Overrides:
getComponentin classGenericComponentInteractionCreateEvent- Returns:
- The
ActionComponent
-
getValues
Description copied from interface:SelectMenuInteractionThe selected values. These are defined in the individualSelectOptions.- Specified by:
getValuesin interfaceSelectMenuInteraction- Returns:
ListofSelectOption.getValue()
-