Class SelectMenuInteractEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.interaction.InteractionCreateEvent
-
- discord4j.core.event.domain.interaction.ComponentInteractEvent
-
- discord4j.core.event.domain.interaction.SelectMenuInteractEvent
-
@Experimental public class SelectMenuInteractEvent extends ComponentInteractEvent
Dispatched when a user interacts with aSelectMenu
the bot has sent.This is not directly dispatched by Discord, but is a utility specialization of
InteractionCreateEvent
.
-
-
Constructor Summary
Constructors Constructor Description SelectMenuInteractEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Interaction interaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getValues()
Get the values selected in the menu.-
Methods inherited from class discord4j.core.event.domain.interaction.ComponentInteractEvent
acknowledge, acknowledgeEphemeral, edit, edit, edit, getCustomId, getMessage, getMessageId
-
Methods inherited from class discord4j.core.event.domain.interaction.InteractionCreateEvent
createInteractionResponse, getInteraction, getInteractionResponse, reply, reply, reply, reply
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
SelectMenuInteractEvent
public SelectMenuInteractEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, Interaction interaction)
-
-
Method Detail
-
getValues
public List<String> getValues()
Get the values selected in the menu.- Returns:
- The values selected in the menu.
- See Also:
SelectMenu.Option.getValue()
-
-