mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user