Class EntitySelectInteractionEvent
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<IMentionable,EntitySelectMenu>
net.dv8tion.jda.api.events.interaction.component.EntitySelectInteractionEvent
- All Implemented Interfaces:
ISnowflake
,GenericEvent
,IDeferrableCallback
,IMessageEditCallback
,IModalCallback
,IPremiumRequiredReplyCallback
,IReplyCallback
,ComponentInteraction
,EntitySelectInteraction
,SelectMenuInteraction<IMentionable,
,EntitySelectMenu> Interaction
public class EntitySelectInteractionEvent
extends GenericSelectMenuInteractionEvent<IMentionable,EntitySelectMenu>
implements EntitySelectInteraction
Indicates that a custom
EntitySelectMenu
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 getMentions()
or GenericSelectMenuInteractionEvent.getValues()
to handle the selected entities.
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
ConstructorDescriptionEntitySelectInteractionEvent
(JDA api, long responseNumber, EntitySelectInteraction interaction) -
Method Summary
Modifier and TypeMethodDescriptionTheInteraction
instance.The resolvedMentions
for this selection.Methods inherited from class net.dv8tion.jda.api.events.interaction.component.GenericSelectMenuInteractionEvent
getComponent, getValues
Methods inherited from class net.dv8tion.jda.api.events.interaction.component.GenericComponentInteractionCreateEvent
deferEdit, deferReply, getChannel, getComponentId, getComponentType, getHook, getMessage, getMessageIdLong, replyModal, replyWithPremiumRequired
Methods inherited from class net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent
getChannelIdLong, getEntitlements, getGuild, getGuildLocale, getIdLong, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledged
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
Methods inherited from interface net.dv8tion.jda.api.interactions.components.selections.SelectMenuInteraction
editSelectMenu, getComponent, getSelectMenu, getValues
-
Constructor Details
-
EntitySelectInteractionEvent
public EntitySelectInteractionEvent(@Nonnull JDA api, long responseNumber, @Nonnull EntitySelectInteraction interaction)
-
-
Method Details
-
getInteraction
Description copied from class:GenericInteractionCreateEvent
TheInteraction
instance.
Note that this event is a delegate which implements the same interface.- Overrides:
getInteraction
in classGenericSelectMenuInteractionEvent<IMentionable,
EntitySelectMenu> - Returns:
- The
Interaction
-
getMentions
Description copied from interface:EntitySelectInteraction
- Specified by:
getMentions
in interfaceEntitySelectInteraction
- Returns:
- The mentions
-