mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 09:22:31 -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
|
return
|
||||||
|
|
||||||
# wrap the command here so it won't register with the bot
|
# 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)
|
fake_cc.params = self.prepare_args(raw_response)
|
||||||
ctx.command = fake_cc
|
ctx.command = fake_cc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user