Skip to content

Commit

Permalink
Changed missing command parameters to instead display the help messag…
Browse files Browse the repository at this point in the history
…e for that command
  • Loading branch information
LobaDK committed May 15, 2024
1 parent 8532076 commit a32fa0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cogs/Tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ async def on_command_error(
error = getattr(error, "original", error)

if isinstance(error, commands.MissingRequiredArgument):
await ctx.send(
f"Missing required argument: {error.param.name}. Please check your command and try again."
)
await ctx.send_help(ctx.command)

if isinstance(error, (commands.MemberNotFound, commands.UserNotFound)):
await ctx.send("User not found. Please check your command and try again.")
Expand Down

0 comments on commit a32fa0c

Please sign in to comment.