From 390b5b931021d48284383d61a9e28f22af5ee418 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 12 Jul 2020 05:19:56 +0100 Subject: [PATCH] Error handling messages are now bold --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index f8ea9fb3..ebfe9fd6 100644 --- a/main.py +++ b/main.py @@ -161,7 +161,7 @@ async def on_command_error(ctx, args2): # Async def for handling cooldown error/permission errors async def on_command_cooldown(ctx, error): # Send an error message to the user telling them that the command is on cooldown - message = await ctx.send(f'That command is on cooldown. Try again in {error.retry_after:,.2f} seconds.') + message = await ctx.send(f'That command is on cooldown. Try again in **{error.retry_after:,.2f}** seconds.') # Let the User read the message for 2.5 seconds await asyncio.sleep(2.5) @@ -172,7 +172,7 @@ async def on_command_cooldown(ctx, error): # Async def for handling permission errors async def on_command_permission(ctx): # Send an error message to the user saying that they don't have permission to use this command - message = await ctx.send("Uh oh! You don't have permission to use this command!") + message = await ctx.send("**Uh oh! You don't have permission to use this command!**") # Let the user read the message for 2.5 seconds await asyncio.sleep(2.5) @@ -182,7 +182,7 @@ async def on_command_permission(ctx): async def on_command_missing_user(ctx): # Send an error message to the user saying that an argument is missing - message = await ctx.send("Uh oh! Couldn't find anyone to mention! Try again!") + message = await ctx.send("**Uh oh! Couldn't find anyone to mention! Try again!**") # Let the user read the message for 2.5 seconds await asyncio.sleep(2.5)