Skip to content

Commit

Permalink
Inform on command permissions failure
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanC committed Jun 2, 2024
1 parent de74c51 commit a3d4c14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from arc import (
GatewayClient,
GatewayContext,
InvokerMissingPermissionsError,
NotOwnerError,
)
from loguru import logger
Expand Down Expand Up @@ -57,7 +58,7 @@ async def HookError(ctx: GatewayContext, error: Exception) -> None:

command: str = ExpandCommand(ctx, mention=True)

if isinstance(error, NotOwnerError):
if isinstance(error, (NotOwnerError, InvokerMissingPermissionsError)):
await ctx.respond(
embed=Response(
color=Colors.DiscordRed.value,
Expand Down

0 comments on commit a3d4c14

Please sign in to comment.