Bare bones for JSON database
This commit is contained in:
@@ -208,7 +208,7 @@ class Cog(metaclass=CogMeta):
|
||||
for command in self.__cog_commands__:
|
||||
setattr(self, command.callback.__name__, command)
|
||||
parent = command.parent
|
||||
if parent is not None:
|
||||
if parent:
|
||||
# Get the latest parent reference
|
||||
parent = lookup[parent.qualified_name] # type: ignore
|
||||
|
||||
@@ -230,7 +230,7 @@ class Cog(metaclass=CogMeta):
|
||||
|
||||
This does not include subcommands.
|
||||
"""
|
||||
return [c for c in self.__cog_commands__ if c.parent is None]
|
||||
return [c for c in self.__cog_commands__ if not c.parent]
|
||||
|
||||
@property
|
||||
def qualified_name(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user