From 3de9d15410613279faa6a3eb44e22c6cabc0df0b Mon Sep 17 00:00:00 2001 From: Toby Harradine Date: Mon, 15 Jul 2019 20:13:06 +1000 Subject: [PATCH] [CustomCom] Set Requires.ready_event before invoking CC (#2876) Signed-off-by: Toby Harradine --- redbot/cogs/customcom/customcom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/redbot/cogs/customcom/customcom.py b/redbot/cogs/customcom/customcom.py index 8d3faae8e..12cb86ca9 100644 --- a/redbot/cogs/customcom/customcom.py +++ b/redbot/cogs/customcom/customcom.py @@ -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)