fix required argument errors

This commit is contained in:
osmarks 2020-10-11 17:50:01 +01:00
parent 9b48a5086c
commit f42dc02572
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ async def on_message(message):
async def on_command_error(ctx, err):
#print(ctx, err)
if isinstance(err, (commands.CommandNotFound, commands.CheckFailure)): return
if isinstance(err, commands.MissingRequiredArgument): return await ctx.send(embed=util.error_embed(str(err)))
try:
trace = re.sub("\n\n+", "\n", "\n".join(traceback.format_exception(err, err, err.__traceback__)))
#print(trace)