diff --git a/_orangcbot/extensions/testing_functions.py b/_orangcbot/extensions/testing_functions.py index 1e3c298..872315f 100644 --- a/_orangcbot/extensions/testing_functions.py +++ b/_orangcbot/extensions/testing_functions.py @@ -13,6 +13,9 @@ async def hinder(self, ctx: commands.Context, cmd: str): await ctx.send("I did not expect you to be such a fool") else: command = self._bot.get_command(cmd) + if command is None: + await ctx.send("Command not found.") + return command.enabled = not command.enabled await ctx.send("Request satisfied, master.")