chore(core): deprecate prefixed accessors/mutators in CommandManager (#377)
chore(core): deprecate prefixed accessors/mutators in CommandManager.java All prefixed (actual) getters/setters in CommandManager have been deprecated, and non-prefixed alternatives have been introduced. I've also put some effort into improving the JavaDocs of these methods.
This commit is contained in:
parent
687cd4c536
commit
296539d56c
48 changed files with 400 additions and 157 deletions
|
|
@ -105,16 +105,16 @@ public class JDACommandManager<C> extends CommandManager<C> {
|
|||
this.registerCommandPreProcessor(new JDACommandPreprocessor<>(this));
|
||||
|
||||
/* Register JDA Parsers */
|
||||
this.getParserRegistry().registerParserSupplier(TypeToken.get(User.class), parserParameters ->
|
||||
this.parserRegistry().registerParserSupplier(TypeToken.get(User.class), parserParameters ->
|
||||
new UserArgument.UserParser<>(
|
||||
new HashSet<>(Arrays.asList(UserArgument.ParserMode.values())),
|
||||
UserArgument.Isolation.GLOBAL
|
||||
));
|
||||
this.getParserRegistry().registerParserSupplier(TypeToken.get(MessageChannel.class), parserParameters ->
|
||||
this.parserRegistry().registerParserSupplier(TypeToken.get(MessageChannel.class), parserParameters ->
|
||||
new ChannelArgument.MessageParser<>(
|
||||
new HashSet<>(Arrays.asList(ChannelArgument.ParserMode.values()))
|
||||
));
|
||||
this.getParserRegistry().registerParserSupplier(TypeToken.get(Role.class), parserParameters ->
|
||||
this.parserRegistry().registerParserSupplier(TypeToken.get(Role.class), parserParameters ->
|
||||
new RoleArgument.RoleParser<>(
|
||||
new HashSet<>(Arrays.asList(RoleArgument.ParserMode.values()))
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue