walkCommands method
override
Returns an iterable that recursively iterates over all the Command
s in this group.
This will return all the Command
s in this group, whether they be direct children or
children of children. If you want all the direct Command
children, consider using
children.whereType<ICommand>()
instead.
Implementation
@override
Iterable<Command> walkCommands() sync* {
yield* _userCommands.values;
yield* _messageCommands.values;
for (final command in Set.of(_chatCommands.values)) {
yield* command.walkCommands();
}
}