From e3c6a7ed3cbf410a61cdf304dd851e6457239eac Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Fri, 19 Aug 2022 19:19:56 +0200 Subject: [PATCH] Fix TypeError as a function has no instance --- mmpy_bot/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmpy_bot/function.py b/mmpy_bot/function.py index 445a2c10..42971009 100644 --- a/mmpy_bot/function.py +++ b/mmpy_bot/function.py @@ -39,7 +39,7 @@ def __init__( self.matcher = matcher self.metadata = metadata - if not isinstance(function, click.command): + if not isinstance(function, click.Command): self.function.callback = None self.function.get_help = None self.function.make_context = None