feat(core): support root command deletion & standardize capabilities (#369)

This commit is contained in:
Alexander Söderberg 2022-06-08 13:23:41 +02:00 committed by Jason
parent 08a97b2c4f
commit 28ff5d3003
14 changed files with 416 additions and 16 deletions

View file

@ -23,6 +23,7 @@
//
package cloud.commandframework.pircbotx;
import cloud.commandframework.CloudCapability;
import cloud.commandframework.CommandManager;
import cloud.commandframework.CommandTree;
import cloud.commandframework.captions.Caption;
@ -114,6 +115,9 @@ public class PircBotXCommandManager<C> extends CommandManager<C> {
TypeToken.get(User.class),
parameters -> new UserArgument.UserArgumentParser<>()
);
// No "native" command system means that we can delete commands just fine.
this.registerCapability(CloudCapability.StandardCapabilities.ROOT_COMMAND_DELETION);
}
@Override