diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 9308e9ce2..9abee04e6 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -486,6 +486,11 @@ class GroupMixin: `None` is returned instead. """ command = self.commands.pop(name, None) + + # does not exist + if command is None: + return None + if name in command.aliases: # we're removing an alias so we don't want to remove the rest return command