From c4a21cc1d4eecaca7b1c638842647d1ed1b6a49d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 13 Mar 2019 23:43:29 -0400 Subject: [PATCH] [commands] Add Cog.qualified_name to query the specified cog name. --- discord/ext/commands/cog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py index 5892ffa16..afcfd9c50 100644 --- a/discord/ext/commands/cog.py +++ b/discord/ext/commands/cog.py @@ -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