Package org.javacord.api.interaction
Interface AutocompleteInteraction
-
- All Superinterfaces:
ApplicationCommandInteraction,DiscordEntity,InteractionBase,SlashCommandInteraction,SlashCommandInteractionOptionsProvider
public interface AutocompleteInteraction extends SlashCommandInteraction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SlashCommandInteractionOptiongetFocusedOption()Gets the focused option that triggered this AutocompleteInteraction.java.util.concurrent.CompletableFuture<java.lang.Void>respondWithChoices(java.util.List<SlashCommandOptionChoice> choices)Respond with a list of choices that the user should be able to pick of based on his input.-
Methods inherited from interface org.javacord.api.interaction.ApplicationCommandInteraction
getCommandId, getCommandIdAsString, getCommandName
-
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.SlashCommandInteraction
getArguments
-
Methods inherited from interface org.javacord.api.interaction.SlashCommandInteractionOptionsProvider
getOptionAttachmentValueByIndex, getOptionAttachmentValueByName, getOptionBooleanValueByIndex, getOptionBooleanValueByName, getOptionByIndex, getOptionByName, getOptionChannelValueByIndex, getOptionChannelValueByName, getOptionDecimalValueByIndex, getOptionDecimalValueByName, getOptionLongValueByIndex, getOptionLongValueByName, getOptionMentionableValueByIndex, getOptionMentionableValueByName, getOptionRoleValueByIndex, getOptionRoleValueByName, getOptions, getOptionStringRepresentationValueByIndex, getOptionStringRepresentationValueByName, getOptionStringValueByIndex, getOptionStringValueByName, getOptionUserValueByIndex, getOptionUserValueByName, requestOptionMentionableValueByIndex, requestOptionMentionableValueByName, requestOptionUserValueByIndex, requestOptionUserValueByName
-
-
-
-
Method Detail
-
respondWithChoices
java.util.concurrent.CompletableFuture<java.lang.Void> respondWithChoices(java.util.List<SlashCommandOptionChoice> choices)
Respond with a list of choices that the user should be able to pick of based on his input.- Parameters:
choices- A list ofSlashCommandOptionChoicewhich the user will see as suggestions.- Returns:
- A CompletableFuture to check if the response was successful.
-
getFocusedOption
SlashCommandInteractionOption getFocusedOption()
Gets the focused option that triggered this AutocompleteInteraction.- Returns:
- The focused option.
-
-