Restore old UserParser constructor and deprecate it
This commit is contained in:
parent
c0df263a32
commit
f83eb6c4a1
1 changed files with 12 additions and 0 deletions
|
|
@ -182,6 +182,18 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
|
||||||
* Construct a new argument parser for {@link User}
|
* Construct a new argument parser for {@link User}
|
||||||
*
|
*
|
||||||
* @param modes List of parsing modes to use when parsing
|
* @param modes List of parsing modes to use when parsing
|
||||||
|
* @throws java.lang.IllegalArgumentException If no parsing modes were provided
|
||||||
|
* @deprecated Use {@link #UserParser(Set, Isolation)} instead.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public UserParser(final @NonNull Set<ParserMode> modes) {
|
||||||
|
this(modes, Isolation.GLOBAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct a new argument parser for {@link User}
|
||||||
|
*
|
||||||
|
* @param modes List of parsing modes to use when parsing
|
||||||
* @param isolationLevel Level of isolation to maintain when parsing
|
* @param isolationLevel Level of isolation to maintain when parsing
|
||||||
* @throws java.lang.IllegalArgumentException If no parsing modes were provided
|
* @throws java.lang.IllegalArgumentException If no parsing modes were provided
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue