[commands] Fix MissingRequiredArgument param handling

Documentation was incorrect, and we were throwing
away the param we were passing.
This commit is contained in:
khazhyk 2017-12-24 22:47:04 -05:00 committed by Rapptz
parent b268d81649
commit 0ef866a704

View File

@ -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):