Class UserArgument.UserParser<C>
java.lang.Object
cloud.commandframework.jda.parsers.UserArgument.UserParser<C>
- All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.User>
- Enclosing class:
- UserArgument<C>
public static final class UserArgument.UserParser<C>
extends Object
implements cloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.User>
-
Field Summary
Fields inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
DEFAULT_ARGUMENT_COUNT -
Constructor Summary
ConstructorsConstructorDescriptionUserParser(@NonNull Set<UserArgument.ParserMode> modes) Deprecated.UserParser(@NonNull Set<UserArgument.ParserMode> modes, @NonNull UserArgument.Isolation isolationLevel) Construct a new argument parser forUser -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
getRequestedArgumentCount, map, suggestions
-
Constructor Details
-
UserParser
Deprecated.UseUserParser(Set, Isolation)instead.Construct a new argument parser forUser- Parameters:
modes- List of parsing modes to use when parsing- Throws:
IllegalArgumentException- If no parsing modes were provided
-
UserParser
public UserParser(@NonNull Set<UserArgument.ParserMode> modes, @NonNull UserArgument.Isolation isolationLevel) Construct a new argument parser forUser- Parameters:
modes- List of parsing modes to use when parsingisolationLevel- Level of isolation to maintain when parsing- Throws:
IllegalArgumentException- If no parsing modes were provided
-
-
Method Details
-
parse
public @NonNull cloud.commandframework.arguments.parser.ArgumentParseResult<net.dv8tion.jda.api.entities.User> parse(@NonNull cloud.commandframework.context.CommandContext<C> commandContext, @NonNull Queue<@NonNull String> inputQueue) - Specified by:
parsein interfacecloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.User>
-
isContextFree
public boolean isContextFree()- Specified by:
isContextFreein interfacecloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.User>
-
UserParser(Set, Isolation)instead.