Use GLOBAL isolation by default
This commit is contained in:
parent
80ad84f2e8
commit
c0df263a32
2 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ public class JDACommandManager<C> extends CommandManager<C> {
|
|||
this.getParserRegistry().registerParserSupplier(TypeToken.get(User.class), parserParameters ->
|
||||
new UserArgument.UserParser<>(
|
||||
new HashSet<>(Arrays.asList(UserArgument.ParserMode.values())),
|
||||
UserArgument.Isolation.GUILD
|
||||
UserArgument.Isolation.GLOBAL
|
||||
));
|
||||
this.getParserRegistry().registerParserSupplier(TypeToken.get(MessageChannel.class), parserParameters ->
|
||||
new ChannelArgument.MessageParser<>(
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
|
|||
public static final class Builder<C> extends CommandArgument.Builder<C, User> {
|
||||
|
||||
private Set<ParserMode> modes = new HashSet<>();
|
||||
private Isolation isolationLevel = Isolation.GUILD;
|
||||
private Isolation isolationLevel = Isolation.GLOBAL;
|
||||
|
||||
private Builder(final @NonNull String name) {
|
||||
super(User.class, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue