Class StringSelectInteractionEvent
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<String,StringSelectMenu>
net.dv8tion.jda.api.events.interaction.component.StringSelectInteractionEvent
- All Implemented Interfaces:
ISnowflake,GenericEvent,IDeferrableCallback,IMessageEditCallback,IModalCallback,IReplyCallback,ComponentInteraction,SelectMenuInteraction<String,,StringSelectMenu> StringSelectInteraction,ICustomIdInteraction,Interaction
public class StringSelectInteractionEvent
extends GenericSelectMenuInteractionEvent<String,StringSelectMenu>
implements StringSelectInteraction
Indicates that a custom
StringSelectMenu 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.
Use GenericSelectMenuInteractionEvent.getValues() or StringSelectInteraction.getSelectedOptions() to handle the selected options.
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStringSelectInteractionEvent(JDA api, long responseNumber, StringSelectInteraction interaction) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.interaction.component.GenericSelectMenuInteractionEvent
getComponent, getValuesMethods inherited from class net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent
deferEdit, deferReply, getChannel, getComponentId, getComponentType, getHook, getMessage, getMessageIdLong, replyModalMethods inherited from class net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent
getChannelIdLong, getContext, getEntitlements, getGuild, getGuildLocale, getIdLong, getIntegrationOwners, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledgedMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.interactions.components.ComponentInteraction
getChannel, getComponentId, getComponentType, getCustomId, getGuildChannel, getMessage, getMessageId, getMessageIdLong, getUniqueIdMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHookMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IMessageEditCallback
deferEdit, editComponents, 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, getContext, getEntitlements, getGuild, getGuildLocale, getIntegrationOwners, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromAttachedGuild, isFromGuildMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, 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, getSelectMenuMethods inherited from interface net.dv8tion.jda.api.interactions.components.selections.StringSelectInteraction
getSelectedOptions, getValues
-
Constructor Details
-
StringSelectInteractionEvent
public StringSelectInteractionEvent(@Nonnull JDA api, long responseNumber, @Nonnull StringSelectInteraction interaction)
-
-
Method Details
-
getInteraction
Description copied from class:GenericInteractionCreateEventTheInteractioninstance.
Note that this event is a delegate which implements the same interface.- Overrides:
getInteractionin classGenericSelectMenuInteractionEvent<String,StringSelectMenu> - Returns:
- The
Interaction
-