From b67789d7a03e55887406acf4c913fd4c09e319f5 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Wed, 29 Jul 2020 00:16:19 +0100 Subject: [PATCH] Added error handling for owner only commands --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index e6bdf66d..d0044ba8 100644 --- a/main.py +++ b/main.py @@ -402,9 +402,8 @@ async def on_command_missing_argument(ctx): await ctx.send(embed=embed) -# Async def for handling permission errors async def on_not_owner(ctx): - # Send an error message to the user saying that they don't have permission to use this command + # Send an error message to the user saying that it's only for owners embed = Embed(description="**❌ Owner Only Command ❌**") await ctx.send(embed=embed)