Videonauth / ProtonDB-Bot

MIT License
4 stars 0 forks source link

[Bug] Bot does not catch missing arguments. #20

Closed Videonauth closed 5 years ago

Videonauth commented 5 years ago

Bot needs to catch commands without parameters given.

Error Message:

Ignoring exception in on_command_error
Traceback (most recent call last):
  File "/home/michael/ProtonDB-Bot/lib/python3.7/site-packages/discord/client.py", line 255, in _run_event
    await coro(*args, **kwargs)
  File "./bot.py", line 329, in on_command_error
    raise error
  File "/home/michael/ProtonDB-Bot/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 860, in invoke
    await ctx.command.invoke(ctx)
  File "/home/michael/ProtonDB-Bot/lib/python3.7/site-packages/discord/ext/commands/core.py", line 691, in invoke
    await self.prepare(ctx)
  File "/home/michael/ProtonDB-Bot/lib/python3.7/site-packages/discord/ext/commands/core.py", line 655, in prepare
    await self._parse_arguments(ctx)
  File "/home/michael/ProtonDB-Bot/lib/python3.7/site-packages/discord/ext/commands/core.py", line 570, in _parse_arguments
    transformed = await self.transform(ctx, param)
  File "/home/michael/ProtonDB-Bot/lib/python3.7/site-packages/discord/ext/commands/core.py", line 426, in transform
    raise MissingRequiredArgument(param)
discord.ext.commands.errors.MissingRequiredArgument: extension is a required argument that is missing.