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, getRegisteredCommandServer, getRegisteredCommandServerId
-
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, getBotPermissions, getChannel, getLocale, getServer, getServerLocale, getToken, getType, getUser, getVersion, respondLater, respondLater, respondWithModal, respondWithModal
-
Methods inherited from interface org.javacord.api.interaction.SlashCommandInteraction
getFullCommandName
-
Methods inherited from interface org.javacord.api.interaction.SlashCommandInteractionOptionsProvider
getArgumentAttachmentValueByIndex, getArgumentAttachmentValueByName, getArgumentBooleanValueByIndex, getArgumentBooleanValueByName, getArgumentByIndex, getArgumentByName, getArgumentChannelValueByIndex, getArgumentChannelValueByName, getArgumentDecimalValueByIndex, getArgumentDecimalValueByName, getArgumentLongValueByIndex, getArgumentLongValueByName, getArgumentMentionableValueByIndex, getArgumentMentionableValueByName, getArgumentRoleValueByIndex, getArgumentRoleValueByName, getArguments, getArgumentStringRepresentationValueByIndex, getArgumentStringRepresentationValueByName, getArgumentStringValueByIndex, getArgumentStringValueByName, getArgumentUserValueByIndex, getArgumentUserValueByName, getOptionByIndex, getOptionByName, getOptions, requestArgumentMentionableValueByIndex, requestArgumentMentionableValueByName, requestArgumentUserValueByIndex, requestArgumentUserValueByName
-
-
-
-
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.
-
-