parent property

CommandGroup<CommandContext>? parent

The parent of this child.

Once a parent is added to a group, that group is considered to be this child's parent and this child cannot be added to any more groups. Attempting to do so will result in a CommandsError.

Implementation

CommandGroup<CommandContext>? get parent;
void parent=(CommandGroup<CommandContext>? parent)

Set the parent of this child. Should not be used unless you are implementing your own command group.

Implementation

set parent(CommandGroup<CommandContext>? parent);