def walk_commands(self):
from .core import GroupMixin<EOL>for command in self.__cog_commands__:<EOL><INDENT>if command.parent is None:<EOL><INDENT>yield command<EOL>if isinstance(command, GroupMixin):<EOL><INDENT>yield from command.walk_commands()<EOL><DEDENT><DEDENT><DEDENT>
An iterator that recursively walks through this cog's commands and subcommands.