mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[CustomCom] Set Requires.ready_event before invoking CC (#2876)
Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
3b0567d261
commit
3de9d15410
@ -470,6 +470,7 @@ class CustomCommands(commands.Cog):
|
||||
# wrap the command here so it won't register with the bot
|
||||
fake_cc = commands.command(name=ctx.invoked_with)(self.cc_callback)
|
||||
fake_cc.params = self.prepare_args(raw_response)
|
||||
fake_cc.requires.ready_event.set()
|
||||
ctx.command = fake_cc
|
||||
|
||||
await self.bot.invoke(ctx)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user