diff --git a/ClemBot.Bot/bot/cogs/command_cog.py b/ClemBot.Bot/bot/cogs/command_cog.py index 9e60b9dc..5e44c7e4 100644 --- a/ClemBot.Bot/bot/cogs/command_cog.py +++ b/ClemBot.Bot/bot/cogs/command_cog.py @@ -57,7 +57,7 @@ async def command( opp_mode = "enable" if model.guild_disabled else "disable" embed.set_footer( text=f"You can {opp_mode} this command globally by typing " - f'"{await self.bot.current_prefix(ctx)}cmd {opp_mode} {cmd.name}"' + f'"{await self.bot.current_prefix(ctx)}cmd {opp_mode} {cmd.qualified_name}"' ) await ctx.send(embed=embed) 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)