[CustomCom] Update command generator to work with dpy update (#2616)

* I think this works?

* Let's do it

Co-Authored-By: tekulvw <tekulvw@users.noreply.github.com>
This commit is contained in:
Will
2019-04-25 12:31:58 -04:00
committed by Michael H
parent f28d6dff32
commit c58f566047

View File

@@ -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