Skip to content

Commit 5b119a3

Browse files
author
Sham
committed
fix: made the commands.errors.NotOwner do nothing
1 parent da4bd76 commit 5b119a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
__pycache__/
22
.venv
3-
.env
3+
.env
4+
bolb.db

bolb_bot/cogs/events.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Context,
1212
MissingRequiredArgument,
1313
TooManyArguments,
14+
NotOwner
1415
)
1516
from nextcord.utils import utcnow
1617
from nextcord import Embed, NotFound, Forbidden
@@ -58,6 +59,8 @@ async def on_command_error(self, ctx: Context, error: Exception):
5859
return
5960
elif isinstance(error, MissingRequiredArgument):
6061
await ctx.send("You're missing a required argument.")
62+
elif isinstance(error, NotOwner):
63+
return
6164
else:
6265
embed = Embed(
6366
title="Unexpected Error.",

0 commit comments

Comments
 (0)