mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
Use a task instead of awaiting for delete delay (#3884)
This commit is contained in:
@@ -209,7 +209,7 @@ def init_events(bot, cli_flags):
|
||||
if commands.Cog._get_overridden_method(ctx.cog.cog_command_error) is not None:
|
||||
return
|
||||
if not isinstance(error, commands.CommandNotFound):
|
||||
await bot._delete_delay(ctx)
|
||||
asyncio.create_task(bot._delete_delay(ctx))
|
||||
|
||||
if isinstance(error, commands.MissingRequiredArgument):
|
||||
await ctx.send_help()
|
||||
|
||||
Reference in New Issue
Block a user