Class AutocompleteState


  • public class AutocompleteState
    extends java.lang.Object
    Represents a state of autocomplete It contains the Command, the current Argument and its value, the other specified arguments and its values, the TextChannel if presents and the User
    • Constructor Detail

      • AutocompleteState

        public AutocompleteState​(Command command,
                                 org.javacord.api.entity.channel.TextChannel channel,
                                 org.javacord.api.entity.user.User sender,
                                 Argument currentArgument,
                                 java.util.Optional<?> currentValue,
                                 java.util.Map<Argument,​java.util.Optional<?>> argumentValues)
    • Method Detail

      • getCommand

        public Command getCommand()
      • getChannel

        public java.util.Optional<org.javacord.api.entity.channel.TextChannel> getChannel()
      • getSender

        public org.javacord.api.entity.user.User getSender()
      • getCurrentArgument

        public Argument getCurrentArgument()
      • getCurrentValue

        public java.util.Optional<?> getCurrentValue()
      • getArgumentValues

        public java.util.Map<Argument,​java.util.Optional<?>> getArgumentValues()