Package com.reign.kat.lib.command
Class ParentCommand
java.lang.Object
com.reign.kat.lib.command.Command
com.reign.kat.lib.command.ParentCommand
- Direct Known Subclasses:
- ConfigParentCommand
@Deprecated
@ReplaceWith("com.reign.kat.lib.command.Command")
public abstract class ParentCommand
extends Command
Deprecated.
ParentCommand
 A command which can have multiple subcommands attached to it.
 Acts like a regular command, with extra methods for children commands.
 Add a new child command with `registerSubcommand(command);`, this can then be called
 in Discord with `!command subcommand`.
- 
Field SummaryFields inherited from class com.reign.kat.lib.command.Commandconverters, log, name, precommands, requiredDiscordPermission, requiredPermission
- 
Constructor SummaryConstructorsConstructorDescriptionParentCommand(String[] aliases, String primaryAlias, String description) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidexecute(Context ctx, CommandParameters args) Deprecated.voidexecuteCommands(Context ctx, List<String> args) Deprecated.Calls the parent command before calling a subcommandDeprecated.Returns the argument signature for the command.getSubcommand(String alias) Deprecated.voidregisterSubcommand(Command command) Deprecated.Methods inherited from class com.reign.kat.lib.command.CommandaddConverter, addPreCommand, getAliases, getDescription, getName, getPrimaryAlias, getRequiredCount, hasChildren, invokeCommand, isPrivileged, isShowTyping, setRequiredDiscordPermission, setRequiredPermissionGroup, setShowTyping, updateSlashData
- 
Constructor Details- 
ParentCommandDeprecated.
 
- 
- 
Method Details- 
registerSubcommandDeprecated.- Overrides:
- registerSubcommandin class- Command
 
- 
getSubcommandDeprecated.- Overrides:
- getSubcommandin class- Command
 
- 
executeCommandsDeprecated.Calls the parent command before calling a subcommand- Overrides:
- executeCommandsin class- Command
- Parameters:
- ctx- Context of the command
- args- string args to convert into Converters
- Throws:
- Exception
 
- 
getSignatureDeprecated.Description copied from class:CommandReturns the argument signature for the command.
 For example, the command!kick UserID opt:reason 
 would build a signature string of:-kick <user:User> [reason: String] - Overrides:
- getSignaturein class- Command
- Returns:
- String signature
 
- 
executeDeprecated.
 
-