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.jda;
import cloud.commandframework.CloudCapability;
import cloud.commandframework.CommandManager;
import cloud.commandframework.CommandTree;
import cloud.commandframework.execution.CommandExecutionCoordinator;
@ -117,6 +118,9 @@ public class JDACommandManager<C> extends CommandManager<C> {
new RoleArgument.RoleParser<>(
new HashSet<>(Arrays.asList(RoleArgument.ParserMode.values()))
));
// No "native" command system means that we can delete commands just fine.
this.registerCapability(CloudCapability.StandardCapabilities.ROOT_COMMAND_DELETION);
}
/**