Added error handling for owner only commands

pull/8/head
sgoudham 4 years ago
parent c73f931411
commit b67789d7a0

@ -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)

Loading…
Cancel
Save