Interface AutocompleteInteraction

    • 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 of SlashCommandOptionChoice which 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.