mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-26 02:53:07 +00:00
[commands] Make Command a descriptor for #426.
This commit is contained in:
@@ -417,7 +417,6 @@ class BotBase(GroupMixin):
|
||||
for name, member in members:
|
||||
# register commands the cog has
|
||||
if isinstance(member, Command):
|
||||
member.instance = cog
|
||||
if member.parent is None:
|
||||
self.add_command(member)
|
||||
continue
|
||||
@@ -465,7 +464,6 @@ class BotBase(GroupMixin):
|
||||
for name, member in members:
|
||||
# remove commands the cog has
|
||||
if isinstance(member, Command):
|
||||
member.instance = None
|
||||
if member.parent is None:
|
||||
self.remove_command(member.name)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user