diff --git a/ClemBot.Bot/bot/utils/converters.py b/ClemBot.Bot/bot/utils/converters.py index c0b3e38c..a20afae9 100644 --- a/ClemBot.Bot/bot/utils/converters.py +++ b/ClemBot.Bot/bot/utils/converters.py @@ -51,18 +51,6 @@ async def convert(self, ctx: Context[BotT], argument: str) -> ext.ClemBotCommand except (AttributeError, KeyError): raise ConversionError() - for i, name in enumerate(self.accu[1:]): - # Check if the newly parsed command is a group which means we need to check the next - # value to see if it's a valid sub-command - - if not isinstance(command, ext.ClemBotGroup): - raise ConversionError() - - try: - command = command.all_commands[name] - except (AttributeError, KeyError): - raise ConversionError() - # All Clembot commands should be ClemBotCommands by default so this should never fail return t.cast(ext.ClemBotCommand, command)