Use GLOBAL isolation by default

This commit is contained in:
p5nbTgip0r 2021-01-25 19:52:43 -08:00 committed by Jason
parent 80ad84f2e8
commit c0df263a32
2 changed files with 2 additions and 2 deletions

View file

@ -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<>(

View file

@ -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);