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