diff options
| author | Rapptz <[email protected]> | 2017-01-13 20:34:00 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-13 20:34:00 -0500 |
| commit | 695b62ccd3c127d4370ff929159c7c44a90bf2fd (patch) | |
| tree | a089207c41398c8cdc0860f430188fe483cfc632 /discord/ext/commands/bot.py | |
| parent | Use the improved role creation endpoint for making roles. (diff) | |
| download | discord.py-695b62ccd3c127d4370ff929159c7c44a90bf2fd.tar.xz discord.py-695b62ccd3c127d4370ff929159c7c44a90bf2fd.zip | |
[commands] Make Command a descriptor for #426.
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index f523c507..fb0e8cba 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -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 |