From 63567344f6556248dd90c614d8ab059e90bdf069 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 28 Jul 2020 23:07:43 +0100 Subject: [PATCH] Making missing permissions command an embed --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 13439a28..c138d297 100644 --- a/main.py +++ b/main.py @@ -354,7 +354,8 @@ async def on_bot_forbidden(ctx, args2): missing_perms = string.capwords(", ".join(args2.missing_perms).replace("_", " ")) # Send an error message to the user notifying them of the permissions that are missing from the bot - await ctx.send(f"I need **{missing_perms}** permission(s) to execute this command!") + embed = Embed(description="I Need **{}** Permission(s) to Execute This Command! ❌".format(missing_perms)) + await ctx.send(embed=embed) # Async def for handling command bad argument error