From c58f5660477b803f511c77865e1f27e6605fd6e7 Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 25 Apr 2019 12:31:58 -0400 Subject: [PATCH] [CustomCom] Update command generator to work with dpy update (#2616) * I think this works? * Let's do it Co-Authored-By: tekulvw --- redbot/cogs/customcom/customcom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/customcom/customcom.py b/redbot/cogs/customcom/customcom.py index 66de7ac24..09b8ef26a 100644 --- a/redbot/cogs/customcom/customcom.py +++ b/redbot/cogs/customcom/customcom.py @@ -466,7 +466,7 @@ class CustomCommands(commands.Cog): return # wrap the command here so it won't register with the bot - fake_cc = commands.Command(ctx.invoked_with, self.cc_callback) + fake_cc = commands.command(name=ctx.invoked_with)(self.cc_callback) fake_cc.params = self.prepare_args(raw_response) ctx.command = fake_cc