From 8a74a16713738e9fb777bd6933bbd61f87e005c0 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 25 Jul 2020 09:09:09 +0100 Subject: [PATCH] Reformatting error message --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 174745ef..4d5be542 100644 --- a/main.py +++ b/main.py @@ -377,7 +377,7 @@ async def on_member_remove(member): async def on_command_error(ctx, args2): # if the user did not specify an user if isinstance(args2, commands.MissingRequiredArgument): - await on_command_missing_user(ctx) + await on_command_missing_argument(ctx) # if the user has spammed a command and invoked a cooldown elif isinstance(args2, commands.CommandOnCooldown): await on_command_cooldown(ctx, args2) @@ -465,10 +465,11 @@ async def on_command_permission(ctx): await message.delete() -async def on_command_missing_user(ctx): +async def on_command_missing_argument(ctx): # Send an error message to the user saying that an argument is missing message = await ctx.send( - f"Required Argument Missing! Use **{ctx.prefix}help** to find how to use **{ctx.command}**") + f"Required Argument Missing!" + f"\nUse **{ctx.prefix}help** to find how to use **{ctx.command}**") # Let the user read the message for 5 seconds await asyncio.sleep(5)