mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 16:59:50 +00:00
[commands] Add Cog.qualified_name to query the specified cog name.
This commit is contained in:
parent
6ffd079cb9
commit
c4a21cc1d4
@ -176,6 +176,11 @@ class Cog(metaclass=CogMeta):
|
||||
"""
|
||||
return [c for c in self.__cog_commands__ if c.parent is None]
|
||||
|
||||
@property
|
||||
def qualified_name(self):
|
||||
""":class:`str`: Returns the cog's specified name, not the class name."""
|
||||
return self.__cog_name__
|
||||
|
||||
def walk_commands(self):
|
||||
"""An iterator that recursively walks through this cog's commands and subcommands."""
|
||||
from .core import GroupMixin
|
||||
|
Loading…
x
Reference in New Issue
Block a user