Browse Source

[commands] Fix MissingRequiredArgument param handling

Documentation was incorrect, and we were throwing
away the param we were passing.
pull/980/merge
khazhyk 7 years ago
committed by Rapptz
parent
commit
0ef866a704
  1. 4
      discord/ext/commands/errors.py

4
discord/ext/commands/errors.py

@ -72,11 +72,11 @@ class MissingRequiredArgument(UserInputError):
Attributes
-----------
param: str
param: :class:`inspect.Parameter`
The argument that is missing.
"""
def __init__(self, param):
self.param = param.name
self.param = param
super().__init__('{0.name} is a required argument that is missing.'.format(param))
class TooManyArguments(UserInputError):

Loading…
Cancel
Save