Skip to content

Commit

Permalink
Rewrite more fm server commands
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Oct 31, 2023
1 parent e007278 commit b154b47
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 34 deletions.
5 changes: 5 additions & 0 deletions cogs/errorhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ async def on_command_error(
case commands.NotOwner() | commands.CheckFailure():
await self.send_warning(ctx, ErrorMessages.not_allowed, error)

case commands.BadUnionArgument():
await self.send_warning(
ctx, "\n".join(str(e) for e in error.errors), error
)

case discord.Forbidden():
try:
await self.send_error(ctx, str(error), error)
Expand Down
Loading

0 comments on commit b154b47

Please sign in to comment.