Package org.javacord.api.interaction
Interface SelectMenuInteraction
-
- All Superinterfaces:
DiscordEntity,InteractionBase,MessageComponentInteraction,MessageComponentInteractionBase,Specializable<InteractionBase>
public interface SelectMenuInteraction extends MessageComponentInteraction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<SelectMenuOption>getChosenOptions()Get the options the user was chosen.java.lang.StringgetCustomId()Get the custom id of the select menu.intgetMaximumValues()Gets the maximum amount of options which can be selected.intgetMinimumValues()Gets the minimum amount of options which must be selected.java.util.Optional<java.lang.String>getPlaceholder()Get the placeholder of the select menu.java.util.List<SelectMenuOption>getPossibleOptions()Get all options from the select menu.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
Methods inherited from interface org.javacord.api.interaction.InteractionBase
createFollowupMessageBuilder, createImmediateResponder, getApplicationId, getChannel, getLocale, getServer, getServerLocale, getToken, getType, getUser, getVersion, respondLater, respondLater, respondWithModal, respondWithModal
-
Methods inherited from interface org.javacord.api.interaction.MessageComponentInteraction
asButtonInteraction, asSelectMenuInteraction
-
Methods inherited from interface org.javacord.api.interaction.MessageComponentInteractionBase
acknowledge, createOriginalMessageUpdater, getComponentType, getMessage
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
getChosenOptions
java.util.List<SelectMenuOption> getChosenOptions()
Get the options the user was chosen.- Returns:
- The options.
-
getPossibleOptions
java.util.List<SelectMenuOption> getPossibleOptions()
Get all options from the select menu.- Returns:
- All options.
-
getCustomId
java.lang.String getCustomId()
Get the custom id of the select menu.- Specified by:
getCustomIdin interfaceMessageComponentInteractionBase- Returns:
- The custom ID.
-
getPlaceholder
java.util.Optional<java.lang.String> getPlaceholder()
Get the placeholder of the select menu.- Returns:
- The placeholder.
-
getMinimumValues
int getMinimumValues()
Gets the minimum amount of options which must be selected.- Returns:
- The min values.
-
getMaximumValues
int getMaximumValues()
Gets the maximum amount of options which can be selected.- Returns:
- The max values.
-
-