diff options
| author | Dan Hess <[email protected]> | 2020-09-09 18:48:00 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-24 02:17:54 -0400 |
| commit | b8c4ce6b86ec9530a9b74963484ce20fb19f782e (patch) | |
| tree | df7c694dd795fd27bc487b8cd93a45104dcc7744 | |
| parent | Don't call close() if we've already been closed in Client.run (diff) | |
| download | discord.py-b8c4ce6b86ec9530a9b74963484ce20fb19f782e.tar.xz discord.py-b8c4ce6b86ec9530a9b74963484ce20fb19f782e.zip | |
[commands] Correct command removing during cog injecting
| -rw-r--r-- | discord/ext/commands/cog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py index b8e25917..50573f49 100644 --- a/discord/ext/commands/cog.py +++ b/discord/ext/commands/cog.py @@ -385,7 +385,7 @@ class Cog(metaclass=CogMeta): except Exception as e: # undo our additions for to_undo in self.__cog_commands__[:index]: - bot.remove_command(to_undo) + bot.remove_command(to_undo.name) raise e # check if we're overriding the default |